Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class UpdateContinuousBackupsCommandProtected

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 during the last 35 days.

Example

Use a bare-bones client and the command you need to make an API call.

import { DynamoDBClient, UpdateContinuousBackupsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
// const { DynamoDBClient, UpdateContinuousBackupsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
const client = new DynamoDBClient(config);
const input = { // UpdateContinuousBackupsInput
TableName: "STRING_VALUE", // required
PointInTimeRecoverySpecification: { // PointInTimeRecoverySpecification
PointInTimeRecoveryEnabled: true || false, // required
},
};
const command = new UpdateContinuousBackupsCommand(input);
const response = await client.send(command);
// { // UpdateContinuousBackupsOutput
// ContinuousBackupsDescription: { // ContinuousBackupsDescription
// ContinuousBackupsStatus: "ENABLED" || "DISABLED", // required
// PointInTimeRecoveryDescription: { // PointInTimeRecoveryDescription
// PointInTimeRecoveryStatus: "ENABLED" || "DISABLED",
// EarliestRestorableDateTime: new Date("TIMESTAMP"),
// LatestRestorableDateTime: new Date("TIMESTAMP"),
// },
// },
// };

Param

UpdateContinuousBackupsCommandInput

Returns

UpdateContinuousBackupsCommandOutput

See

Throws

ContinuousBackupsUnavailableException (client fault)

Backups have not yet been enabled for this table.

Throws

InternalServerError (server fault)

An error occurred on the server side.

Throws

InvalidEndpointException (client fault)

Throws

TableNotFoundException (client fault)

A source table with the name TableName does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region.

Throws

DynamoDBServiceException

Base exception class for all service exceptions from DynamoDB service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods