@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:35.504Z") public class PublicHostedZone extends HostedZone implements IPublicHostedZone
Example:
IHostedZone zoneFromAttributes = PublicHostedZone.fromPublicHostedZoneAttributes(this, "MyZone", PublicHostedZoneAttributes.builder() .zoneName("example.com") .hostedZoneId("ZOJJZC49E0EPZ") .build()); // Does not know zoneName IPublicHostedZone zoneFromId = PublicHostedZone.fromPublicHostedZoneId(this, "MyZone", "ZOJJZC49E0EPZ");
Modifier and Type | Class and Description |
---|---|
static class |
PublicHostedZone.Builder
A fluent builder for
PublicHostedZone . |
IPublicHostedZone.Jsii$Default, IPublicHostedZone.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
PublicHostedZone(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PublicHostedZone(software.amazon.jsii.JsiiObjectRef objRef) |
|
PublicHostedZone(software.constructs.Construct scope,
java.lang.String id,
PublicHostedZoneProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addDelegation(IPublicHostedZone delegate)
Adds a delegation from this zone to a designated zone.
|
void |
addDelegation(IPublicHostedZone delegate,
ZoneDelegationOptions opts)
Adds a delegation from this zone to a designated zone.
|
void |
addVpc(IVpc _vpc)
Add another VPC to this private hosted zone.
|
static IHostedZone |
fromPublicHostedZoneAttributes(software.constructs.Construct scope,
java.lang.String id,
PublicHostedZoneAttributes attrs)
Imports a public hosted zone from another stack.
|
static IPublicHostedZone |
fromPublicHostedZoneId(software.constructs.Construct scope,
java.lang.String id,
java.lang.String publicHostedZoneId)
Import a Route 53 public hosted zone defined either outside the CDK, or in a different CDK stack.
|
Role |
getCrossAccountZoneDelegationRole()
Role for cross account zone delegation.
|
fromHostedZoneAttributes, fromHostedZoneId, fromLookup, getHostedZoneArn, getHostedZoneId, getHostedZoneNameServers, getVpcs, getZoneName
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHostedZoneArn, getHostedZoneId, getHostedZoneNameServers, getZoneName
applyRemovalPolicy, getEnv, getStack
getNode
protected PublicHostedZone(software.amazon.jsii.JsiiObjectRef objRef)
protected PublicHostedZone(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public PublicHostedZone(software.constructs.Construct scope, java.lang.String id, PublicHostedZoneProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IHostedZone fromPublicHostedZoneAttributes(software.constructs.Construct scope, java.lang.String id, PublicHostedZoneAttributes attrs)
Use when both hosted zone ID and hosted zone name are known.
scope
- the parent Construct for this Construct. This parameter is required.id
- the logical name of this Construct. This parameter is required.attrs
- the PublicHostedZoneAttributes (hosted zone ID and hosted zone name). This parameter is required.public static IPublicHostedZone fromPublicHostedZoneId(software.constructs.Construct scope, java.lang.String id, java.lang.String publicHostedZoneId)
scope
- the parent Construct for this Construct. This parameter is required.id
- the logical name of this Construct. This parameter is required.publicHostedZoneId
- the ID of the public hosted zone to import. This parameter is required.public void addDelegation(IPublicHostedZone delegate, ZoneDelegationOptions opts)
delegate
- the zone being delegated to. This parameter is required.opts
- options for creating the DNS record, if any.public void addDelegation(IPublicHostedZone delegate)
delegate
- the zone being delegated to. This parameter is required.public void addVpc(IVpc _vpc)
addVpc
in class HostedZone
_vpc
- This parameter is required.public Role getCrossAccountZoneDelegationRole()