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
Idawscc.backup.restore_testing_plans

Fields

NameDatatypeDescription
schedule_expressionstring
start_window_hoursinteger
recovery_point_selectionobject
restore_testing_plan_arnstring
restore_testing_plan_namestring
schedule_expression_timezonestring
tagsarray
regionstringAWS region.

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

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 properties from an individual restore_testing_plan.

SELECT
region,
schedule_expression,
start_window_hours,
recovery_point_selection,
restore_testing_plan_arn,
restore_testing_plan_name,
schedule_expression_timezone,
tags
FROM awscc.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 awscc.backup.restore_testing_plans (
ScheduleExpression,
RecoveryPointSelection,
RestoreTestingPlanName,
region
)
SELECT
'{{ ScheduleExpression }}',
'{{ RecoveryPointSelection }}',
'{{ RestoreTestingPlanName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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:

Read

backup:GetRestoreTestingPlan,
backup:ListTags

Create

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

Update

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

List

backup:ListRestoreTestingPlans

Delete

backup:DeleteRestoreTestingPlan,
backup:GetRestoreTestingPlan