The best way to control Claude Code, Codex and more from any computer or phone

main
ts 18 lines 652 Bytes
Raw
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 { 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 */
11 export const SendDirectMessageHttp = Layer.effect(
12 SendDirectMessage,
13 makeIotClientHttpBinding({
14 tag: "AWS.IoT.SendDirectMessage",
15 operation: iotdata.sendDirectMessage,
16 actions: ["iot:SendDirectMessage"],
17 }),
18 );