A Cross Account Zone Delegation record. This construct uses custom resource lambda that calls Route53 ChangeResourceRecordSets API to upsert a NS record into the `parentHostedZone`. WARNING: The default removal policy of this resource is DESTROY, therefore, if this resource's logical ID changes or if this resource is removed from the stack, the existing NS record will be removed.
import { CrossAccountZoneDelegationRecord } from 'aws-cdk-lib/aws-route53';Or use the module namespace:
import * as route53 from 'aws-cdk-lib/aws-route53';
// route53.CrossAccountZoneDelegationRecordConfiguration passed to the constructor as CrossAccountZoneDelegationRecordProps.
delegatedZoneRequiredIHostedZoneThe zone to be delegated.
delegationRoleRequiredIRoleRefThe delegation role in the parent account.
assumeRoleRegionOptionalstringRegion from which to obtain temporary credentials.
Default: - the Route53 signing region in the current partition
parentHostedZoneIdOptionalstringThe hosted zone id in the parent account.
Default: - no zone id
parentHostedZoneNameOptionalstringThe hosted zone name in the parent account.
Default: - no zone name
removalPolicyOptionalRemovalPolicyThe removal policy to apply to the record set.
Default: RemovalPolicy.DESTROY
ttlOptionalDurationThe resource record cache time to live (TTL).
Default: Duration.days(2)
Everything you need to know about Amazon Route 53 on one page. HD quality, print-friendly.
Download Free Infographicaws-route53