Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes a specified AWS CloudHSM backup. A backup can be restored up to 7 days after the DeleteBackup request is made. For more information on restoring a backup, see RestoreBackup.
Synopsis
- data DeleteBackup = DeleteBackup' {}
- newDeleteBackup :: Text -> DeleteBackup
- deleteBackup_backupId :: Lens' DeleteBackup Text
- data DeleteBackupResponse = DeleteBackupResponse' {
- backup :: Maybe Backup
- httpStatus :: Int
- newDeleteBackupResponse :: Int -> DeleteBackupResponse
- deleteBackupResponse_backup :: Lens' DeleteBackupResponse (Maybe Backup)
- deleteBackupResponse_httpStatus :: Lens' DeleteBackupResponse Int
Creating a Request
data DeleteBackup Source #
See: newDeleteBackup
smart constructor.
Instances
Create a value of DeleteBackup
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:backupId:DeleteBackup'
, deleteBackup_backupId
- The ID of the backup to be deleted. To find the ID of a backup, use the
DescribeBackups operation.
Request Lenses
deleteBackup_backupId :: Lens' DeleteBackup Text Source #
The ID of the backup to be deleted. To find the ID of a backup, use the DescribeBackups operation.
Destructuring the Response
data DeleteBackupResponse Source #
See: newDeleteBackupResponse
smart constructor.
DeleteBackupResponse' | |
|
Instances
newDeleteBackupResponse Source #
Create a value of DeleteBackupResponse
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:DeleteBackupResponse'
, deleteBackupResponse_backup
- Information on the Backup
object deleted.
$sel:httpStatus:DeleteBackupResponse'
, deleteBackupResponse_httpStatus
- The response's http status code.
Response Lenses
deleteBackupResponse_backup :: Lens' DeleteBackupResponse (Maybe Backup) Source #
Information on the Backup
object deleted.
deleteBackupResponse_httpStatus :: Lens' DeleteBackupResponse Int Source #
The response's http status code.