| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudHSMV2.RestoreBackup
Description
Restores a specified AWS CloudHSM backup that is in the
PENDING_DELETION state. For mor information on deleting a backup, see
DeleteBackup.
Synopsis
- data RestoreBackup = RestoreBackup' {}
- newRestoreBackup :: Text -> RestoreBackup
- restoreBackup_backupId :: Lens' RestoreBackup Text
- data RestoreBackupResponse = RestoreBackupResponse' {
- backup :: Maybe Backup
- httpStatus :: Int
- newRestoreBackupResponse :: Int -> RestoreBackupResponse
- restoreBackupResponse_backup :: Lens' RestoreBackupResponse (Maybe Backup)
- restoreBackupResponse_httpStatus :: Lens' RestoreBackupResponse Int
Creating a Request
data RestoreBackup Source #
See: newRestoreBackup smart constructor.
Constructors
| RestoreBackup' | |
Instances
Arguments
| :: Text | |
| -> RestoreBackup |
Create a value of RestoreBackup with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
RestoreBackup, restoreBackup_backupId - The ID of the backup to be restored. To find the ID of a backup, use the
DescribeBackups operation.
Request Lenses
restoreBackup_backupId :: Lens' RestoreBackup Text Source #
The ID of the backup to be restored. To find the ID of a backup, use the DescribeBackups operation.
Destructuring the Response
data RestoreBackupResponse Source #
See: newRestoreBackupResponse smart constructor.
Constructors
| RestoreBackupResponse' | |
Fields
| |
Instances
newRestoreBackupResponse Source #
Create a value of RestoreBackupResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:backup:RestoreBackupResponse', restoreBackupResponse_backup - Information on the Backup object created.
$sel:httpStatus:RestoreBackupResponse', restoreBackupResponse_httpStatus - The response's http status code.
Response Lenses
restoreBackupResponse_backup :: Lens' RestoreBackupResponse (Maybe Backup) Source #
Information on the Backup object created.
restoreBackupResponse_httpStatus :: Lens' RestoreBackupResponse Int Source #
The response's http status code.