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 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

      @Stability(Stable) public HostedZone.Builder zoneName(String 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

      @Stability(Stable) public HostedZone.Builder comment(String 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 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.

      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

      @Stability(Stable) public HostedZone.Builder vpcs(List<? extends IVpc> 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

      @Stability(Stable) public HostedZone build()
      Specified by:
      build in interface software.amazon.jsii.Builder<HostedZone>
      Returns:
      a newly built instance of HostedZone.