I don't know about code, but I would definatly use common sense. Make sure it is GFCI protected, in conduit, weatherproof cover, wired/installed correctly, etc.
I would install it where you CAN NOT touch the water and the outlet at the same time. Maybe about 8'-10' feet away from water. This may be overkill, but I rather be safe then sorry. If you are using a pump for the pond, they usually come with really long cords, so you should be good.
A forum community dedicated to Do it yourself-ers and home improvement enthusiasts. Come join the discussion about tools, projects, builds, styles, scales, reviews, accessories, classifieds, and more! Helping You to Do It Yourself!