CfnLegalHoldProps

class aws_cdk.aws_backup.CfnLegalHoldProps(*, description, recovery_point_selection, title, tags=None)

Bases: object

Properties for defining a CfnLegalHold.

Parameters:
  • description (str) – The description of the legal hold.

  • recovery_point_selection (Union[IResolvable, RecoveryPointSelectionProperty, Dict[str, Any]]) – The criteria to assign a set of resources, such as resource types or backup vaults.

  • title (str) – The title of the legal hold.

  • tags (Optional[Sequence[Union[TagsItemsProperty, Dict[str, Any]]]]) – Optional tags to include.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-legalhold.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 import aws_backup as backup

cfn_legal_hold_props = backup.CfnLegalHoldProps(
    description="description",
    recovery_point_selection=backup.CfnLegalHold.RecoveryPointSelectionProperty(
        date_range=backup.CfnLegalHold.DateRangeProperty(
            from_date="fromDate",
            to_date="toDate"
        ),
        resource_identifiers=["resourceIdentifiers"],
        vault_names=["vaultNames"]
    ),
    title="title",

    # the properties below are optional
    tags=[backup.CfnLegalHold.TagsItemsProperty(
        key="key",
        value="value"
    )]
)

Attributes

description

The description of the legal hold.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-legalhold.html#cfn-backup-legalhold-description

recovery_point_selection

The criteria to assign a set of resources, such as resource types or backup vaults.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-legalhold.html#cfn-backup-legalhold-recoverypointselection

tags

Optional tags to include.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-legalhold.html#cfn-backup-legalhold-tags

title

The title of the legal hold.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-legalhold.html#cfn-backup-legalhold-title