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