Something else to point out looking at the pic Dave posted, the location of the socket outlet is just as important as the IP rating.

I recently did an audit on a COC issued for a property, one of the many items the inspector had to return to "fix" was the brand pool DB they installed below the flood level.

My concern with the socket outlet in the pic is the height of the over flow pipe. It doesnt help installing an IP rated socket outlet if the over flow pipe for a sunken pool pump is below the flood line.

Another reason offering advice on a picture like this should not be taken as the law, this socket outlet could be under a awning or above the ground.