Copyright | (c) 2013-2018 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 |
Creates an application-level backup of a server. While the server is in the BACKING_UP
state, the server cannot be changed, and no additional backup can be created.
Backups can be created for servers in RUNNING
, HEALTHY
, and UNHEALTHY
states. By default, you can create a maximum of 50 manual backups.
This operation is asynchronous.
A LimitExceededException
is thrown when the maximum number of manual backups is reached. An InvalidStateException
is thrown when the server is not in any of the following states: RUNNING, HEALTHY, or UNHEALTHY. A ResourceNotFoundException
is thrown when the server is not found. A ValidationException
is thrown when parameters of the request are not valid.
Synopsis
- 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.
Instances
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.
Instances
Response Lenses
cbrsBackup :: Lens' CreateBackupResponse (Maybe Backup) Source #
Backup created by request.
cbrsResponseStatus :: Lens' CreateBackupResponse Int Source #
- - | The response status code.