Or this which also applies to a spa
680.22(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.