@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 45 lines 1.34 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 ListNamedShadowsForThingRequest extends Omit<
7 iotdata.ListNamedShadowsForThingRequest,
8 "thingName"
9 > {}
10
11 /**
12 * Runtime binding for the IoT data-plane `ListNamedShadowsForThing`
13 * operation (IAM action `iot:ListNamedShadowsForThing`).
14 *
15 * Bind it to a {@link Thing} to list the thing's named shadows — the thing
16 * name is injected automatically. Provide the implementation with
17 * `Effect.provide(AWS.IoT.ListNamedShadowsForThingHttp)`.
18 * ### Device Shadows
19 * **Example:** List Named Shadows
20 * ```typescript
21 * const listShadows = yield* AWS.IoT.ListNamedShadowsForThing(thing);
22 *
23 * const { results } = yield* listShadows();
24 * ```
25 *
26 * @binding
27 */
28 export interface ListNamedShadowsForThing extends Binding.Service<
29 ListNamedShadowsForThing,
30 "AWS.IoT.ListNamedShadowsForThing",
31 (
32 thing: Thing,
33 ) => Effect.Effect<
34 (
35 request?: ListNamedShadowsForThingRequest,
36 ) => Effect.Effect<
37 iotdata.ListNamedShadowsForThingResponse,
38 iotdata.ListNamedShadowsForThingError
39 >
40 >
41 > {}
42
43 export const ListNamedShadowsForThing = Binding.Service<ListNamedShadowsForThing>(
44 "AWS.IoT.ListNamedShadowsForThing",
45 );