Cut to the skinny, above ground pools require a 3' cord, #12 EGC, nad a twistlock receptacle, protected by a GFI breaker or deadfront. Location not less then 6' from pool as long as the preceeding are met. A general purpose GFI protected receptacle (in addition to) must be 10' minimum, and 20' maximum from pool.
Don't forget 680.26 bonding; eq. 'band' approx 18" around pool perimeter, bonded to frame at 4 equal locations, bond the filter motor and the pool water via a skimmer approved device. Bond is #8 solid, bare copper.
Refer to Article 680 for full code language.