Protected
Restores a specified AWS CloudHSM backup that is in the PENDING_DELETION state. For mor information on deleting a backup, see DeleteBackup.
PENDING_DELETION
Use a bare-bones client and the command you need to make an API call.
import { CloudHSMV2Client, RestoreBackupCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import// const { CloudHSMV2Client, RestoreBackupCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS importconst client = new CloudHSMV2Client(config);const command = new RestoreBackupCommand(input);const response = await client.send(command);
RestoreBackupCommandInput
RestoreBackupCommandOutput
input
response
config
CloudHsmAccessDeniedException (client fault)
The request was rejected because the requester does not have permission to perform the requested operation.
CloudHsmInternalFailureException (server fault)
The request was rejected because of an AWS CloudHSM internal failure. The request can be retried.
CloudHsmInvalidRequestException (client fault)
The request was rejected because it is not a valid request.
CloudHsmResourceNotFoundException (client fault)
The request was rejected because it refers to a resource that cannot be found.
CloudHsmServiceException (client fault)
The request was rejected because an error occurred.
Readonly
Static
Restores a specified AWS CloudHSM backup that is in the
PENDING_DELETION
state. For mor information on deleting a backup, see DeleteBackup.Example
Use a bare-bones client and the command you need to make an API call.
Param
RestoreBackupCommandInput
Returns
RestoreBackupCommandOutput
See
input
shape.response
shape.config
shape.Throws
CloudHsmAccessDeniedException (client fault)
The request was rejected because the requester does not have permission to perform the requested operation.
Throws
CloudHsmInternalFailureException (server fault)
The request was rejected because of an AWS CloudHSM internal failure. The request can be retried.
Throws
CloudHsmInvalidRequestException (client fault)
The request was rejected because it is not a valid request.
Throws
CloudHsmResourceNotFoundException (client fault)
The request was rejected because it refers to a resource that cannot be found.
Throws
CloudHsmServiceException (client fault)
The request was rejected because an error occurred.