Interface HostedZoneProps

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:26.232Z") @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