@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.661Z") @Stability(value=Stable) public class CrossAccountZoneDelegationRecord extends software.constructs.Construct
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CrossAccountZoneDelegationRecord.Builder
A fluent builder for
CrossAccountZoneDelegationRecord. |
| Modifier | Constructor and Description |
|---|---|
|
CrossAccountZoneDelegationRecord(software.constructs.Construct scope,
String id,
CrossAccountZoneDelegationRecordProps props) |
protected |
CrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObjectRef objRef) |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObjectRef objRef)
protected CrossAccountZoneDelegationRecord(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CrossAccountZoneDelegationRecord(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CrossAccountZoneDelegationRecordProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.Copyright © 2022. All rights reserved.