Skip to content

RestoreBackup

Source: src/AWS/CloudHSMV2/RestoreBackup.ts

Runtime binding for the RestoreBackup operation (IAM action cloudhsm:RestoreBackup).

Recovers a CloudHSM backup in the PENDING_DELETION state back to READY — the undo for DeleteBackup, available for 7 days after the delete. Provide the implementation with Effect.provide(AWS.CloudHSMV2.RestoreBackupHttp).

const restoreBackup = yield* AWS.CloudHSMV2.RestoreBackup();
const restored = yield* restoreBackup({ BackupId: backupId });
// restored.Backup?.BackupState === "READY"