Class CfnRecordSetGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Route53::RecordSetGroup
.
A complex type that contains an optional comment, the name and ID of the hosted zone that you want to make changes in, and values for the records that you want to create.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.route53.*; CfnRecordSetGroup cfnRecordSetGroup = CfnRecordSetGroup.Builder.create(this, "MyCfnRecordSetGroup") .comment("comment") .hostedZoneId("hostedZoneId") .hostedZoneName("hostedZoneName") .recordSets(List.of(RecordSetProperty.builder() .name("name") .type("type") // the properties below are optional .aliasTarget(AliasTargetProperty.builder() .dnsName("dnsName") .hostedZoneId("hostedZoneId") // the properties below are optional .evaluateTargetHealth(false) .build()) .cidrRoutingConfig(CidrRoutingConfigProperty.builder() .collectionId("collectionId") .locationName("locationName") .build()) .failover("failover") .geoLocation(GeoLocationProperty.builder() .continentCode("continentCode") .countryCode("countryCode") .subdivisionCode("subdivisionCode") .build()) .healthCheckId("healthCheckId") .hostedZoneId("hostedZoneId") .hostedZoneName("hostedZoneName") .multiValueAnswer(false) .region("region") .resourceRecords(List.of("resourceRecords")) .setIdentifier("setIdentifier") .ttl("ttl") .weight(123) .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Alias records only: Information about the AWS resource, such as a CloudFront distribution or an Amazon S3 bucket, that you want to route traffic to.static final class
A fluent builder forCfnRecordSetGroup
.static interface
The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.static interface
A complex type that contains information about a geographic location.static interface
Information about one record that you want to create.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnRecordSetGroup
(Construct scope, String id) Create a newAWS::Route53::RecordSetGroup
.CfnRecordSetGroup
(Construct scope, String id, CfnRecordSetGroupProps props) Create a newAWS::Route53::RecordSetGroup
.protected
CfnRecordSetGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnRecordSetGroup
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionOptional: Any comments you want to include about a change batch request.The ID of the hosted zone that you want to create records in.The name of the hosted zone that you want to create records in.A complex type that contains oneRecordSet
element for each record that you want to create.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setComment
(String value) Optional: Any comments you want to include about a change batch request.void
setHostedZoneId
(String value) The ID of the hosted zone that you want to create records in.void
setHostedZoneName
(String value) The name of the hosted zone that you want to create records in.void
setRecordSets
(List<Object> value) A complex type that contains oneRecordSet
element for each record that you want to create.void
setRecordSets
(IResolvable value) A complex type that contains oneRecordSet
element for each record that you want to create.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnRecordSetGroup
protected CfnRecordSetGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRecordSetGroup
protected CfnRecordSetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRecordSetGroup
@Stability(Stable) public CfnRecordSetGroup(@NotNull Construct scope, @NotNull String id, @Nullable CfnRecordSetGroupProps props) Create a newAWS::Route53::RecordSetGroup
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
CfnRecordSetGroup
Create a newAWS::Route53::RecordSetGroup
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getComment
Optional: Any comments you want to include about a change batch request. -
setComment
Optional: Any comments you want to include about a change batch request. -
getHostedZoneId
The ID of the hosted zone that you want to create records in.Specify either
HostedZoneName
orHostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId
. -
setHostedZoneId
The ID of the hosted zone that you want to create records in.Specify either
HostedZoneName
orHostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId
. -
getHostedZoneName
The name of the hosted zone that you want to create records in.You must include a trailing dot (for example,
www.example.com.
) as part of theHostedZoneName
.When you create a stack using an
AWS::Route53::RecordSet
that specifiesHostedZoneName
, AWS CloudFormation attempts to find a hosted zone whose name matches theHostedZoneName
. If AWS CloudFormation can't find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack.Specify either
HostedZoneName
orHostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId
. -
setHostedZoneName
The name of the hosted zone that you want to create records in.You must include a trailing dot (for example,
www.example.com.
) as part of theHostedZoneName
.When you create a stack using an
AWS::Route53::RecordSet
that specifiesHostedZoneName
, AWS CloudFormation attempts to find a hosted zone whose name matches theHostedZoneName
. If AWS CloudFormation can't find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack.Specify either
HostedZoneName
orHostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId
. -
getRecordSets
A complex type that contains oneRecordSet
element for each record that you want to create. -
setRecordSets
A complex type that contains oneRecordSet
element for each record that you want to create. -
setRecordSets
A complex type that contains oneRecordSet
element for each record that you want to create.
-