Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an application-level backup of a server. While the server is BACKING_UP
, the server can not be modified and no additional backup can be created.
Backups can be created for RUNNING
, HEALTHY
and UNHEALTHY
servers.
This operation is asnychronous.
By default 50 manual backups can be created.
A LimitExceededException
is thrown then the maximum number of manual backup is reached. A InvalidStateException
is thrown when the server is not in any of RUNNING, HEALTHY, UNHEALTHY. A ResourceNotFoundException
is thrown when the server is not found. A ValidationException
is thrown when parameters of the request are not valid.
- createBackup :: Text -> CreateBackup
- data CreateBackup
- cbDescription :: Lens' CreateBackup (Maybe Text)
- cbServerName :: Lens' CreateBackup Text
- createBackupResponse :: Int -> CreateBackupResponse
- data CreateBackupResponse
- cbrsBackup :: Lens' CreateBackupResponse (Maybe Backup)
- cbrsResponseStatus :: Lens' CreateBackupResponse Int
Creating a Request
Creates a value of CreateBackup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cbDescription
- A user-defined description of the backup.cbServerName
- The name of the server that you want to back up.
data CreateBackup Source #
See: createBackup
smart constructor.
Request Lenses
cbDescription :: Lens' CreateBackup (Maybe Text) Source #
A user-defined description of the backup.
cbServerName :: Lens' CreateBackup Text Source #
The name of the server that you want to back up.
Destructuring the Response
Creates a value of CreateBackupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cbrsBackup
- Backup created by request.cbrsResponseStatus
- -- | The response status code.
data CreateBackupResponse Source #
See: createBackupResponse
smart constructor.
Response Lenses
cbrsBackup :: Lens' CreateBackupResponse (Maybe Backup) Source #
Backup created by request.
cbrsResponseStatus :: Lens' CreateBackupResponse Int Source #
- - | The response status code.