| 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 { GetConnection } from "./GetConnection.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of the {@link GetConnection} capability — grants |
| 8 | * `iot:GetConnection` on the bound client filter and calls the IoT |
| 9 | * data-plane `GetConnection` API. |
| 10 | */ |
| 11 | export const GetConnectionHttp = Layer.effect( |
| 12 | GetConnection, |
| 13 | makeIotClientHttpBinding({ |
| 14 | tag: "AWS.IoT.GetConnection", |
| 15 | operation: iotdata.getConnection, |
| 16 | actions: ["iot:GetConnection"], |
| 17 | }), |
| 18 | ); |