interface CfnRestoreTestingSelectionProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Backup.CfnRestoreTestingSelectionProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbackup#CfnRestoreTestingSelectionProps |
![]() | software.amazon.awscdk.services.backup.CfnRestoreTestingSelectionProps |
![]() | aws_cdk.aws_backup.CfnRestoreTestingSelectionProps |
![]() | aws-cdk-lib » aws_backup » CfnRestoreTestingSelectionProps |
Properties for defining a CfnRestoreTestingSelection
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
const cfnRestoreTestingSelectionProps: backup.CfnRestoreTestingSelectionProps = {
iamRoleArn: 'iamRoleArn',
protectedResourceType: 'protectedResourceType',
restoreTestingPlanName: 'restoreTestingPlanName',
restoreTestingSelectionName: 'restoreTestingSelectionName',
// the properties below are optional
protectedResourceArns: ['protectedResourceArns'],
protectedResourceConditions: {
stringEquals: [{
key: 'key',
value: 'value',
}],
stringNotEquals: [{
key: 'key',
value: 'value',
}],
},
restoreMetadataOverrides: {
restoreMetadataOverridesKey: 'restoreMetadataOverrides',
},
validationWindowHours: 123,
};
Properties
Name | Type | Description |
---|---|---|
iam | string | The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; |
protected | string | The type of AWS resource included in a resource testing selection; |
restore | string | Unique string that is the name of the restore testing plan. |
restore | string | The unique name of the restore testing selection that belongs to the related restore testing plan. |
protected | string[] | You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."] or you can include a wildcard: ProtectedResourceArns: ["*"] , but not both. |
protected | IResolvable | Protected | In a resource testing selection, this parameter filters by specific conditions such as StringEquals or StringNotEquals . |
restore | { [string]: string } | IResolvable | You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection . |
validation | number | This is amount of hours (1 to 168) available to run a validation script on the data. |
iamRoleArn
Type:
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
.
protectedResourceType
Type:
string
The type of AWS resource included in a resource testing selection;
for example, an Amazon EBS volume or an Amazon RDS database.
restoreTestingPlanName
Type:
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.
restoreTestingSelectionName
Type:
string
The unique name of the restore testing selection that belongs to the related restore testing plan.
protectedResourceArns?
Type:
string[]
(optional)
You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
protectedResourceConditions?
Type:
IResolvable
|
Protected
(optional)
In a resource testing selection, this parameter filters by specific conditions such as StringEquals
or StringNotEquals
.
restoreMetadataOverrides?
Type:
{ [string]: string } |
IResolvable
(optional)
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 .
validationWindowHours?
Type:
number
(optional)
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.