Interface CrossAccountZoneDelegationRecordProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CrossAccountZoneDelegationRecordProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:13.043Z")
@Stability(Stable)
public interface CrossAccountZoneDelegationRecordProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for a CrossAccountZoneDelegationRecord.
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 TypeInterfaceDescriptionstatic final classA builder forCrossAccountZoneDelegationRecordPropsstatic final classAn implementation forCrossAccountZoneDelegationRecordProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringRegion from which to obtain temporary credentials.The zone to be delegated.The delegation role in the parent account.default StringThe hosted zone id in the parent account.default StringThe hosted zone name in the parent account.default RemovalPolicyThe removal policy to apply to the record set.default DurationgetTtl()The resource record cache time to live (TTL).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDelegatedZone
The zone to be delegated. -
getDelegationRole
The delegation role in the parent account. -
getAssumeRoleRegion
Region from which to obtain temporary credentials.Default: - the Route53 signing region in the current partition
-
getParentHostedZoneId
The hosted zone id in the parent account.Default: - no zone id
-
getParentHostedZoneName
The hosted zone name in the parent account.Default: - no zone name
-
getRemovalPolicy
The removal policy to apply to the record set.Default: RemovalPolicy.DESTROY
-
getTtl
The resource record cache time to live (TTL).Default: Duration.days(2)
-
builder
-