Ariz. Rev. Stat. § 36-1681
B. A swimming pool or other contained body of water required to be enclosed by subsection A whether a belowground or aboveground pool shall meet the following requirements:
3. Gates for the enclosure shall:
C. If a residence or living area constitutes part of the enclosure required by subsection B for a swimming pool or other contained body of water in lieu of the requirements of subsection B, there shall be one of the following:
D. This section does not apply to: