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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAlias 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 classA fluent builder forCfnRecordSetGroup.static interfaceThe object that is specified in resource record set object when you are linking a resource record set to a CIDR location.static interfaceA complex type that contains information about a geographic location.static interfaceInformation about one record that you want to create.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnRecordSetGroup(Construct scope, String id) Create a newAWS::Route53::RecordSetGroup.CfnRecordSetGroup(Construct scope, String id, CfnRecordSetGroupProps props) Create a newAWS::Route53::RecordSetGroup.protectedCfnRecordSetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRecordSetGroup(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 oneRecordSetelement for each record that you want to create.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetComment(String value) Optional: Any comments you want to include about a change batch request.voidsetHostedZoneId(String value) The ID of the hosted zone that you want to create records in.voidsetHostedZoneName(String value) The name of the hosted zone that you want to create records in.voidsetRecordSets(List<Object> value) A complex type that contains oneRecordSetelement for each record that you want to create.voidsetRecordSets(IResolvable value) A complex type that contains oneRecordSetelement 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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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
HostedZoneNameorHostedZoneId, 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
HostedZoneNameorHostedZoneId, 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::RecordSetthat 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
HostedZoneNameorHostedZoneId, 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::RecordSetthat 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
HostedZoneNameorHostedZoneId, 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 oneRecordSetelement for each record that you want to create. -
setRecordSets
A complex type that contains oneRecordSetelement for each record that you want to create. -
setRecordSets
A complex type that contains oneRecordSetelement for each record that you want to create.
-