Skip to main content

recovery_groups

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

Overview

Namerecovery_groups
TypeResource
Idaws.route53_recovery_readiness.recovery_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cellsarrayA list of a cell's Amazon Resource Names (ARNs).
recovery_group_arnstringThe Amazon Resource Name (ARN) for the recovery group.
recovery_group_namestringThe name of the recovery group. (pattern: <code>\A[a-zA-Z0-9_]+\z</code>)
tagsobjectThe tags associated with the recovery group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_recovery_groupselectrecovery_group_name, regionGets details about a recovery group, including a list of the cells that are included in it.
list_recovery_groupsselectregionmaxResults, nextTokenLists the recovery groups in an account.
create_recovery_groupinsertregion, RecoveryGroupNameCreates a recovery group in an account. A recovery group corresponds to an application and includes a list of the cells that make up the application.
update_recovery_groupupdaterecovery_group_name, regionUpdates a recovery group.
delete_recovery_groupdeleterecovery_group_name, regionDeletes a recovery group.

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
recovery_group_namestringThe name of a recovery group.
regionstringAWS region (default: us-east-1)
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

Gets details about a recovery group, including a list of the cells that are included in it.

SELECT
cells,
recovery_group_arn,
recovery_group_name,
tags
FROM aws.route53_recovery_readiness.recovery_groups
WHERE recovery_group_name = '{{ recovery_group_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a recovery group in an account. A recovery group corresponds to an application and includes a list of the cells that make up the application.

INSERT INTO aws.route53_recovery_readiness.recovery_groups (
Cells,
RecoveryGroupName,
Tags,
region
)
SELECT
'{{ Cells }}',
'{{ RecoveryGroupName }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
cells,
recovery_group_arn,
recovery_group_name,
tags
;

UPDATE examples

Updates a recovery group.

UPDATE aws.route53_recovery_readiness.recovery_groups
SET
Cells = '{{ Cells }}'
WHERE
recovery_group_name = '{{ recovery_group_name }}' --required
AND region = '{{ region }}' --required
RETURNING
cells,
recovery_group_arn,
recovery_group_name,
tags;

DELETE examples

Deletes a recovery group.

DELETE FROM aws.route53_recovery_readiness.recovery_groups
WHERE recovery_group_name = '{{ recovery_group_name }}' --required
AND region = '{{ region }}' --required
;