@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 38 lines 1.36 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
5 /**
6 * Runtime binding for the `ListHostedZonesByVPC` operation (IAM actions
7 * `route53:ListHostedZonesByVPC` + `ec2:DescribeVpcs` — Route 53 verifies the
8 * VPC on the caller's behalf; list actions do not support resource-level
9 * permissions, so both are granted on `*`).
10 *
11 * Lists the private hosted zones associated with a VPC — discovery for
12 * compute that audits or wires up split-horizon DNS at runtime. Provide the
13 * implementation with `Effect.provide(AWS.Route53.ListHostedZonesByVPCHttp)`.
14 * ### Discovering Zones
15 * **Example:** List a VPC's private zones
16 * ```typescript
17 * const listByVpc = yield* AWS.Route53.ListHostedZonesByVPC();
18 *
19 * const { HostedZoneSummaries } = yield* listByVpc({
20 * VPCId: "vpc-0123456789abcdef0",
21 * VPCRegion: "us-east-1",
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface ListHostedZonesByVPC extends Binding.Service<
28 ListHostedZonesByVPC,
29 "AWS.Route53.ListHostedZonesByVPC",
30 () => Effect.Effect<
31 (
32 request: route53.ListHostedZonesByVPCRequest,
33 ) => Effect.Effect<route53.ListHostedZonesByVPCResponse, route53.ListHostedZonesByVPCError>
34 >
35 > {}
36 export const ListHostedZonesByVPC = Binding.Service<ListHostedZonesByVPC>(
37 "AWS.Route53.ListHostedZonesByVPC",
38 );