CfnLegalHoldProps
- class aws_cdk.aws_backup.CfnLegalHoldProps(*, description, recovery_point_selection, title, tags=None)
Bases:
objectProperties 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.
- recovery_point_selection
The criteria to assign a set of resources, such as resource types or backup vaults.
- tags
Optional tags to include.
- title
The title of the legal hold.