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

main
ts 38 lines 1.16 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 import type { Thing } from "./Thing.ts";
5
6 export interface DescribeThingRequest extends Omit<iot.DescribeThingRequest, "thingName"> {}
7
8 /**
9 * Runtime binding for the `DescribeThing` operation (IAM action
10 * `iot:DescribeThing`).
11 *
12 * Bind it to a {@link Thing} to read the thing's registry entry (attributes,
13 * thing type, version) at runtime — the thing name is injected
14 * automatically. Provide the implementation with
15 * `Effect.provide(AWS.IoT.DescribeThingHttp)`.
16 * ### Registry
17 * **Example:** Read Thing Attributes
18 * ```typescript
19 * const describeThing = yield* AWS.IoT.DescribeThing(thing);
20 *
21 * const { attributes } = yield* describeThing();
22 * ```
23 *
24 * @binding
25 */
26 export interface DescribeThing extends Binding.Service<
27 DescribeThing,
28 "AWS.IoT.DescribeThing",
29 (
30 thing: Thing,
31 ) => Effect.Effect<
32 (
33 request?: DescribeThingRequest,
34 ) => Effect.Effect<iot.DescribeThingResponse, iot.DescribeThingError>
35 >
36 > {}
37
38 export const DescribeThing = Binding.Service<DescribeThing>("AWS.IoT.DescribeThing");