| 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.OpsWorksCM.DeleteBackup
Description
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.
Constructors
| DeleteBackup' | |
Instances
Arguments
| :: Text | |
| -> DeleteBackup |
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:
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.
Constructors
| DeleteBackupResponse' | |
Fields
| |
Instances
newDeleteBackupResponse Source #
Arguments
| :: Int | |
| -> DeleteBackupResponse |
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.