Interface HostedZoneProps

All Superinterfaces:
CommonHostedZoneProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
HostedZoneProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.024Z") @Stability(Stable) public interface HostedZoneProps extends software.amazon.jsii.JsiiSerializable, CommonHostedZoneProps
Properties of a new hosted zone.

Example:

 HostedZone hostedZone = HostedZone.Builder.create(this, "MyHostedZone").zoneName("example.org").build();
 Metric metric = Metric.Builder.create()
         .namespace("AWS/Route53")
         .metricName("DNSQueries")
         .dimensionsMap(Map.of(
                 "HostedZoneId", hostedZone.getHostedZoneId()))
         .build();
 
  • Method Details

    • getVpcs

      @Stability(Stable) @Nullable default List<IVpc> getVpcs()
      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)

    • builder

      @Stability(Stable) static HostedZoneProps.Builder builder()
      Returns:
      a HostedZoneProps.Builder of HostedZoneProps