Skip to content

GetHostedZone

Source: src/AWS/Route53/GetHostedZone.ts

Runtime binding for the GetHostedZone operation (IAM action route53:GetHostedZone on the hosted zone ARN).

Reads the bound HostedZone’s detail — the authoritative name servers (delegation set), record count, and associated VPCs. Useful for compute that hands out NS records or verifies delegation at runtime. Provide the implementation with Effect.provide(AWS.Route53.GetHostedZoneHttp).

const getHostedZone = yield* AWS.Route53.GetHostedZone(zone);
const { DelegationSet } = yield* getHostedZone();
yield* Effect.log(DelegationSet?.NameServers);