Class CrossAccountZoneDelegationRecord
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.route53.CrossAccountZoneDelegationRecord
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:59.520Z")
@Stability(Stable)
public class CrossAccountZoneDelegationRecord
extends software.constructs.Construct
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.
Example:
PublicHostedZone subZone = PublicHostedZone.Builder.create(this, "SubZone")
.zoneName("sub.someexample.com")
.build();
// import the delegation role by constructing the roleArn
String delegationRoleArn = Stack.of(this).formatArn(ArnComponents.builder()
.region("") // IAM is global in each partition
.service("iam")
.account("parent-account-id")
.resource("role")
.resourceName("MyDelegationRole")
.build());
IRole delegationRole = Role.fromRoleArn(this, "DelegationRole", delegationRoleArn);
// create the record
// create the record
CrossAccountZoneDelegationRecord.Builder.create(this, "delegate")
.delegatedZone(subZone)
.parentHostedZoneName("someexample.com") // or you can use parentHostedZoneId
.delegationRole(delegationRole)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCrossAccountZoneDelegationRecord.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObjectRef objRef) CrossAccountZoneDelegationRecord(software.constructs.Construct scope, String id, CrossAccountZoneDelegationRecordProps props) -
Method Summary
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CrossAccountZoneDelegationRecord
protected CrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObjectRef objRef) -
CrossAccountZoneDelegationRecord
protected CrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CrossAccountZoneDelegationRecord
@Stability(Stable) public CrossAccountZoneDelegationRecord(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CrossAccountZoneDelegationRecordProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-