Class CfnResourceSet
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Route53RecoveryReadiness::ResourceSet
.
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();
-
Nested Class Summary
Modifier 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.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
ModifierConstructorDescriptionCfnResourceSet
(Construct scope, String id, CfnResourceSetProps props) Create a newAWS::Route53RecoveryReadiness::ResourceSet
.protected
CfnResourceSet
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnResourceSet
(software.amazon.jsii.JsiiObjectRef objRef) -
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()
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.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
-
CfnResourceSet
protected CfnResourceSet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResourceSet
protected CfnResourceSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResourceSet
@Stability(Stable) public CfnResourceSet(@NotNull Construct scope, @NotNull String id, @NotNull CfnResourceSetProps props) Create a newAWS::Route53RecoveryReadiness::ResourceSet
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
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.
-
getAttrResourceSetArn
The Amazon Resource Name (ARN) of the resource set. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
A tag to associate with the parameters for a resource set. -
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:.AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource.
Note that AWS::Route53RecoveryReadiness::DNSTargetResource is only used for this setting. It isn't an actual AWS CloudFormation resource type.
-
setResourceSetType
The resource type of the resources in the resource set. Enter one of the following values for resource type:.AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource.
Note that AWS::Route53RecoveryReadiness::DNSTargetResource is only used for this setting. It isn't an actual AWS CloudFormation resource type.
-
getResourceSetName
The name of the resource set to create. -
setResourceSetName
The name of the resource set to create.
-