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

main
ts 54 lines 1.85 KB
Raw
1 import type * as route53domains from "@distilled.cloud/aws/route-53-domains";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface GetOperationDetailRequest extends route53domains.GetOperationDetailRequest {}
6
7 /**
8 * Runtime binding for `route53domains:GetOperationDetail` — return the
9 * current status of an asynchronous Route 53 Domains operation (a domain
10 * registration, renewal, transfer, or nameserver update identified by the
11 * `OperationId` those calls return).
12 *
13 * Route 53 Domains is a global registration API with no resource-level IAM:
14 * the binding takes no arguments and grants the function
15 * `route53domains:GetOperationDetail` on `*`. Calls are pinned to
16 * `us-east-1`, the only region that serves the Route 53 Domains API,
17 * regardless of where the function runs.
18 *
19 * Provide the implementation with
20 * `Effect.provide(AWS.Route53Domains.GetOperationDetailHttp)`.
21 *
22 * ### Tracking Registration Operations
23 * **Example:** Poll a Registration Until It Completes
24 * ```typescript
25 * // init
26 * const getOperationDetail = yield* AWS.Route53Domains.GetOperationDetail();
27 *
28 * // runtime
29 * const detail = yield* getOperationDetail({ OperationId: operationId }).pipe(
30 * Effect.repeat({
31 * schedule: Schedule.spaced("10 seconds"),
32 * until: (d) => d.Status === "SUCCESSFUL" || d.Status === "ERROR",
33 * times: 8,
34 * }),
35 * );
36 * ```
37 *
38 * @binding
39 */
40 export interface GetOperationDetail extends Binding.Service<
41 GetOperationDetail,
42 "AWS.Route53Domains.GetOperationDetail",
43 () => Effect.Effect<
44 (
45 request: GetOperationDetailRequest,
46 ) => Effect.Effect<
47 route53domains.GetOperationDetailResponse,
48 route53domains.GetOperationDetailError
49 >
50 >
51 > {}
52 export const GetOperationDetail = Binding.Service<GetOperationDetail>(
53 "AWS.Route53Domains.GetOperationDetail",
54 );