This is America. You need a permit to go to the bathroom! I’ll be happy to tell you what you generally need, but it makes no difference what I say. It only matters what yourtown hall says. Call them immediately, and request a copy of whatever their particular regulations are, and follow them. Your builder will probably insist on pulling the permits for you, to make sure that it’s actually done right.
Generally, the town’s interest is in preventing you from annoying your neighbors, creating a health hazard, and costing the town money. They will generally want the pool far enough from the lot line so that you can’t splash water on the neighbors. If it’s an issue, find out if they call the edge of the pool where the deck starts, the pool’s frame starts, or the water starts. Sometimes if you’re off by inches, that could make the difference.
They definitely won’t want the pool over a leach field, and probably not over a water line, sewer line, or other underground utility. Here, they’re looking to avoid problems if a utility line ever needs to be dug up. They may or may not care how close the pool is to the house or other buildings.
The electrical work is also going to require a permit. If you don’t get a building permit for the pool, and your electrician does get a permit for the electrical work, you will very likely get caught.