AWS::Backup::RestoreTestingSelectionThis 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 { CfnRestoreTestingSelection } from 'aws-cdk-lib/aws-backup';Or use the module namespace:
import * as backup from 'aws-cdk-lib/aws-backup';
// backup.CfnRestoreTestingSelectionConfiguration passed to the constructor as CfnRestoreTestingSelectionProps.
iamRoleArnRequiredstringThe 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` .
protectedResourceTypeRequiredstringThe type of AWS resource included in a resource testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
restoreTestingPlanNameRequiredstringUnique 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.
restoreTestingSelectionNameRequiredstringThe 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.
protectedResourceArnsOptionalstring[]You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.
protectedResourceConditionsOptionalIResolvable | ProtectedResourceConditionsPropertyIn a resource testing selection, this parameter filters by specific conditions such as `StringEquals` or `StringNotEquals` .
restoreMetadataOverridesOptional{ [key: string]: string } | IResolvableYou 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) .
validationWindowHoursOptionalnumberThis 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.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-backupAWS::Backup::RestoreTestingSelection