If you are constructing a fence that is intended as a swimming pool fence, then a Building Consent is required.
F9 of the Building Code lays out the requirements of a swimming pool fence (previously this was covered by the Fencing of Swimming Pools Act)
All pools that are capable of holding more than 400mm need to have an associated pool fence that meets the requirements of F9.
There are some simple exemptions to this. Swimming pools that have ‘smooth sides’ and are at least 1.2m high do not require fencing.
Spa pools that have a lockable lid are also exempt from the requirements of needing a swimming pool.
If you are unsure if your pool needs a fence (and associated building consent), please contact the council.