Skip to main content

restore_testing_selections

Creates, updates, deletes or gets a restore_testing_selection resource or lists restore_testing_selections in a region

Overview

Namerestore_testing_selections
TypeResource
DescriptionResource Type definition for AWS::Backup::RestoreTestingSelection
Idawscc.backup.restore_testing_selections

Fields

NameDatatypeDescription
iam_role_arnstring
protected_resource_arnsarray
protected_resource_conditionsobject
protected_resource_typestring
restore_metadata_overridesobject
restore_testing_plan_namestring
restore_testing_selection_namestring
validation_window_hoursinteger
regionstringAWS region.

For more information, see AWS::Backup::RestoreTestingSelection.

Methods

NameResourceAccessible byRequired Params
create_resourcerestore_testing_selectionsINSERTIamRoleArn, ProtectedResourceType, RestoreTestingPlanName, RestoreTestingSelectionName, region
delete_resourcerestore_testing_selectionsDELETEIdentifier, region
update_resourcerestore_testing_selectionsUPDATEIdentifier, PatchDocument, region
list_resourcesrestore_testing_selections_list_onlySELECTregion
get_resourcerestore_testing_selectionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual restore_testing_selection.

SELECT
region,
iam_role_arn,
protected_resource_arns,
protected_resource_conditions,
protected_resource_type,
restore_metadata_overrides,
restore_testing_plan_name,
restore_testing_selection_name,
validation_window_hours
FROM awscc.backup.restore_testing_selections
WHERE
region = 'us-east-1' AND
Identifier = '{{ restore_testing_plan_name }}|{{ restore_testing_selection_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.backup.restore_testing_selections (
IamRoleArn,
ProtectedResourceType,
RestoreTestingPlanName,
RestoreTestingSelectionName,
region
)
SELECT
'{{ iam_role_arn }}',
'{{ protected_resource_type }}',
'{{ restore_testing_plan_name }}',
'{{ restore_testing_selection_name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a restore_testing_selection resource, using stack-deploy.

/*+ update */
UPDATE awscc.backup.restore_testing_selections
SET PatchDocument = string('{{ {
"IamRoleArn": iam_role_arn,
"ProtectedResourceArns": protected_resource_arns,
"ProtectedResourceConditions": protected_resource_conditions,
"RestoreMetadataOverrides": restore_metadata_overrides,
"ValidationWindowHours": validation_window_hours
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ restore_testing_plan_name }}|{{ restore_testing_selection_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.backup.restore_testing_selections
WHERE
Identifier = '{{ restore_testing_plan_name }}|{{ restore_testing_selection_name }}' AND
region = 'us-east-1';

Permissions

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

backup:CreateRestoreTestingSelection,
backup:GetRestoreTestingSelection,
iam:PassRole