Interface PublicHostedZoneProps
- All Superinterfaces:
CommonHostedZoneProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PublicHostedZoneProps.Jsii$Proxy
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);
CrossAccountZoneDelegationRecord.Builder.create(this, "delegate")
.delegatedZone(subZone)
.parentHostedZoneName("someexample.com") // or you can use parentHostedZoneId
.delegationRole(delegationRole)
.assumeRoleRegion("us-east-1")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPublicHostedZonePropsstatic final classAn implementation forPublicHostedZoneProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanWhether to create a CAA record to restrict certificate authorities allowed to issue certificates for this domain to Amazon only.default IPrincipalDeprecated.default StringDeprecated.Create the Role yourself and callhostedZone.grantDelegation().Methods inherited from interface software.amazon.awscdk.services.route53.CommonHostedZoneProps
getAddTrailingDot, getComment, getQueryLogsLogGroupArn, getZoneNameMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCaaAmazon
Whether to create a CAA record to restrict certificate authorities allowed to issue certificates for this domain to Amazon only.Default: false
-
getCrossAccountZoneDelegationPrincipal
@Stability(Deprecated) @Deprecated @Nullable default IPrincipal getCrossAccountZoneDelegationPrincipal()Deprecated.Create the Role yourself and callhostedZone.grantDelegation().(deprecated) A principal which is trusted to assume a role for zone delegation.If supplied, this will create a Role in the same account as the Hosted Zone, which can be assumed by the
CrossAccountZoneDelegationRecordto create a delegation record to a zone in a different account.Be sure to indicate the account(s) that you trust to create delegation records, using either
iam.AccountPrincipaloriam.OrganizationPrincipal.If you are planning to use
iam.ServicePrincipals here, be sure to include region-specific service principals for every opt-in region you are going to be delegating to; or don't use this feature and create separate roles with appropriate permissions for every opt-in region instead.Default: - No delegation configuration
-
getCrossAccountZoneDelegationRoleName
Deprecated.Create the Role yourself and callhostedZone.grantDelegation().(deprecated) The name of the role created for cross account delegation.Default: - A role name is generated automatically
-
builder
- Returns:
- a
PublicHostedZoneProps.BuilderofPublicHostedZoneProps
-
hostedZone.grantDelegation().