@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 37 lines 1.21 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 DescribeEndpointRequest extends iot.DescribeEndpointRequest {}
6
7 /**
8 * Runtime binding for the `DescribeEndpoint` operation (IAM action
9 * `iot:DescribeEndpoint`, granted on `*`).
10 *
11 * Returns the account-specific IoT endpoint — pass
12 * `endpointType: "iot:Data-ATS"` for the recommended ATS data endpoint that
13 * devices and MQTT clients connect to. Provide the implementation with
14 * `Effect.provide(AWS.IoT.DescribeEndpointHttp)`.
15 * ### Endpoints
16 * **Example:** Discover the ATS Data Endpoint
17 * ```typescript
18 * const describeEndpoint = yield* AWS.IoT.DescribeEndpoint();
19 *
20 * const { endpointAddress } = yield* describeEndpoint({
21 * endpointType: "iot:Data-ATS",
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface DescribeEndpoint extends Binding.Service<
28 DescribeEndpoint,
29 "AWS.IoT.DescribeEndpoint",
30 () => Effect.Effect<
31 (
32 request?: DescribeEndpointRequest,
33 ) => Effect.Effect<iot.DescribeEndpointResponse, iot.DescribeEndpointError>
34 >
35 > {}
36
37 export const DescribeEndpoint = Binding.Service<DescribeEndpoint>("AWS.IoT.DescribeEndpoint");