Class PrivateHostedZone.Builder
java.lang.Object
software.amazon.awscdk.services.route53.PrivateHostedZone.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrivateHostedZone>
- Enclosing class:
PrivateHostedZone
@Stability(Stable)
public static final class PrivateHostedZone.Builder
extends Object
implements software.amazon.jsii.Builder<PrivateHostedZone>
A fluent builder for
PrivateHostedZone
.-
Method Summary
Modifier and TypeMethodDescriptionaddTrailingDot
(Boolean addTrailingDot) Whether to add a trailing dot to the zone name.build()
Any comments that you want to include about the hosted zone.static PrivateHostedZone.Builder
queryLogsLogGroupArn
(String queryLogsLogGroupArn) The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.A VPC that you want to associate with this hosted zone.The name of the domain.
-
Method Details
-
create
@Stability(Stable) public static PrivateHostedZone.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
PrivateHostedZone.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 PrivateHostedZone.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
-
vpc
A VPC that you want to associate with this hosted zone.Private hosted zones must be associated with at least one VPC. You can associated additional VPCs using
addVpc(vpc)
.- Parameters:
vpc
- A VPC that you want to associate with this hosted zone. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PrivateHostedZone>
- Returns:
- a newly built instance of
PrivateHostedZone
.
-