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.116.0 (build 0eddcff)",
date="2025-10-29T11:15:47.477Z")
@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:
IPrivateHostedZone privateZoneFromAttributes = PrivateHostedZone.fromPrivateHostedZoneAttributes(this, "MyPrivateZone", PrivateHostedZoneAttributes.builder()
.zoneName("example.local")
.hostedZoneId("ZOJJZC49E0EPZ")
.build());
// Does not know zoneName
IPrivateHostedZone privateZoneFromId = PrivateHostedZone.fromPrivateHostedZoneId(this, "MyPrivateZone", "ZOJJZC49E0EPZ");
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.route53.IHostedZone
IHostedZone.Jsii$Default, IHostedZone.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.route53.IPrivateHostedZone
IPrivateHostedZone.Jsii$Default, IPrivateHostedZone.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrivateHostedZone(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPrivateHostedZone(software.amazon.jsii.JsiiObjectRef objRef) PrivateHostedZone(software.constructs.Construct scope, String id, PrivateHostedZoneProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IPrivateHostedZonefromPrivateHostedZoneAttributes(software.constructs.Construct scope, String id, PrivateHostedZoneAttributes attrs) Imports a private hosted zone from another stack.static IPrivateHostedZonefromPrivateHostedZoneId(software.constructs.Construct scope, String id, String privateHostedZoneId) Import a Route 53 private hosted zone defined either outside the CDK, or in a different CDK stack.Methods inherited from class software.amazon.awscdk.services.route53.HostedZone
addVpc, enableDnssec, fromHostedZoneAttributes, fromHostedZoneId, fromLookup, getHostedZoneArn, getHostedZoneId, getHostedZoneNameServers, getVpcs, getZoneName, grantDelegationMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.services.route53.IHostedZone
getHostedZoneArn, getHostedZoneId, getHostedZoneNameServers, getZoneName, grantDelegationMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
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
-
fromPrivateHostedZoneAttributes
@Stability(Stable) @NotNull public static IPrivateHostedZone fromPrivateHostedZoneAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrivateHostedZoneAttributes attrs) Imports a private hosted zone from another stack.Use when both hosted zone ID and hosted zone name are known.
- Parameters:
scope- the parent Construct for this Construct. This parameter is required.id- the logical name of this Construct. This parameter is required.attrs- the PrivateHostedZoneAttributes (hosted zone ID and hosted zone name). This parameter is required.
-
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.
-