The DescribeTable
operation returns information about the table.
Methods
(inner) describeTable(request) → {Promise}
- Source:
- See:
Retrieves information about the table.
Example
// Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.
await describeTable({
TableName: 'SomeTable'
});
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | Parameters as expected by DynamoDB |
Returns:
A promise that resolves to the response from DynamoDB.
- Type
- Promise
(inner) describeTableFor(tableName, requestopt) → {Promise}
- Source:
- See:
Creates a function that describe given table.
You would typically use this function through forTable
.
Examples
// Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.
await describeTableFor('SomeTable')
// Exported from `forTable`
const { describeTable } = forTable('SomeTable');
await describeTable();
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
tableName |
String | The name of the table to perform the operation on |
|
request |
Object |
<optional> |
Parameters as expected by DynamoDB |
Returns:
A promise that resolves to the response from DynamoDB.
- Type
- Promise