Class PrivateHostedZone

All Implemented Interfaces:
IConstruct, IDependable, IResource, IHostedZone, IPrivateHostedZone,, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.034Z") @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.


 Vpc vpc;
 PrivateHostedZone zone = PrivateHostedZone.Builder.create(this, "HostedZone")
  • Constructor Details

    • PrivateHostedZone

      protected PrivateHostedZone( objRef)
    • PrivateHostedZone

      protected PrivateHostedZone( initializationMode)
    • PrivateHostedZone

      @Stability(Stable) public PrivateHostedZone(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrivateHostedZoneProps props)
      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.

      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.