It has been ok in the past to hard wire a 230 V pool pump with 12 awg from a 2-pole 30 A breaker (2 hot and ground, no neutral). However, the pool builder in the late 90s had connected also other equipment (pool/spa heater, blower, an obsolete chlorine generator) to the same circuit. Was that ok...