Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.4 KB
Raw Blame
import type * as route53 from "@distilled.cloud/aws/route-53";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";

/**
 * Runtime binding for the `ListHostedZonesByVPC` operation (IAM actions
 * `route53:ListHostedZonesByVPC` + `ec2:DescribeVpcs` — Route 53 verifies the
 * VPC on the caller's behalf; list actions do not support resource-level
 * permissions, so both are granted on `*`).
 *
 * Lists the private hosted zones associated with a VPC — discovery for
 * compute that audits or wires up split-horizon DNS at runtime. Provide the
 * implementation with `Effect.provide(AWS.Route53.ListHostedZonesByVPCHttp)`.
 * @binding
 * @section Discovering Zones
 * @example List a VPC's private zones
 * ```typescript
 * const listByVpc = yield* AWS.Route53.ListHostedZonesByVPC();
 *
 * const { HostedZoneSummaries } = yield* listByVpc({
 *   VPCId: "vpc-0123456789abcdef0",
 *   VPCRegion: "us-east-1",
 * });
 * ```
 */
export interface ListHostedZonesByVPC extends Binding.Service<
  ListHostedZonesByVPC,
  "AWS.Route53.ListHostedZonesByVPC",
  () => Effect.Effect<
    (
      request: route53.ListHostedZonesByVPCRequest,
    ) => Effect.Effect<
      route53.ListHostedZonesByVPCResponse,
      route53.ListHostedZonesByVPCError
    >
  >
> {}
export const ListHostedZonesByVPC = Binding.Service<ListHostedZonesByVPC>(
  "AWS.Route53.ListHostedZonesByVPC",
);