DynamoDB: Get Table (Guide w/ Code Examples)

Provided by Rafal Wilinski
To get a table using the AWS JavaScript SDK, you can use the describeTable
method. It returns the table's metadata, including its primary key schema, provisioned throughput, and current status. The data returned is passed as an argument to the callback function.
const AWS = require('aws-sdk'); const dynamodb = new AWS.DynamoDB(); const params = { TableName: 'myTable' }; dynamodb.describeTable(params, (err, data) => { if (err) { console.error(err); } else { console.log(data); } });
Similar Code Examples
- DynamoDB: Attribute Not Null
- DynamoDB: Batch Get
- DynamoDB: Increment Counter
- DynamoDB: Get Random Item
- DynamoDB: Create if Not Exists
- DynamoDB: BatchGetItem
- DynamoDB: Query Global Secondary Index in Nodejs
- DynamoDB: Query KeyConditionExpression
- DynamoDB: Query Date Range
- DynamoDB: Get Multiple Items
- DynamoDB BatchWriteItem in Typescript
- DynamoDB: Delete Table
- DynamoDB: Delete All Items With Partition Key
- DynamoDB: Get All Items
- DynamoDB: Bulk Insert
Login to the AWS Console less. Use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase