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: BatchGetItem
- DynamoDB: Query Date Range
- DynamoDB: Batch Get
- DynamoDB: Bulk Insert
- DynamoDB: Delete Multiple Items in Javascript
- DynamoDB: Delete All Items With Partition Key
- DynamoDB: Query Items
- DynamoDB: Query JSON
- DynamoDB: Query Greater Than
- DynamoDB: Create if Not Exists
- DynamoDB: Query Ends With
- DynamoDB: Get Unique Values
- DynamoDB: Get Last Inserted Item
- DynamoDB: Query Count
- DynamoDB Get in Typescript
Better DynamoDB experience.
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase