Skip to main content

restore_testing_plans

Creates, updates, deletes or gets a restore_testing_plan resource or lists restore_testing_plans in a region

Overview

Namerestore_testing_plans
TypeResource
DescriptionDefinition of AWS::Backup::RestoreTestingPlan Resource Type
Idaws.backup.restore_testing_plans

Fields

NameDatatypeDescription
recovery_point_selectionobject
restore_testing_plan_arnstring
restore_testing_plan_namestring
schedule_expressionstring
schedule_expression_timezonestring
start_window_hoursinteger
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTRecoveryPointSelection, ScheduleExpression, RestoreTestingPlanName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all restore_testing_plans in a region.

SELECT
region,
recovery_point_selection,
restore_testing_plan_arn,
restore_testing_plan_name,
schedule_expression,
schedule_expression_timezone,
start_window_hours,
tags
FROM aws.backup.restore_testing_plans
WHERE region = 'us-east-1';

Gets all properties from an individual restore_testing_plan.

SELECT
region,
recovery_point_selection,
restore_testing_plan_arn,
restore_testing_plan_name,
schedule_expression,
schedule_expression_timezone,
start_window_hours,
tags
FROM aws.backup.restore_testing_plans
WHERE region = 'us-east-1' AND data__Identifier = '<RestoreTestingPlanName>';

INSERT example

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

/*+ create */
INSERT INTO aws.backup.restore_testing_plans (
RecoveryPointSelection,
RestoreTestingPlanName,
ScheduleExpression,
region
)
SELECT
'{{ RecoveryPointSelection }}',
'{{ RestoreTestingPlanName }}',
'{{ ScheduleExpression }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

backup:CreateRestoreTestingPlan,
backup:TagResource,
backup:GetRestoreTestingPlan,
backup:ListTags

Read

backup:GetRestoreTestingPlan,
backup:ListTags

Update

backup:UpdateRestoreTestingPlan,
backup:TagResource,
backup:UntagResource,
backup:GetRestoreTestingPlan,
backup:ListTags

Delete

backup:DeleteRestoreTestingPlan,
backup:GetRestoreTestingPlan

List

backup:ListRestoreTestingPlans