@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.792Z") @Stability(value=Stable) public interface CrossAccountZoneDelegationRecordProps extends software.amazon.jsii.JsiiSerializable
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 | Interface and Description |
|---|---|
static class |
CrossAccountZoneDelegationRecordProps.Builder
A builder for
CrossAccountZoneDelegationRecordProps |
static class |
CrossAccountZoneDelegationRecordProps.Jsii$Proxy
An implementation for
CrossAccountZoneDelegationRecordProps |
| Modifier and Type | Method and Description |
|---|---|
static CrossAccountZoneDelegationRecordProps.Builder |
builder() |
IHostedZone |
getDelegatedZone()
The zone to be delegated.
|
IRole |
getDelegationRole()
The delegation role in the parent account.
|
default String |
getParentHostedZoneId()
The hosted zone id in the parent account.
|
default String |
getParentHostedZoneName()
The hosted zone name in the parent account.
|
default RemovalPolicy |
getRemovalPolicy()
The removal policy to apply to the record set.
|
default Duration |
getTtl()
The resource record cache time to live (TTL).
|
@Stability(value=Stable) @NotNull IHostedZone getDelegatedZone()
@Stability(value=Stable) @NotNull IRole getDelegationRole()
@Stability(value=Stable) @Nullable default String getParentHostedZoneId()
Default: - no zone id
@Stability(value=Stable) @Nullable default String getParentHostedZoneName()
Default: - no zone name
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.DESTROY
@Stability(value=Stable) @Nullable default Duration getTtl()
Default: Duration.days(2)
@Stability(value=Stable) static CrossAccountZoneDelegationRecordProps.Builder builder()
Copyright © 2022. All rights reserved.