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 { ListTablesInput, ListTablesOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListTablesCommand}. */ export interface ListTablesCommandInput extends ListTablesInput { } /** * @public * * The output of {@link ListTablesCommand}. */ export interface ListTablesCommandOutput extends ListTablesOutput, __MetadataBearer { } declare const ListTablesCommand_base: { new (input: ListTablesCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListTablesCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns an array of table names associated with the current account and endpoint. The * output from ListTables is paginated, with each page returning a maximum of * 100 table names.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DynamoDBClient, ListTablesCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import * // const { DynamoDBClient, ListTablesCommand } = 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 = { // ListTablesInput * ExclusiveStartTableName: "STRING_VALUE", * Limit: Number("int"), * }; * const command = new ListTablesCommand(input); * const response = await client.send(command); * // { // ListTablesOutput * // TableNames: [ // TableNameList * // "STRING_VALUE", * // ], * // LastEvaluatedTableName: "STRING_VALUE", * // }; * * ``` * * @param ListTablesCommandInput - {@link ListTablesCommandInput} * @returns {@link ListTablesCommandOutput} * @see {@link ListTablesCommandInput} for command's `input` shape. * @see {@link ListTablesCommandOutput} for command's `response` shape. * @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

* * @throws {@link InvalidEndpointException} (client fault) * * @throws {@link DynamoDBServiceException} *

Base exception class for all service exceptions from DynamoDB service.

* * * @example To list tables * ```javascript * // This example lists all of the tables associated with the current AWS account and endpoint. * const input = { /* empty *\/ }; * const command = new ListTablesCommand(input); * const response = await client.send(command); * /* response is * { * TableNames: [ * "Forum", * "ProductCatalog", * "Reply", * "Thread" * ] * } * *\/ * ``` * * @public */ export declare class ListTablesCommand extends ListTablesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListTablesInput; output: ListTablesOutput; }; sdk: { input: ListTablesCommandInput; output: ListTablesCommandOutput; }; }; }