cancel_legal_hold
async
¶
cancel_legal_hold(
legal_hold_id: string,
cancel_description: string,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
retain_record_in_days: Optional[Long] = None,
) -> CancelLegalHoldOutput
Removes the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions.
Parameters:
-
legal_hold_id(string) –The ID of the legal hold.
-
cancel_description(string) –A string the describes the reason for removing the legal hold.
-
retain_record_in_days(Optional[Long], default:None) –The integer amount, in days, after which to remove legal hold.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
InvalidResourceStateException–Backup is already performing an action on this recovery point. It can't perform the action you requested until the first action finishes. Try again later.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.