NEC Article 400.7 and 400.8 are the permitted and NOT permitted uses for flexible cords.

If the pump was 'factory installed' with flex cord, then IMHO the install you describe is compliant.



John