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