@aws-sdk/client-dynamodb
Version:
AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native
37 lines (36 loc) • 2.47 kB
TypeScript
import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import { DeleteTableInput, DeleteTableOutput } from "../models/models_0";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
export declare type DeleteTableCommandInput = DeleteTableInput;
export declare type DeleteTableCommandOutput = DeleteTableOutput & __MetadataBearer;
/**
* <p>The <code>DeleteTable</code> operation deletes a table and all of its items. After a
* <code>DeleteTable</code> request, the specified table is in the <code>DELETING</code> state until
* DynamoDB completes the deletion. If the table is in the <code>ACTIVE</code> state, you can delete
* it. If a table is in <code>CREATING</code> or <code>UPDATING</code> states, then DynamoDB returns
* a <code>ResourceInUseException</code>. If the specified table does not exist, DynamoDB returns a
* <code>ResourceNotFoundException</code>. If table is already in the <code>DELETING</code> state, no
* error is returned. </p>
* <note>
* <p>DynamoDB might continue to accept data read and write operations, such as <code>GetItem</code> and
* <code>PutItem</code>, on a table in the <code>DELETING</code> state until the table deletion is
* complete.</p>
* </note>
* <p>When you delete a table, any indexes on that table are also deleted.</p>
* <p>If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes
* into the <code>DISABLED</code> state, and the stream is automatically deleted after 24 hours.</p>
*
* <p>Use the <code>DescribeTable</code> action to check the status of the table. </p>
*/
export declare class DeleteTableCommand extends $Command<DeleteTableCommandInput, DeleteTableCommandOutput, DynamoDBClientResolvedConfig> {
readonly input: DeleteTableCommandInput;
private resolved;
constructor(input: DeleteTableCommandInput);
/**
* @internal
*/
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteTableCommandInput, DeleteTableCommandOutput>;
private serialize;
private deserialize;
}