Skip to content

DescribeEndpoint

Source: src/AWS/IoT/DescribeEndpoint.ts

Runtime binding for the DescribeEndpoint operation (IAM action iot:DescribeEndpoint, granted on *).

Returns the account-specific IoT endpoint — pass endpointType: "iot:Data-ATS" for the recommended ATS data endpoint that devices and MQTT clients connect to. Provide the implementation with Effect.provide(AWS.IoT.DescribeEndpointHttp).

const describeEndpoint = yield* AWS.IoT.DescribeEndpoint();
const { endpointAddress } = yield* describeEndpoint({
endpointType: "iot:Data-ATS",
});