Re: sub-panels by/used for swimming pools
680.22 Area Lighting, Receptacles, and Equipment.
(A) Receptacles.
(1) Circulation and Sanitation System, Location. Receptacles that provide power for water-pump motors or for other loads directly related to the circulation and sanitation system shall be located at least 3.0 m (10 ft) from the inside walls of the pool, or not less than 1.5 m (5 ft) from the inside walls of the pool if they meet all of the following conditions:
(1) Consist of single receptacles
(2) Employ a locking configuration
(3) Are of the grounding type
(4) Have GFCI protection
(C) Switching Devices. Switching devices shall be located at least 1.5 m (5 ft) horizontally from the inside walls of a pool unless separated from the pool by a solid fence, wall, or other permanent barrier. Alternatively, a switch that is listed as being acceptable for use within 1.5 m (5 ft) shall be permitted.
680.25 Feeders.
(A) Wiring Methods. Feeders shall be installed in rigid metal conduit, intermediate metal conduit, liquidtight, flexible nonmetallic conduit, or rigid nonmetallic conduit. Electrical metallic tubing shall be permitted where installed on or within a building, and electrical nonmetallic tubing shall be permitted where installed within a building.