@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.675Z") @Stability(value=Stable) public interface PublicHostedZoneProps extends software.amazon.jsii.JsiiSerializable, CommonHostedZoneProps
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 |
PublicHostedZoneProps.Builder
A builder for
PublicHostedZoneProps |
static class |
PublicHostedZoneProps.Jsii$Proxy
An implementation for
PublicHostedZoneProps |
| Modifier and Type | Method and Description |
|---|---|
static PublicHostedZoneProps.Builder |
builder() |
default Boolean |
getCaaAmazon()
Whether to create a CAA record to restrict certificate authorities allowed to issue certificates for this domain to Amazon only.
|
default IPrincipal |
getCrossAccountZoneDelegationPrincipal()
A principal which is trusted to assume a role for zone delegation.
|
default String |
getCrossAccountZoneDelegationRoleName()
The name of the role created for cross account delegation.
|
getComment, getQueryLogsLogGroupArn, getZoneName@Stability(value=Stable) @Nullable default Boolean getCaaAmazon()
Default: false
@Stability(value=Stable) @Nullable default IPrincipal getCrossAccountZoneDelegationPrincipal()
Default: - No delegation configuration
@Stability(value=Stable) @Nullable default String getCrossAccountZoneDelegationRoleName()
Default: - A role name is generated automatically
@Stability(value=Stable) static PublicHostedZoneProps.Builder builder()
builder in interface CommonHostedZonePropsPublicHostedZoneProps.Builder of PublicHostedZonePropsCopyright © 2022. All rights reserved.