class CfnHostedZonePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Route53.Mixins.CfnHostedZonePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsroute53/mixins#CfnHostedZonePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.route53.mixins.CfnHostedZonePropsMixin |
Python | aws_cdk.mixins_preview.aws_route53.mixins.CfnHostedZonePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_route53 » mixins » CfnHostedZonePropsMixin |
Implements
IMixin
Extends
Mixin
Creates a new public or private hosted zone.
You create records in a public hosted zone to define how you want to route traffic on the internet for a domain, such as example.com, and its subdomains (apex.example.com, acme.example.com). You create records in a private hosted zone to define how you want to route traffic for a domain and its subdomains within one or more Amazon Virtual Private Clouds (Amazon VPCs).
You can't convert a public hosted zone to a private hosted zone or vice versa. Instead, you must create a new hosted zone with the same name and create new resource record sets.
For more information about charges for hosted zones, see Amazon Route 53 Pricing .
Note the following:
- You can't create a hosted zone for a top-level domain (TLD) such as .com.
- If your domain is registered with a registrar other than Route 53, you must update the name servers with your registrar to make Route 53 the DNS service for the domain. For more information, see Migrating DNS Service for an Existing Domain to Amazon Route 53 in the Amazon Route 53 Developer Guide .
When you submit a CreateHostedZone request, the initial status of the hosted zone is PENDING . For public hosted zones, this means that the NS and SOA records are not yet available on all Route 53 DNS servers. When the NS and SOA records are available, the status of the zone changes to INSYNC .
The CreateHostedZone request requires the caller to have an ec2:DescribeVpcs permission.
When creating private hosted zones, the Amazon VPC must belong to the same partition where the hosted zone is created. A partition is a group of AWS Regions . Each AWS account is scoped to one partition.
The following are the supported partitions:
aws- AWS Regionsaws-cn- China Regionsaws-us-gov- AWS GovCloud (US) RegionFor more information, see Access Management in the AWS General Reference .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as route53_mixins } from '@aws-cdk/mixins-preview/aws-route53';
const cfnHostedZonePropsMixin = new route53_mixins.CfnHostedZonePropsMixin({
hostedZoneConfig: {
comment: 'comment',
},
hostedZoneFeatures: {
enableAcceleratedRecovery: false,
},
hostedZoneTags: [{
key: 'key',
value: 'value',
}],
name: 'name',
queryLoggingConfig: {
cloudWatchLogsLogGroupArn: 'cloudWatchLogsLogGroupArn',
},
vpcs: [{
vpcId: 'vpcId',
vpcRegion: 'vpcRegion',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnHostedZonePropsMixin(props: CfnHostedZoneMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Hosted Zone Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Route53::HostedZone.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript