Class HostedZone.Builder
java.lang.Object
software.amazon.awscdk.services.route53.HostedZone.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostedZone>
- Enclosing class:
- HostedZone
@Stability(Stable)
public static final class HostedZone.Builder
extends Object
implements software.amazon.jsii.Builder<HostedZone>
A fluent builder for
HostedZone
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Any comments that you want to include about the hosted zone.static HostedZone.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 HostedZone.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
HostedZone.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
-
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
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
-
vpcs
A VPC that you want to associate with this hosted zone.When you specify this property, a private hosted zone will be created.
You can associate additional VPCs to this private zone using
addVpc(vpc)
.Default: public (no VPCs associated)
- Parameters:
vpcs
- 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<HostedZone>
- Returns:
- a newly built instance of
HostedZone
.
-