CfnRestoreTestingSelectionMixinProps
- class aws_cdk.mixins_preview.aws_backup.mixins.CfnRestoreTestingSelectionMixinProps(*, iam_role_arn=None, protected_resource_arns=None, protected_resource_conditions=None, protected_resource_type=None, restore_metadata_overrides=None, restore_testing_plan_name=None, restore_testing_selection_name=None, validation_window_hours=None)
Bases:
objectProperties for CfnRestoreTestingSelectionPropsMixin.
- Parameters:
iam_role_arn (
Optional[str]) – 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.protected_resource_arns (
Optional[Sequence[str]]) – You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]or you can include a wildcard:ProtectedResourceArns: ["*"], but not both.protected_resource_conditions (
Union[IResolvable,ProtectedResourceConditionsProperty,Dict[str,Any],None]) – In a resource testing selection, this parameter filters by specific conditions such asStringEqualsorStringNotEquals.protected_resource_type (
Optional[str]) – The type of AWS resource included in a resource testing selection; for example, an Amazon EBS volume or an Amazon RDS database.restore_metadata_overrides (
Union[Mapping[str,str],IResolvable,None]) – You can override certain restore metadata keys by including the parameterRestoreMetadataOverridesin the body ofRestoreTestingSelection. Key values are not case sensitive. See the complete list of restore testing inferred metadata .restore_testing_plan_name (
Optional[str]) – 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.restore_testing_selection_name (
Optional[str]) – 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.validation_window_hours (
Union[int,float,None]) – 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.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_backup import mixins as backup_mixins cfn_restore_testing_selection_mixin_props = backup_mixins.CfnRestoreTestingSelectionMixinProps( iam_role_arn="iamRoleArn", protected_resource_arns=["protectedResourceArns"], protected_resource_conditions=backup_mixins.CfnRestoreTestingSelectionPropsMixin.ProtectedResourceConditionsProperty( string_equals=[backup_mixins.CfnRestoreTestingSelectionPropsMixin.KeyValueProperty( key="key", value="value" )], string_not_equals=[backup_mixins.CfnRestoreTestingSelectionPropsMixin.KeyValueProperty( key="key", value="value" )] ), protected_resource_type="protectedResourceType", restore_metadata_overrides={ "restore_metadata_overrides_key": "restoreMetadataOverrides" }, restore_testing_plan_name="restoreTestingPlanName", restore_testing_selection_name="restoreTestingSelectionName", validation_window_hours=123 )
Attributes
- iam_role_arn
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.
- protected_resource_arns
ProtectedResourceArns: ["*"], but not both.- See:
- Type:
You can include specific ARNs, such as
ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]or you can include a wildcard
- protected_resource_conditions
In a resource testing selection, this parameter filters by specific conditions such as
StringEqualsorStringNotEquals.
- protected_resource_type
The type of AWS resource included in a resource testing selection;
for example, an Amazon EBS volume or an Amazon RDS database.
- restore_metadata_overrides
You can override certain restore metadata keys by including the parameter
RestoreMetadataOverridesin the body ofRestoreTestingSelection.Key values are not case sensitive.
See the complete list of restore testing inferred metadata .
- restore_testing_plan_name
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.
- restore_testing_selection_name
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.
- validation_window_hours
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.