AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Backup::RestoreTestingSelection

CfnRestoreTestingSelection

This request can be sent after CreateRestoreTestingPlan request returns successfully. This is the second part of creating a resource testing plan, and it must be completed sequentially. This consists of `RestoreTestingSelectionName` , `ProtectedResourceType` , and one of the following: - `ProtectedResourceArns` - `ProtectedResourceConditions` Each protected resource type can have one single value. A restore testing selection can include a wildcard value ("*") for `ProtectedResourceArns` along with `ProtectedResourceConditions` . Alternatively, you can include up to 30 specific protected resource ARNs in `ProtectedResourceArns` . Cannot select by both protected resource types AND specific ARNs. Request will fail if both are included.

Import

import { CfnRestoreTestingSelection } from 'aws-cdk-lib/aws-backup';

Or use the module namespace:

import * as backup from 'aws-cdk-lib/aws-backup';
// backup.CfnRestoreTestingSelection

Properties

Configuration passed to the constructor as CfnRestoreTestingSelectionProps.

iamRoleArnRequired
string

The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; for example: `arn:aws:iam::123456789012:role/S3Access` .

protectedResourceTypeRequired
string

The type of AWS resource included in a resource testing selection; for example, an Amazon EBS volume or an Amazon RDS database.

restoreTestingPlanNameRequired
string

Unique string that is the name of the restore testing plan. The name cannot be changed after creation. The name must consist of only alphanumeric characters and underscores. Maximum length is 50.

restoreTestingSelectionNameRequired
string

The unique name of the restore testing selection that belongs to the related restore testing plan. The name consists of only alphanumeric characters and underscores. Maximum length is 50.

protectedResourceArnsOptional
string[]

You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.

protectedResourceConditionsOptional
IResolvable | ProtectedResourceConditionsProperty

In a resource testing selection, this parameter filters by specific conditions such as `StringEquals` or `StringNotEquals` .

restoreMetadataOverridesOptional
{ [key: string]: string } | IResolvable

You can override certain restore metadata keys by including the parameter `RestoreMetadataOverrides` in the body of `RestoreTestingSelection` . Key values are not case sensitive. See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) .

validationWindowHoursOptional
number

This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter