| 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.CreateBackup
Description
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
- data CreateBackup = CreateBackup' {
- description :: Maybe Text
- tags :: Maybe [Tag]
- serverName :: Text
- newCreateBackup :: Text -> CreateBackup
- createBackup_description :: Lens' CreateBackup (Maybe Text)
- createBackup_tags :: Lens' CreateBackup (Maybe [Tag])
- createBackup_serverName :: Lens' CreateBackup Text
- data CreateBackupResponse = CreateBackupResponse' {
- backup :: Maybe Backup
- httpStatus :: Int
- newCreateBackupResponse :: Int -> CreateBackupResponse
- createBackupResponse_backup :: Lens' CreateBackupResponse (Maybe Backup)
- createBackupResponse_httpStatus :: Lens' CreateBackupResponse Int
Creating a Request
data CreateBackup Source #
See: newCreateBackup smart constructor.
Constructors
| CreateBackup' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateBackup |
Create a value of CreateBackup 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:
CreateBackup, createBackup_description - A user-defined description of the backup.
$sel:tags:CreateBackup', createBackup_tags - A map that contains tag keys and tag values to attach to an AWS
OpsWorks-CM server backup.
- The key cannot be empty.
- The key can be a maximum of 127 characters, and can contain only
Unicode letters, numbers, or separators, or the following special
characters:
+ - = . _ : / - The value can be a maximum 255 characters, and contain only Unicode
letters, numbers, or separators, or the following special
characters:
+ - = . _ : / - Leading and trailing white spaces are trimmed from both the key and value.
- A maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM resources.
CreateBackup, createBackup_serverName - The name of the server that you want to back up.
Request Lenses
createBackup_description :: Lens' CreateBackup (Maybe Text) Source #
A user-defined description of the backup.
createBackup_tags :: Lens' CreateBackup (Maybe [Tag]) Source #
A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM server backup.
- The key cannot be empty.
- The key can be a maximum of 127 characters, and can contain only
Unicode letters, numbers, or separators, or the following special
characters:
+ - = . _ : / - The value can be a maximum 255 characters, and contain only Unicode
letters, numbers, or separators, or the following special
characters:
+ - = . _ : / - Leading and trailing white spaces are trimmed from both the key and value.
- A maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM resources.
createBackup_serverName :: Lens' CreateBackup Text Source #
The name of the server that you want to back up.
Destructuring the Response
data CreateBackupResponse Source #
See: newCreateBackupResponse smart constructor.
Constructors
| CreateBackupResponse' | |
Fields
| |
Instances
newCreateBackupResponse Source #
Arguments
| :: Int | |
| -> CreateBackupResponse |
Create a value of CreateBackupResponse 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:backup:CreateBackupResponse', createBackupResponse_backup - Backup created by request.
$sel:httpStatus:CreateBackupResponse', createBackupResponse_httpStatus - The response's http status code.
Response Lenses
createBackupResponse_backup :: Lens' CreateBackupResponse (Maybe Backup) Source #
Backup created by request.
createBackupResponse_httpStatus :: Lens' CreateBackupResponse Int Source #
The response's http status code.