AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

CrossAccountZoneDelegationRecord

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

import { CrossAccountZoneDelegationRecord } from 'aws-cdk-lib/aws-route53';

Or use the module namespace:

import * as route53 from 'aws-cdk-lib/aws-route53';
// route53.CrossAccountZoneDelegationRecord

Properties

Configuration passed to the constructor as CrossAccountZoneDelegationRecordProps.

delegatedZoneRequired
IHostedZone

The zone to be delegated.

delegationRoleRequired
IRoleRef

The delegation role in the parent account.

assumeRoleRegionOptional
string

Region from which to obtain temporary credentials.

Default: - the Route53 signing region in the current partition

parentHostedZoneIdOptional
string

The hosted zone id in the parent account.

Default: - no zone id

parentHostedZoneNameOptional
string

The hosted zone name in the parent account.

Default: - no zone name

removalPolicyOptional
RemovalPolicy

The removal policy to apply to the record set.

Default: RemovalPolicy.DESTROY

ttlOptional
Duration

The resource record cache time to live (TTL).

Default: Duration.days(2)

Get the Amazon Route 53 Cheat Sheet

Everything you need to know about Amazon Route 53 on one page. HD quality, print-friendly.

Download Free Infographic