Since the sealant will most likely be under the switch flange and therefore blocked from the daylight, UV resistance is not a major issue.
This project reminds me of a video I saw recently in which some fittings were bedded in sealant/adhesive and the goal was to not have a lot (or any) squeeze out outside of the fitting flange. It is brilliant and simple so I will attempt to describe.
Temporarily install the fitting ( held in its final position. Sketch its outline with a pencil.
Remove the fitting and apply masking tape so that the tape spans the outline ( not up to the line but covering it)
Reinstall temporarily the fitting over the tape and sketch out the fitting again, this time marking the tape.
Remove the fitting and cut out the inside section of the tape using the line you just marked as a guide. In some cases it may be easier to leave the fitting in place and cut around it.
Remove the masking tape on the inside of the cut line ( the under the fitting area)
Apply your sealant either to the fitting or to the hull and re-install the fitting. The squeeze out will be on the masking tape left around the fitting. Allow some setup time if needed for the sealant to start to firm up and then peel off the masking tape.
You will have a completely bedded fitting with no squeeze out on the surrounding surface.
Boy, a few pictures would have been so much easier to demonstrate this method.. I can't remember where I saw the video