Skip to content

ListSubscriptions

Source: src/AWS/IoT/ListSubscriptions.ts

Runtime binding for the IoT data-plane ListSubscriptions operation (IAM action iot:ListSubscriptions).

Binding to a client id filter grants iot:ListSubscriptions on matching MQTT client ARNs (or all clients when the filter is omitted) and returns a callable that lists the topic filters a connected client is subscribed to. Provide the implementation with Effect.provide(AWS.IoT.ListSubscriptionsHttp).

const listSubscriptions = yield* AWS.IoT.ListSubscriptions("sensor-*");
const { subscriptions } = yield* listSubscriptions({
clientId: "sensor-1",
});