Skip to main content

continuous_backups

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

Overview

Namecontinuous_backups
TypeResource
Idaws.dynamodb.continuous_backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
continuous_backups_statusstringContinuousBackupsStatus can be one of the following states: ENABLED, DISABLED (ENABLED, DISABLED)
point_in_time_recovery_descriptionobjectThe description of the point in time recovery settings applied to the table.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_continuous_backupsselectregionChecks the status of continuous backups and point in time recovery on the specified table. Continuous backups are ENABLED on all tables at table creation. If point in time recovery is enabled, PointInTimeRecoveryStatus will be set to ENABLED. After continuous backups and point in time recovery are enabled, you can restore to any point in time within EarliestRestorableDateTime and LatestRestorableDateTime. LatestRestorableDateTime is typically 5 minutes before the current time. You can restore your table to any point in time in the last 35 days. You can set the recovery period to any value between 1 and 35 days. You can call DescribeContinuousBackups at a maximum rate of 10 times per second.
update_continuous_backupsupdateregion, TableName, PointInTimeRecoverySpecificationUpdateContinuousBackups enables or disables point in time recovery for the specified table. A successful UpdateContinuousBackups call returns the current ContinuousBackupsDescription. Continuous backups are ENABLED on all tables at table creation. If point in time recovery is enabled, PointInTimeRecoveryStatus will be set to ENABLED. Once continuous backups and point in time recovery are enabled, you can restore to any point in time within EarliestRestorableDateTime and LatestRestorableDateTime. LatestRestorableDateTime is typically 5 minutes before the current time. You can restore your table to any point in time in the last 35 days. You can set the RecoveryPeriodInDays to any value between 1 and 35 days.

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

Checks the status of continuous backups and point in time recovery on the specified table. Continuous backups are ENABLED on all tables at table creation. If point in time recovery is enabled, PointInTimeRecoveryStatus will be set to ENABLED. After continuous backups and point in time recovery are enabled, you can restore to any point in time within EarliestRestorableDateTime and LatestRestorableDateTime. LatestRestorableDateTime is typically 5 minutes before the current time. You can restore your table to any point in time in the last 35 days. You can set the recovery period to any value between 1 and 35 days. You can call DescribeContinuousBackups at a maximum rate of 10 times per second.

SELECT
continuous_backups_status,
point_in_time_recovery_description
FROM aws.dynamodb.continuous_backups
WHERE region = '{{ region }}' -- required
;

UPDATE examples

UpdateContinuousBackups enables or disables point in time recovery for the specified table. A successful UpdateContinuousBackups call returns the current ContinuousBackupsDescription. Continuous backups are ENABLED on all tables at table creation. If point in time recovery is enabled, PointInTimeRecoveryStatus will be set to ENABLED. Once continuous backups and point in time recovery are enabled, you can restore to any point in time within EarliestRestorableDateTime and LatestRestorableDateTime. LatestRestorableDateTime is typically 5 minutes before the current time. You can restore your table to any point in time in the last 35 days. You can set the RecoveryPeriodInDays to any value between 1 and 35 days.

UPDATE aws.dynamodb.continuous_backups
SET
TableName = '{{ TableName }}',
PointInTimeRecoverySpecification = '{{ PointInTimeRecoverySpecification }}'
WHERE
region = '{{ region }}' --required
AND TableName = '{{ TableName }}' --required
AND PointInTimeRecoverySpecification = '{{ PointInTimeRecoverySpecification }}' --required
RETURNING
continuous_backups_description;