How a device or client connects to the message broker by using a device endpoint depends on the protocol it uses. The following table lists the protocols that the AWS IoT device endpoints support and the authentication methods and ports they use.
https://docs.aws.amazon.com/iot/latest/developerguide/protocols.html