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