@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 40 lines 1.23 KB
Raw
1 import type * as iotdata from "@distilled.cloud/aws/iot-data-plane";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Thing } from "./Thing.ts";
5
6 export interface DeleteThingShadowRequest extends Omit<
7 iotdata.DeleteThingShadowRequest,
8 "thingName"
9 > {}
10
11 /**
12 * Runtime binding for the IoT data-plane `DeleteThingShadow` operation (IAM
13 * action `iot:DeleteThingShadow`).
14 *
15 * Bind it to a {@link Thing} to delete the thing's device shadow — the thing
16 * name is injected automatically. Provide the implementation with
17 * `Effect.provide(AWS.IoT.DeleteThingShadowHttp)`.
18 * ### Device Shadows
19 * **Example:** Delete a Named Shadow
20 * ```typescript
21 * const deleteShadow = yield* AWS.IoT.DeleteThingShadow(thing);
22 *
23 * yield* deleteShadow({ shadowName: "telemetry" });
24 * ```
25 *
26 * @binding
27 */
28 export interface DeleteThingShadow extends Binding.Service<
29 DeleteThingShadow,
30 "AWS.IoT.DeleteThingShadow",
31 (
32 thing: Thing,
33 ) => Effect.Effect<
34 (
35 request?: DeleteThingShadowRequest,
36 ) => Effect.Effect<iotdata.DeleteThingShadowResponse, iotdata.DeleteThingShadowError>
37 >
38 > {}
39
40 export const DeleteThingShadow = Binding.Service<DeleteThingShadow>("AWS.IoT.DeleteThingShadow");