Skip to main content

recovery_groups

Creates, updates, deletes or gets a recovery_group resource or lists recovery_groups in a region

Overview

Namerecovery_groups
TypeResource
DescriptionAWS Route53 Recovery Readiness Recovery Group Schema and API specifications.
Idaws.route53recoveryreadiness.recovery_groups

Fields

NameDatatypeDescription
recovery_group_namestringThe name of the recovery group to create.
cellsarrayA list of the cell Amazon Resource Names (ARNs) in the recovery group.
recovery_group_arnstringA collection of tags associated with a resource.
tagsarrayA collection of tags associated with a resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all recovery_groups in a region.

SELECT
region,
recovery_group_name,
cells,
recovery_group_arn,
tags
FROM aws.route53recoveryreadiness.recovery_groups
WHERE region = 'us-east-1';

Gets all properties from an individual recovery_group.

SELECT
region,
recovery_group_name,
cells,
recovery_group_arn,
tags
FROM aws.route53recoveryreadiness.recovery_groups
WHERE region = 'us-east-1' AND data__Identifier = '<RecoveryGroupName>';

INSERT example

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

/*+ create */
INSERT INTO aws.route53recoveryreadiness.recovery_groups (
RecoveryGroupName,
Cells,
Tags,
region
)
SELECT
'{{ RecoveryGroupName }}',
'{{ Cells }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

route53-recovery-readiness:CreateRecoveryGroup,
route53-recovery-readiness:GetRecoveryGroup,
route53-recovery-readiness:GetCell,
route53-recovery-readiness:ListTagsForResources,
route53-recovery-readiness:TagResource

Read

route53-recovery-readiness:GetRecoveryGroup,
route53-recovery-readiness:ListTagsForResources

Update

route53-recovery-readiness:UpdateRecoveryGroup,
route53-recovery-readiness:GetRecoveryGroup,
route53-recovery-readiness:GetCell,
route53-recovery-readiness:ListTagsForResources,
route53-recovery-readiness:TagResource,
route53-recovery-readiness:UntagResource

Delete

route53-recovery-readiness:DeleteRecoveryGroup,
route53-recovery-readiness:GetRecoveryGroup

List

route53-recovery-readiness:ListRecoveryGroups