@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 36 lines 1.09 KB
Raw
1 import type * as iot from "@distilled.cloud/aws/iot";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface ListThingsRequest extends iot.ListThingsRequest {}
6
7 /**
8 * Runtime binding for the `ListThings` operation (IAM action
9 * `iot:ListThings`, granted on `*` — the action does not support
10 * resource-level permissions).
11 *
12 * Lists things in the registry, optionally filtered by attribute or thing
13 * type. Provide the implementation with
14 * `Effect.provide(AWS.IoT.ListThingsHttp)`.
15 * ### Registry
16 * **Example:** List Things by Attribute
17 * ```typescript
18 * const listThings = yield* AWS.IoT.ListThings();
19 *
20 * const { things } = yield* listThings({
21 * attributeName: "location",
22 * attributeValue: "warehouse-a",
23 * });
24 * ```
25 *
26 * @binding
27 */
28 export interface ListThings extends Binding.Service<
29 ListThings,
30 "AWS.IoT.ListThings",
31 () => Effect.Effect<
32 (request?: ListThingsRequest) => Effect.Effect<iot.ListThingsResponse, iot.ListThingsError>
33 >
34 > {}
35
36 export const ListThings = Binding.Service<ListThings>("AWS.IoT.ListThings");