@aws-sdk/client-dynamodb
Version:
AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native
105 lines (104 loc) • 5.23 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import type { DescribeContinuousBackupsInput, DescribeContinuousBackupsOutput } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DescribeContinuousBackupsCommand}.
*/
export interface DescribeContinuousBackupsCommandInput extends DescribeContinuousBackupsInput {
}
/**
* @public
*
* The output of {@link DescribeContinuousBackupsCommand}.
*/
export interface DescribeContinuousBackupsCommandOutput extends DescribeContinuousBackupsOutput, __MetadataBearer {
}
declare const DescribeContinuousBackupsCommand_base: {
new (input: DescribeContinuousBackupsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeContinuousBackupsCommandInput, DescribeContinuousBackupsCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DescribeContinuousBackupsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeContinuousBackupsCommandInput, DescribeContinuousBackupsCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Checks the status of continuous backups and point in time recovery on the specified
* table. Continuous backups are <code>ENABLED</code> on all tables at table creation. If
* point in time recovery is enabled, <code>PointInTimeRecoveryStatus</code> will be set to
* ENABLED.</p>
* <p> After continuous backups and point in time recovery are enabled, you can restore to
* any point in time within <code>EarliestRestorableDateTime</code> and
* <code>LatestRestorableDateTime</code>. </p>
* <p>
* <code>LatestRestorableDateTime</code> 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. </p>
* <p>You can call <code>DescribeContinuousBackups</code> at a maximum rate of 10 times per
* second.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { DynamoDBClient, DescribeContinuousBackupsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
* // const { DynamoDBClient, DescribeContinuousBackupsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
* // import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
* const config = {}; // type is DynamoDBClientConfig
* const client = new DynamoDBClient(config);
* const input = { // DescribeContinuousBackupsInput
* TableName: "STRING_VALUE", // required
* };
* const command = new DescribeContinuousBackupsCommand(input);
* const response = await client.send(command);
* // { // DescribeContinuousBackupsOutput
* // ContinuousBackupsDescription: { // ContinuousBackupsDescription
* // ContinuousBackupsStatus: "ENABLED" || "DISABLED", // required
* // PointInTimeRecoveryDescription: { // PointInTimeRecoveryDescription
* // PointInTimeRecoveryStatus: "ENABLED" || "DISABLED",
* // RecoveryPeriodInDays: Number("int"),
* // EarliestRestorableDateTime: new Date("TIMESTAMP"),
* // LatestRestorableDateTime: new Date("TIMESTAMP"),
* // },
* // },
* // };
*
* ```
*
* @param DescribeContinuousBackupsCommandInput - {@link DescribeContinuousBackupsCommandInput}
* @returns {@link DescribeContinuousBackupsCommandOutput}
* @see {@link DescribeContinuousBackupsCommandInput} for command's `input` shape.
* @see {@link DescribeContinuousBackupsCommandOutput} for command's `response` shape.
* @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
*
* @throws {@link InternalServerError} (server fault)
* <p>An error occurred on the server side.</p>
*
* @throws {@link InvalidEndpointException} (client fault)
*
* @throws {@link TableNotFoundException} (client fault)
* <p>A source table with the name <code>TableName</code> does not currently exist within
* the subscriber's account or the subscriber is operating in the wrong Amazon Web Services
* Region.</p>
*
* @throws {@link DynamoDBServiceException}
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
*
*
* @public
*/
export declare class DescribeContinuousBackupsCommand extends DescribeContinuousBackupsCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeContinuousBackupsInput;
output: DescribeContinuousBackupsOutput;
};
sdk: {
input: DescribeContinuousBackupsCommandInput;
output: DescribeContinuousBackupsCommandOutput;
};
};
}