Class PrivateHostedZone
Create a Route53 private hosted zone for use in one or more VPCs.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PrivateHostedZone : HostedZone, IPrivateHostedZone, IHostedZone, IResource
Syntax (vb)
Public Class PrivateHostedZone
Inherits HostedZone
Implements IPrivateHostedZone, IHostedZone, IResource
Remarks
Note that enableDnsHostnames
and enableDnsSupport
must have been enabled
for the VPC you're configuring for private hosted zones.
Resource: AWS::Route53::HostedZone
ExampleMetadata: infused
Examples
Vpc vpc;
var zone = new PrivateHostedZone(this, "HostedZone", new PrivateHostedZoneProps {
ZoneName = "fully.qualified.domain.com",
Vpc = vpc
});
Synopsis
Constructors
PrivateHostedZone(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
PrivateHostedZone(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
PrivateHostedZone(Construct, String, IPrivateHostedZoneProps) |
Methods
FromPrivateHostedZoneId(Construct, String, String) | Import a Route 53 private hosted zone defined either outside the CDK, or in a different CDK stack. |
Constructors
PrivateHostedZone(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected PrivateHostedZone(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
PrivateHostedZone(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected PrivateHostedZone(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
PrivateHostedZone(Construct, String, IPrivateHostedZoneProps)
public PrivateHostedZone(Construct scope, string id, IPrivateHostedZoneProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IPrivateHostedZoneProps
Methods
FromPrivateHostedZoneId(Construct, String, String)
Import a Route 53 private hosted zone defined either outside the CDK, or in a different CDK stack.
public static IPrivateHostedZone FromPrivateHostedZoneId(Construct scope, string id, string privateHostedZoneId)
Parameters
- scope Constructs.Construct
the parent Construct for this Construct.
- id System.String
the logical name of this Construct.
- privateHostedZoneId System.String
the ID of the private hosted zone to import.
Returns
Remarks
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.