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

main
ts 33 lines 1.22 KB
Raw
1 import type * as route53 from "@distilled.cloud/aws/route-53";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { HostedZone } from "./HostedZone.ts";
5
6 /**
7 * Runtime binding for the `GetHostedZone` operation (IAM action
8 * `route53:GetHostedZone` on the hosted zone ARN).
9 *
10 * Reads the bound {@link HostedZone}'s detail — the authoritative name
11 * servers (delegation set), record count, and associated VPCs. Useful for
12 * compute that hands out NS records or verifies delegation at runtime.
13 * Provide the implementation with
14 * `Effect.provide(AWS.Route53.GetHostedZoneHttp)`.
15 * ### Inspecting Zones
16 * **Example:** Read the zone's name servers
17 * ```typescript
18 * const getHostedZone = yield* AWS.Route53.GetHostedZone(zone);
19 *
20 * const { DelegationSet } = yield* getHostedZone();
21 * yield* Effect.log(DelegationSet?.NameServers);
22 * ```
23 *
24 * @binding
25 */
26 export interface GetHostedZone extends Binding.Service<
27 GetHostedZone,
28 "AWS.Route53.GetHostedZone",
29 (
30 zone: HostedZone,
31 ) => Effect.Effect<() => Effect.Effect<route53.GetHostedZoneResponse, route53.GetHostedZoneError>>
32 > {}
33 export const GetHostedZone = Binding.Service<GetHostedZone>("AWS.Route53.GetHostedZone");