create_legal_hold
async
¶
create_legal_hold(
title: string,
description: string,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
idempotency_token: Optional[string] = None,
recovery_point_selection: Optional[RecoveryPointSelection] = None,
tags: Optional[Tags] = None,
) -> CreateLegalHoldOutput
Creates a legal hold on a recovery point (backup). A legal hold is a restraint on altering or deleting a backup until an authorized user cancels the legal hold. Any actions to delete or disassociate a recovery point will fail with an error if one or more active legal holds are on the recovery point.
Parameters:
-
title(string) –The title of the legal hold.
-
description(string) –The description of the legal hold.
-
idempotency_token(Optional[string], default:None) –This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
-
recovery_point_selection(Optional[RecoveryPointSelection], default:None) –The criteria to assign a set of resources, such as resource types or backup vaults.
-
tags(Optional[Tags], default:None) –Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
LimitExceededException–A limit in the request has been exceeded; for example, a maximum number of items allowed in a request.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.