@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 48 lines 1.71 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 ListOperationsRequest extends route53domains.ListOperationsRequest {}
6
7 /**
8 * Runtime binding for `route53domains:ListOperations` — list the
9 * asynchronous Route 53 Domains operations (registrations, renewals,
10 * transfers, nameserver updates) performed on domains registered by the
11 * current AWS account, optionally filtered by status, type, or submission
12 * date.
13 *
14 * Route 53 Domains is a global registration API with no resource-level IAM:
15 * the binding takes no arguments and grants the function
16 * `route53domains:ListOperations` on `*`. Calls are pinned to `us-east-1`,
17 * the only region that serves the Route 53 Domains API, regardless of where
18 * the function runs.
19 *
20 * Provide the implementation with
21 * `Effect.provide(AWS.Route53Domains.ListOperationsHttp)`.
22 *
23 * ### Tracking Registration Operations
24 * **Example:** List In-Progress Operations
25 * ```typescript
26 * // init
27 * const listOperations = yield* AWS.Route53Domains.ListOperations();
28 *
29 * // runtime
30 * const result = yield* listOperations({
31 * Status: ["IN_PROGRESS"],
32 * MaxItems: 20,
33 * });
34 * const ids = (result.Operations ?? []).map((op) => op.OperationId);
35 * ```
36 *
37 * @binding
38 */
39 export interface ListOperations extends Binding.Service<
40 ListOperations,
41 "AWS.Route53Domains.ListOperations",
42 () => Effect.Effect<
43 (
44 request: ListOperationsRequest,
45 ) => Effect.Effect<route53domains.ListOperationsResponse, route53domains.ListOperationsError>
46 >
47 > {}
48 export const ListOperations = Binding.Service<ListOperations>("AWS.Route53Domains.ListOperations");