CfnRestoreTestingSelectionPropsMixin
- class aws_cdk.mixins_preview.aws_backup.mixins.CfnRestoreTestingSelectionPropsMixin(props, *, strategy=None)
Bases:
MixinThis 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:ProtectedResourceArnsProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value (“*”) for
ProtectedResourceArnsalong withProtectedResourceConditions. Alternatively, you can include up to 30 specific protected resource ARNs inProtectedResourceArns.Cannot select by both protected resource types AND specific ARNs. Request will fail if both are included.
- See:
- CloudformationResource:
AWS::Backup::RestoreTestingSelection
- Mixin:
true
- 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 import mixins from aws_cdk.mixins_preview.aws_backup import mixins as backup_mixins cfn_restore_testing_selection_props_mixin = backup_mixins.CfnRestoreTestingSelectionPropsMixin(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 ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Backup::RestoreTestingSelection.- Parameters:
props (
Union[CfnRestoreTestingSelectionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['iamRoleArn', 'protectedResourceArns', 'protectedResourceConditions', 'protectedResourceType', 'restoreMetadataOverrides', 'restoreTestingPlanName', 'restoreTestingSelectionName', 'validationWindowHours']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
KeyValueProperty
- class CfnRestoreTestingSelectionPropsMixin.KeyValueProperty(*, key=None, value=None)
Bases:
objectPair of two related strings.
Allowed characters are letters, white space, and numbers that can be represented in UTF-8 and the following characters:
+ - = . _ : /- Parameters:
key (
Optional[str]) – The tag key.value (
Optional[str]) – The tag value.
- 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 key_value_property = backup_mixins.CfnRestoreTestingSelectionPropsMixin.KeyValueProperty( key="key", value="value" )
Attributes
- key
The tag key.
ProtectedResourceConditionsProperty
- class CfnRestoreTestingSelectionPropsMixin.ProtectedResourceConditionsProperty(*, string_equals=None, string_not_equals=None)
Bases:
objectThe conditions that you define for resources in your restore testing plan using tags.
- Parameters:
string_equals (
Union[IResolvable,Sequence[Union[IResolvable,KeyValueProperty,Dict[str,Any]]],None]) – Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called “exact matching.”string_not_equals (
Union[IResolvable,Sequence[Union[IResolvable,KeyValueProperty,Dict[str,Any]]],None]) – Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called “negated matching.”
- 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 protected_resource_conditions_property = 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" )] )
Attributes
- string_equals
Filters the values of your tagged resources for only those resources that you tagged with the same value.
Also called “exact matching.”
- string_not_equals
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value.
Also called “negated matching.”