Copyright | (c) 2013-2021 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 |
Creates a backup for an existing table.
Each time you create an on-demand backup, the entire table data is backed up. There is no limit to the number of on-demand backups that can be taken.
When you create an on-demand backup, a time marker of the request is cataloged, and the backup is created asynchronously, by applying all changes until the time of the request to the last full table snapshot. Backup requests are processed instantaneously and become available for restore within minutes.
You can call CreateBackup
at a maximum rate of 50 times per second.
All backups in DynamoDB work without consuming any provisioned throughput on the table.
If you submit a backup request on 2018-12-14 at 14:25:00, the backup is guaranteed to contain all data committed to the table up to 14:24:00, and data committed after 14:26:00 will not be. The backup might contain data modifications made between 14:24:00 and 14:26:00. On-demand backup does not support causal consistency.
Along with data, the following are also included on the backups:
- Global secondary indexes (GSIs)
- Local secondary indexes (LSIs)
- Streams
- Provisioned read and write capacity
Synopsis
- data CreateBackup = CreateBackup' {
- tableName :: Text
- backupName :: Text
- newCreateBackup :: Text -> Text -> CreateBackup
- createBackup_tableName :: Lens' CreateBackup Text
- createBackup_backupName :: Lens' CreateBackup Text
- data CreateBackupResponse = CreateBackupResponse' {}
- newCreateBackupResponse :: Int -> CreateBackupResponse
- createBackupResponse_backupDetails :: Lens' CreateBackupResponse (Maybe BackupDetails)
- createBackupResponse_httpStatus :: Lens' CreateBackupResponse Int
Creating a Request
data CreateBackup Source #
See: newCreateBackup
smart constructor.
CreateBackup' | |
|
Instances
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:
$sel:tableName:CreateBackup'
, createBackup_tableName
- The name of the table.
$sel:backupName:CreateBackup'
, createBackup_backupName
- Specified name for the backup.
Request Lenses
createBackup_tableName :: Lens' CreateBackup Text Source #
The name of the table.
createBackup_backupName :: Lens' CreateBackup Text Source #
Specified name for the backup.
Destructuring the Response
data CreateBackupResponse Source #
See: newCreateBackupResponse
smart constructor.
CreateBackupResponse' | |
|
Instances
newCreateBackupResponse Source #
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:backupDetails:CreateBackupResponse'
, createBackupResponse_backupDetails
- Contains the details of the backup created for the table.
$sel:httpStatus:CreateBackupResponse'
, createBackupResponse_httpStatus
- The response's http status code.
Response Lenses
createBackupResponse_backupDetails :: Lens' CreateBackupResponse (Maybe BackupDetails) Source #
Contains the details of the backup created for the table.
createBackupResponse_httpStatus :: Lens' CreateBackupResponse Int Source #
The response's http status code.