There are some surveillance cameras which are waterproof or weather-resistant, designed for outdoor use. However, most hidden cameras are not suitable for outdoor use and it’s important to check the specifications of the camera before using it outside. It’s also important to note that waterproof hidden cameras may not be fully waterproof and may still be damaged if submerged in water for extended periods of time.
Consider a trail cam if you need to use a water-resistant and weather-resistant camera for an extended period. Also see Outdoor Hidden Cameras to specifically filter cameras intended for outdoor use.