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.

C# |
public ListTablesResponse ListTables( ListTablesRequest listTablesRequest )

- listTablesRequest (ListTablesRequest)
- Container for the necessary parameters to execute the ListTables service method on AmazonDynamoDBv2.

The response from the ListTables service method, as returned by AmazonDynamoDBv2.

This example shows how to get a list of all tables.

// Create a client AmazonDynamoDBClient client = new AmazonDynamoDBClient(); string startTableName = null; do { // Configure ListTables request with the marker value ListTablesRequest request = new ListTablesRequest { ExclusiveStartTableName = startTableName, }; // Issue call ListTablesResult result = client.ListTables(request).ListTablesResult; // List retrieved tables List<string> tables = result.TableNames; Console.WriteLine("Retrieved tables: {0}", string.Join(", ", tables)); // Update marker value from the result startTableName = result.LastEvaluatedTableName; } while (!string.IsNullOrEmpty(startTableName)); // Test marker value

Exception | Condition |
---|---|
InternalServerErrorException |