continuous_backups
Creates, updates, deletes, gets or lists a continuous_backups resource.
Overview
| Name | continuous_backups |
| Type | Resource |
| Id | aws.dynamodb.continuous_backups |
Fields
The following fields are returned by SELECT queries:
- describe_continuous_backups
| Name | Datatype | Description |
|---|---|---|
continuous_backups_status | string | ContinuousBackupsStatus can be one of the following states: ENABLED, DISABLED (ENABLED, DISABLED) |
point_in_time_recovery_description | object | The description of the point in time recovery settings applied to the table. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_continuous_backups | select | region | 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. | |
update_continuous_backups | update | region, TableName, PointInTimeRecoverySpecification | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_continuous_backups
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
- update_continuous_backups
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;