CfnRestoreTestingSelectionPropsMixin

class aws_cdk.mixins_preview.aws_backup.mixins.CfnRestoreTestingSelectionPropsMixin(props, *, strategy=None)

Bases: Mixin

This 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-restoretestingselection.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

KeyValueProperty

class CfnRestoreTestingSelectionPropsMixin.KeyValueProperty(*, key=None, value=None)

Bases: object

Pair 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-restoretestingselection-keyvalue.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-restoretestingselection-keyvalue.html#cfn-backup-restoretestingselection-keyvalue-key

value

The tag value.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-restoretestingselection-keyvalue.html#cfn-backup-restoretestingselection-keyvalue-value

ProtectedResourceConditionsProperty

class CfnRestoreTestingSelectionPropsMixin.ProtectedResourceConditionsProperty(*, string_equals=None, string_not_equals=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-restoretestingselection-protectedresourceconditions.html

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.”

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-restoretestingselection-protectedresourceconditions.html#cfn-backup-restoretestingselection-protectedresourceconditions-stringequals

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.”

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-restoretestingselection-protectedresourceconditions.html#cfn-backup-restoretestingselection-protectedresourceconditions-stringnotequals