Skip to content

ListRetainedMessages

Source: src/AWS/IoT/ListRetainedMessages.ts

Runtime binding for the IoT data-plane ListRetainedMessages operation (IAM action iot:ListRetainedMessages, granted on * — the action does not support resource-level permissions).

Returns summaries (topic, payload size, QoS) of all retained MQTT messages in the account; read a payload with GetRetainedMessage. Provide the implementation with Effect.provide(AWS.IoT.ListRetainedMessagesHttp).

const listRetained = yield* AWS.IoT.ListRetainedMessages();
const { retainedTopics } = yield* listRetained();