aws-cdk-lib.aws_route53.CrossAccountZoneDelegationRecordProps

interface CrossAccountZoneDelegationRecordProps

LanguageType name
.NETAmazon.CDK.AWS.Route53.CrossAccountZoneDelegationRecordProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsroute53#CrossAccountZoneDelegationRecordProps
Javasoftware.amazon.awscdk.services.route53.CrossAccountZoneDelegationRecordProps
Pythonaws_cdk.aws_route53.CrossAccountZoneDelegationRecordProps
TypeScript (source)aws-cdk-lib » aws_route53 » CrossAccountZoneDelegationRecordProps

Construction properties for a CrossAccountZoneDelegationRecord.

Example

const subZone = new route53.PublicHostedZone(this, 'SubZone', {
  zoneName: 'sub.someexample.com',
});

// import the delegation role by constructing the roleArn
const delegationRoleArn = Stack.of(this).formatArn({
  region: '', // IAM is global in each partition
  service: 'iam',
  account: 'parent-account-id',
  resource: 'role',
  resourceName: 'MyDelegationRole',
});
const delegationRole = iam.Role.fromRoleArn(this, 'DelegationRole', delegationRoleArn);

// create the record
new route53.CrossAccountZoneDelegationRecord(this, 'delegate', {
  delegatedZone: subZone,
  parentHostedZoneName: 'someexample.com', // or you can use parentHostedZoneId
  delegationRole,
});

Properties

NameTypeDescription
delegatedZoneIHostedZoneThe zone to be delegated.
delegationRoleIRoleThe delegation role in the parent account.
parentHostedZoneId?stringThe hosted zone id in the parent account.
parentHostedZoneName?stringThe hosted zone name in the parent account.
removalPolicy?RemovalPolicyThe removal policy to apply to the record set.
ttl?DurationThe resource record cache time to live (TTL).

delegatedZone

Type: IHostedZone

The zone to be delegated.


delegationRole

Type: IRole

The delegation role in the parent account.


parentHostedZoneId?

Type: string (optional, default: no zone id)

The hosted zone id in the parent account.


parentHostedZoneName?

Type: string (optional, default: no zone name)

The hosted zone name in the parent account.


removalPolicy?

Type: RemovalPolicy (optional, default: RemovalPolicy.DESTROY)

The removal policy to apply to the record set.


ttl?

Type: Duration (optional, default: Duration.days(2))

The resource record cache time to live (TTL).