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