Skip to main content

resource_sets

Creates, updates, deletes, gets or lists a resource_sets resource.

Overview​

Nameresource_sets
TypeResource
Idaws.route53_recovery_readiness.resource_sets

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_set_arnstringThe Amazon Resource Name (ARN) for the resource set.
resource_set_namestringThe name of the resource set. (pattern: <code>\A[a-zA-Z0-9_]+\z</code>)
resource_set_typestringThe 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 (pattern: <code>AWS::[A-Za-z0-9]+::[A-Za-z0-9]+</code>)
resourcesarrayA list of resource objects.
tagsobject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_setselectresource_set_name, regionDisplays the details about a resource set, including a list of the resources in the set.
list_resource_setsselectregionmaxResults, nextTokenLists the resource sets in an account.
create_resource_setinsertregion, ResourceSetName, ResourceSetTypeCreates a resource set. A resource set is a set of resources of one type that span multiple cells. You can associate a resource set with a readiness check to monitor the resources for failover readiness.
update_resource_setupdateresource_set_name, region, ResourceSetTypeUpdates a resource set.
delete_resource_setdeleteresource_set_name, regionDeletes a resource set.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
resource_set_namestringName of a resource set.
maxResultsintegerThe number of objects that you want to return with this call.
nextTokenstringThe token that identifies which batch of results you want to see.

SELECT examples​

Displays the details about a resource set, including a list of the resources in the set.

SELECT
resource_set_arn,
resource_set_name,
resource_set_type,
resources,
tags
FROM aws.route53_recovery_readiness.resource_sets
WHERE resource_set_name = '{{ resource_set_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a resource set. A resource set is a set of resources of one type that span multiple cells. You can associate a resource set with a readiness check to monitor the resources for failover readiness.

INSERT INTO aws.route53_recovery_readiness.resource_sets (
ResourceSetName,
ResourceSetType,
Resources,
Tags,
region
)
SELECT
'{{ ResourceSetName }}' /* required */,
'{{ ResourceSetType }}' /* required */,
'{{ Resources }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
resource_set_arn,
resource_set_name,
resource_set_type,
resources,
tags
;

UPDATE examples​

Updates a resource set.

UPDATE aws.route53_recovery_readiness.resource_sets
SET
ResourceSetType = '{{ ResourceSetType }}',
Resources = '{{ Resources }}'
WHERE
resource_set_name = '{{ resource_set_name }}' --required
AND region = '{{ region }}' --required
AND ResourceSetType = '{{ ResourceSetType }}' --required
RETURNING
resource_set_arn,
resource_set_name,
resource_set_type,
resources,
tags;

DELETE examples​

Deletes a resource set.

DELETE FROM aws.route53_recovery_readiness.resource_sets
WHERE resource_set_name = '{{ resource_set_name }}' --required
AND region = '{{ region }}' --required
;