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