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