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 backup. You can delete both manual and automated backups. This operation is asynchronous.
An InvalidStateException
is thrown when a backup deletion is already
in progress. A ResourceNotFoundException
is thrown when the backup
does not exist. A ValidationException
is thrown when parameters of the
request are not valid.
Synopsis
- data DeleteBackup = DeleteBackup' {}
- newDeleteBackup :: Text -> DeleteBackup
- deleteBackup_backupId :: Lens' DeleteBackup Text
- data DeleteBackupResponse = DeleteBackupResponse' {
- httpStatus :: Int
- newDeleteBackupResponse :: Int -> DeleteBackupResponse
- 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 delete. Run the DescribeBackups command to get a
list of backup IDs. Backup IDs are in the format
ServerName-yyyyMMddHHmmssSSS
.
Request Lenses
deleteBackup_backupId :: Lens' DeleteBackup Text Source #
The ID of the backup to delete. Run the DescribeBackups command to get a
list of backup IDs. Backup IDs are in the format
ServerName-yyyyMMddHHmmssSSS
.
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:httpStatus:DeleteBackupResponse'
, deleteBackupResponse_httpStatus
- The response's http status code.
Response Lenses
deleteBackupResponse_httpStatus :: Lens' DeleteBackupResponse Int Source #
The response's http status code.