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