Class PublicHostedZone.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublicHostedZone>
- Enclosing class:
PublicHostedZone
PublicHostedZone.-
Method Summary
Modifier and TypeMethodDescriptionaddTrailingDot(Boolean addTrailingDot) Whether to add a trailing dot to the zone name.build()Whether to create a CAA record to restrict certificate authorities allowed to issue certificates for this domain to Amazon only.Any comments that you want to include about the hosted zone.static PublicHostedZone.BuildercrossAccountZoneDelegationPrincipal(IPrincipal crossAccountZoneDelegationPrincipal) Deprecated.crossAccountZoneDelegationRoleName(String crossAccountZoneDelegationRoleName) Deprecated.Create the Role yourself and callhostedZone.grantDelegation().queryLogsLogGroupArn(String queryLogsLogGroupArn) The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.The name of the domain.
-
Method Details
-
create
@Stability(Stable) public static PublicHostedZone.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
PublicHostedZone.Builder.
-
zoneName
The name of the domain.For resource record types that include a domain name, specify a fully qualified domain name.
- Parameters:
zoneName- The name of the domain. This parameter is required.- Returns:
this
-
addTrailingDot
Whether to add a trailing dot to the zone name.Default: true
- Parameters:
addTrailingDot- Whether to add a trailing dot to the zone name. This parameter is required.- Returns:
this
-
comment
Any comments that you want to include about the hosted zone.Default: none
- Parameters:
comment- Any comments that you want to include about the hosted zone. This parameter is required.- Returns:
this
-
queryLogsLogGroupArn
@Stability(Stable) public PublicHostedZone.Builder queryLogsLogGroupArn(String queryLogsLogGroupArn) The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.Default: disabled
- Parameters:
queryLogsLogGroupArn- The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to. This parameter is required.- Returns:
this
-
caaAmazon
Whether to create a CAA record to restrict certificate authorities allowed to issue certificates for this domain to Amazon only.Default: false
- Parameters:
caaAmazon- Whether to create a CAA record to restrict certificate authorities allowed to issue certificates for this domain to Amazon only. This parameter is required.- Returns:
this
-
crossAccountZoneDelegationPrincipal
@Stability(Deprecated) @Deprecated public PublicHostedZone.Builder crossAccountZoneDelegationPrincipal(IPrincipal crossAccountZoneDelegationPrincipal) 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
- Parameters:
crossAccountZoneDelegationPrincipal- A principal which is trusted to assume a role for zone delegation. This parameter is required.- Returns:
this
-
crossAccountZoneDelegationRoleName
@Stability(Deprecated) @Deprecated public PublicHostedZone.Builder crossAccountZoneDelegationRoleName(String crossAccountZoneDelegationRoleName) 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
- Parameters:
crossAccountZoneDelegationRoleName- The name of the role created for cross account delegation. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PublicHostedZone>- Returns:
- a newly built instance of
PublicHostedZone.
-
hostedZone.grantDelegation().