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

NameResourceAccessible byRequired Params
create_resourcerestore_testing_plansINSERTRecoveryPointSelection, ScheduleExpression, RestoreTestingPlanName, region
delete_resourcerestore_testing_plansDELETEIdentifier, region
update_resourcerestore_testing_plansUPDATEIdentifier, PatchDocument, region
list_resourcesrestore_testing_plans_list_onlySELECTregion
get_resourcerestore_testing_plansSELECTIdentifier, 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 = '{{ region }}' AND
Identifier = '{{ restore_testing_plan_name }}';

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
'{{ schedule_expression }}',
'{{ recovery_point_selection }}',
'{{ restore_testing_plan_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.backup.restore_testing_plans
SET PatchDocument = string('{{ {
"ScheduleExpression": schedule_expression,
"StartWindowHours": start_window_hours,
"RecoveryPointSelection": recovery_point_selection,
"ScheduleExpressionTimezone": schedule_expression_timezone,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ restore_testing_plan_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.backup.restore_testing_plans
WHERE
Identifier = '{{ restore_testing_plan_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

backup:GetRestoreTestingPlan,
backup:ListTags