How any feet from the edge of a swimming pool must a junction box be located that serves a 120 volt wet niche lighting fixture?

How any feet from the edge of a swimming pool must a junction box be located that serves a 120 volt wet niche lighting fixture?