| 1 | import * as iotdata from "@distilled.cloud/aws/iot-data-plane"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeIotAccountHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ListRetainedMessages } from "./ListRetainedMessages.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of the {@link ListRetainedMessages} capability — |
| 8 | * grants `iot:ListRetainedMessages` on `*` and calls the IoT data-plane |
| 9 | * `ListRetainedMessages` API. |
| 10 | */ |
| 11 | export const ListRetainedMessagesHttp = Layer.effect( |
| 12 | ListRetainedMessages, |
| 13 | makeIotAccountHttpBinding({ |
| 14 | tag: "AWS.IoT.ListRetainedMessages", |
| 15 | operation: iotdata.listRetainedMessages, |
| 16 | actions: ["iot:ListRetainedMessages"], |
| 17 | }), |
| 18 | ); |