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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTIamRoleArn, ProtectedResourceType, RestoreTestingPlanName, RestoreTestingSelectionName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all restore_testing_selections in a region.

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 aws.backup.restore_testing_selections
WHERE region = 'us-east-1';

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 aws.backup.restore_testing_selections
WHERE region = 'us-east-1' AND data__Identifier = '<RestoreTestingPlanName>|<RestoreTestingSelectionName>';

INSERT example

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

/*+ create */
INSERT INTO aws.backup.restore_testing_selections (
IamRoleArn,
ProtectedResourceType,
RestoreTestingPlanName,
RestoreTestingSelectionName,
region
)
SELECT
'{{ IamRoleArn }}',
'{{ ProtectedResourceType }}',
'{{ RestoreTestingPlanName }}',
'{{ RestoreTestingSelectionName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.backup.restore_testing_selections
WHERE data__Identifier = '<RestoreTestingPlanName|RestoreTestingSelectionName>'
AND region = 'us-east-1';

Permissions

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

Create

backup:CreateRestoreTestingSelection,
backup:GetRestoreTestingSelection,
iam:PassRole

Read

backup:GetRestoreTestingSelection

Update

backup:UpdateRestoreTestingSelection,
backup:GetRestoreTestingSelection,
iam:PassRole

Delete

backup:DeleteRestoreTestingSelection,
backup:GetRestoreTestingSelection

List

backup:ListRestoreTestingSelections