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 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 may or may not 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
- createBackup :: Text -> Text -> CreateBackup
- data CreateBackup
- cbTableName :: Lens' CreateBackup Text
- cbBackupName :: Lens' CreateBackup Text
- createBackupResponse :: Int -> CreateBackupResponse
- data CreateBackupResponse
- cbrsBackupDetails :: Lens' CreateBackupResponse (Maybe BackupDetails)
- 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:
cbTableName
- The name of the table.cbBackupName
- Specified name for the backup.
data CreateBackup Source #
See: createBackup
smart constructor.
Instances
Request Lenses
cbTableName :: Lens' CreateBackup Text Source #
The name of the table.
cbBackupName :: Lens' CreateBackup Text Source #
Specified name for the backup.
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:
cbrsBackupDetails
- Contains the details of the backup created for the table.cbrsResponseStatus
- -- | The response status code.
data CreateBackupResponse Source #
See: createBackupResponse
smart constructor.
Instances
Response Lenses
cbrsBackupDetails :: Lens' CreateBackupResponse (Maybe BackupDetails) Source #
Contains the details of the backup created for the table.
cbrsResponseStatus :: Lens' CreateBackupResponse Int Source #
- - | The response status code.