Skip to main content

resource_sets

Creates, updates, deletes or gets a resource_set resource or lists resource_sets in a region

Overview

Nameresource_sets
TypeResource
DescriptionSchema for the AWS Route53 Recovery Readiness ResourceSet Resource and API.
Idaws.route53recoveryreadiness.resource_sets

Fields

NameDatatypeDescription
resource_set_namestringThe name of the resource set to create.
resourcesarrayA list of resource objects in the resource set.
resource_set_arnstringThe Amazon Resource Name (ARN) of the resource set.
resource_set_typestringThe resource type of the resources in the resource set. Enter one of the following values for resource type:
AWS: :AutoScaling: :AutoScalingGroup, AWS: :CloudWatch: :Alarm, AWS: :EC2: :CustomerGateway, AWS: :DynamoDB: :Table, AWS: :EC2: :Volume, AWS: :ElasticLoadBalancing: :LoadBalancer, AWS: :ElasticLoadBalancingV2: :LoadBalancer, 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
tagsarrayA tag to associate with the parameters for a resource set.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceSetType, Resources, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all resource_sets in a region.

SELECT
region,
resource_set_name,
resources,
resource_set_arn,
resource_set_type,
tags
FROM aws.route53recoveryreadiness.resource_sets
WHERE region = 'us-east-1';

Gets all properties from an individual resource_set.

SELECT
region,
resource_set_name,
resources,
resource_set_arn,
resource_set_type,
tags
FROM aws.route53recoveryreadiness.resource_sets
WHERE region = 'us-east-1' AND data__Identifier = '<ResourceSetName>';

INSERT example

Use the following StackQL query and manifest file to create a new resource_set resource, using stack-deploy.

/*+ create */
INSERT INTO aws.route53recoveryreadiness.resource_sets (
Resources,
ResourceSetType,
region
)
SELECT
'{{ Resources }}',
'{{ ResourceSetType }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.route53recoveryreadiness.resource_sets
WHERE data__Identifier = '<ResourceSetName>'
AND region = 'us-east-1';

Permissions

To operate on the resource_sets resource, the following permissions are required:

Create

route53-recovery-readiness:CreateResourceSet,
route53-recovery-readiness:GetResourceSet,
route53-recovery-readiness:GetRecoveryGroup,
route53-recovery-readiness:GetCell,
route53-recovery-readiness:ListTagsForResources,
route53-recovery-readiness:TagResource

Read

route53-recovery-readiness:GetResourceSet,
route53-recovery-readiness:ListTagsForResources

Update

route53-recovery-readiness:UpdateResourceSet,
route53-recovery-readiness:GetResourceSet,
route53-recovery-readiness:GetRecoveryGroup,
route53-recovery-readiness:GetCell,
route53-recovery-readiness:ListTagsForResources,
route53-recovery-readiness:TagResource,
route53-recovery-readiness:UntagResource

Delete

route53-recovery-readiness:DeleteResourceSet,
route53-recovery-readiness:GetResourceSet

List

route53-recovery-readiness:ListResourceSets