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

DELETE example

/*+ delete */
DELETE FROM awscc.backup.restore_testing_selections
WHERE
Identifier = '{{ restore_testing_plan_name }}|{{ restore_testing_selection_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_selections resource, the following permissions are required:

backup:CreateRestoreTestingSelection,
backup:GetRestoreTestingSelection,
iam:PassRole