The cables are coated with plastic and therefore waterproof and may also get wet (except at the ends, where I would leave them dry).
Just keep in mind: Due to the weather, the cables become porous after some time (the sheath becomes hard and starts to "crumble"). Then it should be replaced. Direct sunlight is probably worse than a little moisture, so possibly cover it a little or hide it in a ledge.
Always use halogen-free cables. There is no reason to use carcinogenic and toxic waste such as PVC for the sheathing of cables in the electrical sector nowadays, unless you want to save money in the wrong place. Halogens (fluorine, chlorine, bromine, iodine) are used in the production of PVC as flame retardants, plasticisers and stabilisers. The proportion of such additives, some of which are also toxic, in the finished product can be up to half. In case of fire, highly toxic heavy smoke mixed with highly corrosive hydrochloric acid and highly toxic dioxins is produced. Halogen-free plastics are e.g. polyethylene and polypropylene.