Skip to main content

backups

Creates, updates, deletes, gets or lists a backups resource.

Overview

Namebackups
TypeResource
Idaws.dynamodb.backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
backup_detailsobjectContains the details of the backup created for the table.
source_table_detailsobjectContains the details of the table when the backup was created.
source_table_feature_detailsobjectContains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_backupselectregionDescribes an existing backup of a table. You can call DescribeBackup at a maximum rate of 10 times per second.
list_backupsselectregionList DynamoDB backups that are associated with an Amazon Web Services account and weren't made with Amazon Web Services Backup. To list these backups for a given table, specify TableName. ListBackups returns a paginated list of results with at most 1 MB worth of items in a page. You can also specify a maximum number of entries to be returned in a page. In the request, start time is inclusive, but end time is exclusive. Note that these boundaries are for the time at which the original backup was requested. You can call ListBackups a maximum of five times per second. If you want to retrieve the complete list of backups made with Amazon Web Services Backup, use the Amazon Web Services Backup list API.
create_backupinsertregion, TableName, BackupNameCreates 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
delete_backupdeleteregionDeletes an existing backup of a table. You can call DeleteBackup at a maximum rate of 10 times per second.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes an existing backup of a table. You can call DescribeBackup at a maximum rate of 10 times per second.

SELECT
backup_details,
source_table_details,
source_table_feature_details
FROM aws.dynamodb.backups
WHERE region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.dynamodb.backups (
TableName,
BackupName,
region
)
SELECT
'{{ TableName }}' /* required */,
'{{ BackupName }}' /* required */,
'{{ region }}'
RETURNING
backup_details
;

DELETE examples

Deletes an existing backup of a table. You can call DeleteBackup at a maximum rate of 10 times per second.

DELETE FROM aws.dynamodb.backups
WHERE region = '{{ region }}' --required
;