It depends on which code you are using. New to the 2017 is this
680.28 Gas-Fired Water Heater. Circuits serving gas-fired
swimming pool and spa water heaters operating at voltages
above the low-voltage contact limit shall be provided with
ground-fault circuit-interrupter protection for personnel.