@aws-sdk/client-dynamodb
Version:
AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native
87 lines (86 loc) • 3.79 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 { DescribeTimeToLiveInput, DescribeTimeToLiveOutput } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DescribeTimeToLiveCommand}.
*/
export interface DescribeTimeToLiveCommandInput extends DescribeTimeToLiveInput {
}
/**
* @public
*
* The output of {@link DescribeTimeToLiveCommand}.
*/
export interface DescribeTimeToLiveCommandOutput extends DescribeTimeToLiveOutput, __MetadataBearer {
}
declare const DescribeTimeToLiveCommand_base: {
new (input: DescribeTimeToLiveCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeTimeToLiveCommandInput, DescribeTimeToLiveCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DescribeTimeToLiveCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeTimeToLiveCommandInput, DescribeTimeToLiveCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Gives a description of the Time to Live (TTL) status on the specified table. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { DynamoDBClient, DescribeTimeToLiveCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
* // const { DynamoDBClient, DescribeTimeToLiveCommand } = 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 = { // DescribeTimeToLiveInput
* TableName: "STRING_VALUE", // required
* };
* const command = new DescribeTimeToLiveCommand(input);
* const response = await client.send(command);
* // { // DescribeTimeToLiveOutput
* // TimeToLiveDescription: { // TimeToLiveDescription
* // TimeToLiveStatus: "ENABLING" || "DISABLING" || "ENABLED" || "DISABLED",
* // AttributeName: "STRING_VALUE",
* // },
* // };
*
* ```
*
* @param DescribeTimeToLiveCommandInput - {@link DescribeTimeToLiveCommandInput}
* @returns {@link DescribeTimeToLiveCommandOutput}
* @see {@link DescribeTimeToLiveCommandInput} for command's `input` shape.
* @see {@link DescribeTimeToLiveCommandOutput} 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 ResourceNotFoundException} (client fault)
* <p>The operation tried to access a nonexistent table or index. The resource might not
* be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
*
* @throws {@link DynamoDBServiceException}
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
*
*
* @public
*/
export declare class DescribeTimeToLiveCommand extends DescribeTimeToLiveCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeTimeToLiveInput;
output: DescribeTimeToLiveOutput;
};
sdk: {
input: DescribeTimeToLiveCommandInput;
output: DescribeTimeToLiveCommandOutput;
};
};
}