2017 National Electric Code article 680.21 (Motors for permanently installed pools) allows for hard wiring utilizing Liquidtight Flexible Metal Conduit (LFMC) or Liquidtight Felxible Non-metallic Conduit (LFNC).
680.21 Also allows for cord and plug connections not to exceed 3' as long it has a...