Class PrivateHostedZone

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.route53.HostedZone
software.amazon.awscdk.services.route53.PrivateHostedZone
All Implemented Interfaces:
IResource, IHostedZone, IPrivateHostedZone, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:16.088Z") @Stability(Stable) public class PrivateHostedZone extends HostedZone implements IPrivateHostedZone
Create a Route53 private hosted zone for use in one or more VPCs.

Note that enableDnsHostnames and enableDnsSupport must have been enabled for the VPC you're configuring for private hosted zones.

Example:

 Vpc vpc;
 PrivateHostedZone zone = PrivateHostedZone.Builder.create(this, "HostedZone")
         .zoneName("fully.qualified.domain.com")
         .vpc(vpc)
         .build();
 
  • Constructor Details

    • PrivateHostedZone

      protected PrivateHostedZone(software.amazon.jsii.JsiiObjectRef objRef)
    • PrivateHostedZone

      protected PrivateHostedZone(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • PrivateHostedZone

      @Stability(Stable) public PrivateHostedZone(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrivateHostedZoneProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromPrivateHostedZoneId

      @Stability(Stable) @NotNull public static IPrivateHostedZone fromPrivateHostedZoneId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String privateHostedZoneId)
      Import a Route 53 private hosted zone defined either outside the CDK, or in a different CDK stack.

      Use when hosted zone ID is known. If a HostedZone is imported with this method the zoneName cannot be referenced. If the zoneName is needed then you cannot import a PrivateHostedZone.

      Parameters:
      scope - the parent Construct for this Construct. This parameter is required.
      id - the logical name of this Construct. This parameter is required.
      privateHostedZoneId - the ID of the private hosted zone to import. This parameter is required.