restore_backup
async
¶
restore_backup(
backup_id: BackupId,
*,
config_overrides: Optional[AsyncCloudHSMV2ClientConfig] = None,
) -> RestoreBackupResponse
Restores a specified CloudHSM backup that is in the PENDING_DELETION state. For more information on deleting a backup, see DeleteBackup.
Cross-account use: No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.
Parameters:
-
backup_id(BackupId) –The ID of the backup to be restored. To find the ID of a backup, use the DescribeBackups operation.
Raises:
-
CloudHsmAccessDeniedException–The request was rejected because the requester does not have permission to perform the requested operation.
-
CloudHsmInternalFailureException–The request was rejected because of an CloudHSM internal failure. The request can be retried.
-
CloudHsmInvalidRequestException–The request was rejected because it is not a valid request.
-
CloudHsmResourceNotFoundException–The request was rejected because it refers to a resource that cannot be found.
-
CloudHsmServiceException–The request was rejected because an error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudhsm_v2/_services/async_cloud_hsmv2.py
1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 | |