create_local_backup_vault
async
¶
create_local_backup_vault(
appliance_arn: string,
backup_vault_name: BackupVaultName,
encryption_key_arn: ARN,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
backup_vault_tags: Optional[Tags] = None,
creator_request_id: Optional[string] = None,
) -> CreateLocalBackupVaultOutput
Creates a local backup vault for a backup appliance. A local backup vault represents, in the Amazon Web Services Cloud, the backup storage on a backup appliance that runs in your own environment. Recovery points in a local backup vault are stored on the appliance.
Resources that you register with a backup appliance always back up to the appliance's local backup vault. To store those recovery points in the Amazon Web Services Cloud, copy them to a backup vault or a logically air-gapped backup vault.
Each backup appliance can have one local backup vault. A local backup vault must be encrypted with a customer managed KMS key, and you can't change the key after you create the vault.
Do not include sensitive data, such as passport numbers, in the name of a backup vault.
Parameters:
-
appliance_arn(string) –The Amazon Resource Name (ARN) of the backup appliance to associate with the local backup vault. The appliance must be activated and exist in the same account and Region. You cannot create a local backup vault for an appliance that is pending activation or being deleted.
-
backup_vault_name(BackupVaultName) –The name of the local backup vault. The local backup vault represents, in the Amazon Web Services Cloud, the backup storage on the backup appliance. Recovery points in a local backup vault are stored on the appliance, not in the Amazon Web Services Cloud. Backup vault names are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
-
backup_vault_tags(Optional[Tags], default:None) –The tags to assign to the local backup vault.
-
encryption_key_arn(ARN) –The ARN of the customer managed KMS key that is used to encrypt backups in the local backup vault; for example,
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.A local backup vault can't use an Amazon Web Services owned key. You can't change the key after the vault is created.
-
creator_request_id(Optional[string], default:None) –A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional.
If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
Raises:
-
AlreadyExistsException–The required resource already exists.
-
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.
-
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.
Source code in docs_src/capo_backup/_services/async_backup.py
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 | |