Class PublicHostedZoneProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53.PublicHostedZoneProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublicHostedZoneProps>
- Enclosing interface:
PublicHostedZoneProps
@Stability(Stable)
public static final class PublicHostedZoneProps.Builder
extends Object
implements software.amazon.jsii.Builder<PublicHostedZoneProps>
A builder for
PublicHostedZoneProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTrailingDot(Boolean addTrailingDot) Sets the value ofCommonHostedZoneProps.getAddTrailingDot()build()Builds the configured instance.Sets the value ofPublicHostedZoneProps.getCaaAmazon()Sets the value ofCommonHostedZoneProps.getComment()crossAccountZoneDelegationPrincipal(IPrincipal crossAccountZoneDelegationPrincipal) Deprecated.Create the Role yourself and call `hostedZone.grantDelegation()`.crossAccountZoneDelegationRoleName(String crossAccountZoneDelegationRoleName) Deprecated.Create the Role yourself and call `hostedZone.grantDelegation()`.queryLogsLogGroupArn(String queryLogsLogGroupArn) Sets the value ofCommonHostedZoneProps.getQueryLogsLogGroupArn()Sets the value ofCommonHostedZoneProps.getZoneName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
caaAmazon
Sets the value ofPublicHostedZoneProps.getCaaAmazon()- Parameters:
caaAmazon- Whether to create a CAA record to restrict certificate authorities allowed to issue certificates for this domain to Amazon only.- Returns:
this
-
crossAccountZoneDelegationPrincipal
@Stability(Deprecated) @Deprecated public PublicHostedZoneProps.Builder crossAccountZoneDelegationPrincipal(IPrincipal crossAccountZoneDelegationPrincipal) Deprecated.Create the Role yourself and call `hostedZone.grantDelegation()`.Sets the value ofPublicHostedZoneProps.getCrossAccountZoneDelegationPrincipal()- Parameters:
crossAccountZoneDelegationPrincipal- 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 theCrossAccountZoneDelegationRecordto 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.- Returns:
this
-
crossAccountZoneDelegationRoleName
@Stability(Deprecated) @Deprecated public PublicHostedZoneProps.Builder crossAccountZoneDelegationRoleName(String crossAccountZoneDelegationRoleName) Deprecated.Create the Role yourself and call `hostedZone.grantDelegation()`.Sets the value ofPublicHostedZoneProps.getCrossAccountZoneDelegationRoleName()- Parameters:
crossAccountZoneDelegationRoleName- The name of the role created for cross account delegation.- Returns:
this
-
zoneName
Sets the value ofCommonHostedZoneProps.getZoneName()- Parameters:
zoneName- The name of the domain. This parameter is required. For resource record types that include a domain name, specify a fully qualified domain name.- Returns:
this
-
addTrailingDot
Sets the value ofCommonHostedZoneProps.getAddTrailingDot()- Parameters:
addTrailingDot- Whether to add a trailing dot to the zone name.- Returns:
this
-
comment
Sets the value ofCommonHostedZoneProps.getComment()- Parameters:
comment- Any comments that you want to include about the hosted zone.- Returns:
this
-
queryLogsLogGroupArn
@Stability(Stable) public PublicHostedZoneProps.Builder queryLogsLogGroupArn(String queryLogsLogGroupArn) Sets the value ofCommonHostedZoneProps.getQueryLogsLogGroupArn()- Parameters:
queryLogsLogGroupArn- The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PublicHostedZoneProps>- Returns:
- a new instance of
PublicHostedZoneProps - Throws:
NullPointerException- if any required attribute was not provided
-