CrossAccountZoneDelegationRecordProps Struct
Construction properties for a CrossAccountZoneDelegationRecord.
Example
ts
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
assumeRoleRegionstringassume_role_regionstrassumeRoleRegionStringAssumeRoleRegionstringAssumeRoleRegion*string= the Route53 signing region in th…#Region from which to obtain temporary credentials.
default
Default: the Route53 signing region in the current partition
delegatedZoneIHostedZonedelegated_zoneIHostedZonedelegatedZoneIHostedZoneDelegatedZoneIHostedZoneDelegatedZoneIHostedZonerequired#The zone to be delegated.
delegationRoleIRoleRefdelegation_roleIRoleRefdelegationRoleIRoleRefDelegationRoleIRoleRefDelegationRoleIRoleRefrequired#The delegation role in the parent account.
parentHostedZoneIdstringparent_hosted_zone_idstrparentHostedZoneIdStringParentHostedZoneIdstringParentHostedZoneId*string= no zone id#The hosted zone id in the parent account.
parentHostedZoneNamestringparent_hosted_zone_namestrparentHostedZoneNameStringParentHostedZoneNamestringParentHostedZoneName*string= no zone name#The hosted zone name in the parent account.
removalPolicyRemovalPolicyremoval_policyRemovalPolicyremovalPolicyRemovalPolicyRemovalPolicyRemovalPolicyRemovalPolicyRemovalPolicy= RemovalPolicy.DESTROY#The removal policy to apply to the record set.