Class CfnHostedZonePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.route53.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnHostedZonePropsMixin cfnHostedZonePropsMixin = CfnHostedZonePropsMixin.Builder.create(CfnHostedZoneMixinProps.builder()
.hostedZoneConfig(HostedZoneConfigProperty.builder()
.comment("comment")
.build())
.hostedZoneFeatures(HostedZoneFeaturesProperty.builder()
.enableAcceleratedRecovery(false)
.build())
.hostedZoneTags(List.of(HostedZoneTagProperty.builder()
.key("key")
.value("value")
.build()))
.name("name")
.queryLoggingConfig(QueryLoggingConfigProperty.builder()
.cloudWatchLogsLogGroupArn("cloudWatchLogsLogGroupArn")
.build())
.vpcs(List.of(VPCProperty.builder()
.vpcId("vpcId")
.vpcRegion("vpcRegion")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnHostedZonePropsMixin.static interfaceA complex type that contains an optional comment about your hosted zone.static interfaceRepresents the features configuration for a hosted zone, including the status of various features and any associated failure reasons.static interfaceA complex type that contains information about a tag that you want to add or edit for the specified health check or hosted zone.static interfaceA complex type that contains information about a configuration for DNS query logging.static interfacePrivate hosted zones only: A complex type that contains information about an Amazon VPC.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Route53::HostedZone.CfnHostedZonePropsMixin(CfnHostedZoneMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Route53::HostedZone.protectedCfnHostedZonePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHostedZonePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnHostedZoneMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnHostedZonePropsMixin
protected CfnHostedZonePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnHostedZonePropsMixin
protected CfnHostedZonePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnHostedZonePropsMixin
@Stability(Stable) public CfnHostedZonePropsMixin(@NotNull CfnHostedZoneMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Route53::HostedZone.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnHostedZonePropsMixin
Create a mixin to apply properties toAWS::Route53::HostedZone.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-