getAwsRoute53HostedZone
getAwsRoute53HostedZone(
args: AwsRoute53HostedZoneLookupArgs,
): AwsRoute53HostedZoneReferenceLooks up a public Route53 hosted zone by exact name or ID for consumer-side composition.
Remarks
Exactly one of zoneName or zoneId is required. Name lookup is exact and limited to public zones. ID lookup also rejects private zones. The optional provider can select a different AWS account, which is useful when composing a parent-zone delegation from another project or account. Prefer Pulumi stack outputs when the producer stack already exports this reference, because they avoid another cloud lookup and preserve an explicit cross-stack contract.
Parameters
args(AwsRoute53HostedZoneLookupArgs) — Hosted-zone selector and optional AWS provider.
Returns
AwsRoute53HostedZoneReference— The hosted-zone name, ID, and non-empty authoritative nameserver list as Pulumi outputs.
Example
CODE
const delegatedZone = getAwsRoute53HostedZone({
zoneName: 'sub.domain.tld',
provider: projectBProvider,
});
new AwsRoute53({
record: {
zoneName: 'domain.tld',
name: 'sub.domain.tld',
type: 'NS',
ttl: 300,
records: delegatedZone.nameServers,
},
});