Skip to content

ListDomains

Source: src/AWS/Route53Domains/ListDomains.ts

Runtime binding for route53domains:ListDomains — list all domain names registered with Route 53 for the current AWS account.

Route 53 Domains is a global registration API with no resource-level IAM: the binding takes no arguments and grants the function route53domains:ListDomains on *. Calls are pinned to us-east-1, the only region that serves the Route 53 Domains API, regardless of where the function runs.

Pass Marker from a previous response’s NextPageMarker to paginate. Provide the implementation with Effect.provide(AWS.Route53Domains.ListDomainsHttp).

// init
const listDomains = yield* AWS.Route53Domains.ListDomains();
// runtime
const result = yield* listDomains({ MaxItems: 100 });
const names = (result.Domains ?? []).map((domain) => domain.DomainName);