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.
Source code in docs_src/capo_backup/_services/async_backup.py
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 | |