get_legal_hold
(**kwargs)¶This action returns details for a specified legal hold. The details are the body of a legal hold in JSON format, in addition to metadata.
See also: AWS API Documentation
Request Syntax
response = client.get_legal_hold(
LegalHoldId='string'
)
[REQUIRED]
This is the ID required to use GetLegalHold
. This unique ID is associated with a specific legal hold.
{
'Title': 'string',
'Status': 'CREATING'|'ACTIVE'|'CANCELING'|'CANCELED',
'Description': 'string',
'CancelDescription': 'string',
'LegalHoldId': 'string',
'LegalHoldArn': 'string',
'CreationDate': datetime(2015, 1, 1),
'CancellationDate': datetime(2015, 1, 1),
'RetainRecordUntil': datetime(2015, 1, 1),
'RecoveryPointSelection': {
'VaultNames': [
'string',
],
'ResourceIdentifiers': [
'string',
],
'DateRange': {
'FromDate': datetime(2015, 1, 1),
'ToDate': datetime(2015, 1, 1)
}
}
}
Response Structure
This is the string title of the legal hold.
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
, CANCELED
, and CANCELING
.
This is the returned string description of the legal hold.
String describing the reason for removing the legal hold.
This is the returned ID associated with a specified legal hold.
This is the returned framework ARN for the specified legal hold. An Amazon Resource Name (ARN) uniquely identifies a resource. The format of the ARN depends on the resource type.
Time in number format when legal hold was created.
Time in number when legal hold was cancelled.
This is the date and time until which the legal hold record will be retained.
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
These are the names of the vaults in which the selected recovery points are contained.
These are the resources included in the resource selection (including type of resources and vaults).
This is a resource filter containing FromDate: DateTime and ToDate: DateTime. Both values are required. Future DateTime values are not permitted.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds ((milliseconds are optional). For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
This value is the beginning date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
This value is the end date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
Exceptions
Backup.Client.exceptions.InvalidParameterValueException
Backup.Client.exceptions.MissingParameterValueException
Backup.Client.exceptions.ServiceUnavailableException
Backup.Client.exceptions.ResourceNotFoundException