Class CfnResourceSet
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.route53recoveryreadiness.CfnResourceSet
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-17T00:47:11.452Z")
@Stability(Stable)
public class CfnResourceSet
extends CfnResource
implements IInspectable, ITaggable
Creates a resource set in Amazon Route 53 Application Recovery Controller.
A resource set is a set of resources of one type, such as Network Load Balancers, that span multiple cells. You can associate a resource set with a readiness check to have Route 53 ARC continually monitor the resources in the set for failover readiness.
You typically create a resource set and a readiness check for each supported type of AWS resource in your application.
For more information, see Readiness checks, resource sets, and readiness scopes in the Amazon Route 53 Application Recovery Controller Developer Guide.
Route 53 ARC Readiness supports us-east-1 and us-west-2 AWS Regions only.
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.route53recoveryreadiness.*; CfnResourceSet cfnResourceSet = CfnResourceSet.Builder.create(this, "MyCfnResourceSet") .resources(List.of(ResourceProperty.builder() .componentId("componentId") .dnsTargetResource(DNSTargetResourceProperty.builder() .domainName("domainName") .hostedZoneArn("hostedZoneArn") .recordSetId("recordSetId") .recordType("recordType") .targetResource(TargetResourceProperty.builder() .nlbResource(NLBResourceProperty.builder() .arn("arn") .build()) .r53Resource(R53ResourceRecordProperty.builder() .domainName("domainName") .recordSetId("recordSetId") .build()) .build()) .build()) .readinessScopes(List.of("readinessScopes")) .resourceArn("resourceArn") .build())) .resourceSetType("resourceSetType") // the properties below are optional .resourceSetName("resourceSetName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnResourceSet
.static interface
A component for DNS/routing control readiness checks and architecture checks.static interface
The Network Load Balancer resource that a DNS target resource points to.static interface
The Amazon Route 53 resource that a DNS target resource record points to.static interface
The resource element of a resource set.static interface
The target resource that the Route 53 record points to.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnResourceSet
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnResourceSet
(software.amazon.jsii.JsiiObjectRef objRef) CfnResourceSet
(software.constructs.Construct scope, String id, CfnResourceSetProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the resource set.A list of resource objects in the resource set.The name of the resource set to create.The resource type of the resources in the resource set.getTags()
Tag Manager which manages the tags for this resource.A tag to associate with the parameters for a resource set.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setResources
(List<Object> value) A list of resource objects in the resource set.void
setResources
(IResolvable value) A list of resource objects in the resource set.void
setResourceSetName
(String value) The name of the resource set to create.void
setResourceSetType
(String value) The resource type of the resources in the resource set.void
setTagsRaw
(List<CfnTag> value) A tag to associate with the parameters for a resource set.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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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
-
CfnResourceSet
protected CfnResourceSet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResourceSet
protected CfnResourceSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResourceSet
@Stability(Stable) public CfnResourceSet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnResourceSetProps 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. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrResourceSetArn
The Amazon Resource Name (ARN) of the resource set. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getResources
A list of resource objects in the resource set. -
setResources
A list of resource objects in the resource set. -
setResources
A list of resource objects in the resource set. -
getResourceSetType
The resource type of the resources in the resource set.Enter one of the following values for resource type:.
-
setResourceSetType
The resource type of the resources in the resource set.Enter one of the following values for resource type:.
-
getResourceSetName
The name of the resource set to create. -
setResourceSetName
The name of the resource set to create. -
getTagsRaw
A tag to associate with the parameters for a resource set. -
setTagsRaw
A tag to associate with the parameters for a resource set.
-