| Copyright | (c) 2013-2017 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 |
| Language | Haskell2010 |
Network.AWS.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.
Creating a Request
Arguments
| :: Text | |
| -> DeleteBackup |
Creates a value of DeleteBackup with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbBackupId- The ID of the backup to delete. Run the DescribeBackups command to get a list of backup IDs. Backup IDs are in the formatServerName-yyyyMMddHHmmssSSS.
data DeleteBackup Source #
See: deleteBackup smart constructor.
Instances
Request Lenses
dbBackupId :: 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
Arguments
| :: Int | |
| -> DeleteBackupResponse |
Creates a value of DeleteBackupResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbrsResponseStatus- -- | The response status code.
data DeleteBackupResponse Source #
See: deleteBackupResponse smart constructor.
Response Lenses
dbrsResponseStatus :: Lens' DeleteBackupResponse Int Source #
- - | The response status code.