can uf cable be exposed?
You may use UF and MC cable in wet locations including outdoors and underground if it is not subject to damage. ... Use sunlight resistant NM and UF cable if the cable is exposed to direct sunlight.