CfnRestoreTestingSelectionProps Struct
Properties for defining a CfnRestoreTestingSelection.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_backup as backup
cfn_restore_testing_selection_props = backup.CfnRestoreTestingSelectionProps(
iam_role_arn="iamRoleArn",
protected_resource_type="protectedResourceType",
restore_testing_plan_name="restoreTestingPlanName",
restore_testing_selection_name="restoreTestingSelectionName",
# the properties below are optional
protected_resource_arns=["protectedResourceArns"],
protected_resource_conditions=backup.CfnRestoreTestingSelection.ProtectedResourceConditionsProperty(
string_equals=[backup.CfnRestoreTestingSelection.KeyValueProperty(
key="key",
value="value"
)],
string_not_equals=[backup.CfnRestoreTestingSelection.KeyValueProperty(
key="key",
value="value"
)]
),
restore_metadata_overrides={
"restore_metadata_overrides_key": "restoreMetadataOverrides"
},
validation_window_hours=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.backup.*;
CfnRestoreTestingSelectionProps cfnRestoreTestingSelectionProps = CfnRestoreTestingSelectionProps.builder()
.iamRoleArn("iamRoleArn")
.protectedResourceType("protectedResourceType")
.restoreTestingPlanName("restoreTestingPlanName")
.restoreTestingSelectionName("restoreTestingSelectionName")
// the properties below are optional
.protectedResourceArns(List.of("protectedResourceArns"))
.protectedResourceConditions(ProtectedResourceConditionsProperty.builder()
.stringEquals(List.of(KeyValueProperty.builder()
.key("key")
.value("value")
.build()))
.stringNotEquals(List.of(KeyValueProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.restoreMetadataOverrides(Map.of(
"restoreMetadataOverridesKey", "restoreMetadataOverrides"))
.validationWindowHours(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Backup;
var cfnRestoreTestingSelectionProps = new CfnRestoreTestingSelectionProps {
IamRoleArn = "iamRoleArn",
ProtectedResourceType = "protectedResourceType",
RestoreTestingPlanName = "restoreTestingPlanName",
RestoreTestingSelectionName = "restoreTestingSelectionName",
// the properties below are optional
ProtectedResourceArns = new [] { "protectedResourceArns" },
ProtectedResourceConditions = new ProtectedResourceConditionsProperty {
StringEquals = new [] { new KeyValueProperty {
Key = "key",
Value = "value"
} },
StringNotEquals = new [] { new KeyValueProperty {
Key = "key",
Value = "value"
} }
},
RestoreMetadataOverrides = new Dictionary<string, string> {
{ "restoreMetadataOverridesKey", "restoreMetadataOverrides" }
},
ValidationWindowHours = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnRestoreTestingSelectionProps := &CfnRestoreTestingSelectionProps{
IamRoleArn: jsii.String("iamRoleArn"),
ProtectedResourceType: jsii.String("protectedResourceType"),
RestoreTestingPlanName: jsii.String("restoreTestingPlanName"),
RestoreTestingSelectionName: jsii.String("restoreTestingSelectionName"),
// the properties below are optional
ProtectedResourceArns: []*string{
jsii.String("protectedResourceArns"),
},
ProtectedResourceConditions: &ProtectedResourceConditionsProperty{
StringEquals: []interface{}{
&KeyValueProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
StringNotEquals: []interface{}{
&KeyValueProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
},
RestoreMetadataOverrides: map[string]*string{
"restoreMetadataOverridesKey": jsii.String("restoreMetadataOverrides"),
},
ValidationWindowHours: jsii.Number(123),
}
Properties
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 .
protectedResourceArnsoptionalstring[]protected_resource_arnsoptionaltyping.List[str]protectedResourceArnsoptionalList<String>ProtectedResourceArnsoptionalstring[]ProtectedResourceArnsoptional*[]*string #You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.
protectedResourceConditionsoptionalIResolvable | CfnRestoreTestingSelection.protected_resource_conditionsoptionaltyping.Union[IResolvable, ProtectedResourceConditionsProperty]protectedResourceConditionsoptionalIResolvableProtectedResourceConditionsoptionalIResolvableProtectedResourceConditionsoptionalinterface{} #In a resource testing selection, this parameter filters by specific conditions such as `StringEquals` or `StringNotEquals` .
protectedResourceTypestringprotected_resource_typestrprotectedResourceTypeStringProtectedResourceTypestringProtectedResourceType*string required #The type of AWS resource included in a resource testing selection;
for example, an Amazon EBS volume or an Amazon RDS database.
restoreMetadataOverridesoptionalIResolvable | { [key: string]: string }restore_metadata_overridesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]restoreMetadataOverridesoptionalIResolvableRestoreMetadataOverridesoptionalIResolvableRestoreMetadataOverridesoptionalinterface{} #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 .
restoreTestingPlanNamestringrestore_testing_plan_namestrrestoreTestingPlanNameStringRestoreTestingPlanNamestringRestoreTestingPlanName*string required #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.
restoreTestingSelectionNamestringrestore_testing_selection_namestrrestoreTestingSelectionNameStringRestoreTestingSelectionNamestringRestoreTestingSelectionName*string required #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.
validationWindowHoursoptionalnumbervalidation_window_hoursoptionalint | floatvalidationWindowHoursoptionalNumberValidationWindowHoursoptionaldoubleValidationWindowHoursoptional*float64 #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.