Class CfnRecordSetGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.route53.CfnRecordSetGroup
- All Implemented Interfaces:
IInspectable,IRecordSetGroupRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:19.307Z")
@Stability(Stable)
public class CfnRecordSetGroup
extends CfnResource
implements IInspectable, IRecordSetGroupRef
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())
.geoProximityLocation(GeoProximityLocationProperty.builder()
.awsRegion("awsRegion")
.bias(123)
.coordinates(CoordinatesProperty.builder()
.latitude("latitude")
.longitude("longitude")
.build())
.localZoneGroup("localZoneGroup")
.build())
.healthCheckId("healthCheckId")
.hostedZoneId("hostedZoneId")
.hostedZoneName("hostedZoneName")
.multiValueAnswer(false)
.region("region")
.resourceRecords(List.of("resourceRecords"))
.setIdentifier("setIdentifier")
.ttl("ttl")
.weight(123)
.build()))
.build();
- See Also:
-
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 lists the coordinates for a geoproximity resource record.static interfaceA complex type that contains information about a geographic location.static interface(Resource record sets only): A complex type that lets you specify where your resources are located.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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.route53.IRecordSetGroupRef
IRecordSetGroupRef.Jsii$Default, IRecordSetGroupRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRecordSetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRecordSetGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnRecordSetGroup(software.constructs.Construct scope, String id) CfnRecordSetGroup(software.constructs.Construct scope, String id, CfnRecordSetGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionThis element contains an ID that you use when performing aGetChangeaction to get detailed information about the change.Optional: 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 reference to a RecordSetGroup resource.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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnRecordSetGroupProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnRecordSetGroup
@Stability(Stable) public CfnRecordSetGroup(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
This element contains an ID that you use when performing aGetChangeaction to get detailed information about the change. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRecordSetGroupRef
A reference to a RecordSetGroup resource.- Specified by:
getRecordSetGroupRefin interfaceIRecordSetGroupRef
-
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. -
setHostedZoneId
The ID of the hosted zone that you want to create records in. -
getHostedZoneName
The name of the hosted zone that you want to create records in. -
setHostedZoneName
The name of the hosted zone that you want to create records in. -
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.
-