DynamoDB: Get Table (Guide w/ Code Examples)
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: GetItem
- DynamoDB Get in Typescript
- DynamoDB: Query KeyConditionExpression
- DynamoDB: Attribute Not Null
- DynamoDB: Bulk Insert
- DynamoDB: Create if Not Exists
- DynamoDB BatchWriteItem in Typescript
- DynamoDB: Query Count
- DynamoDB: Delete Table
- DynamoDB: Batch Get
- DynamoDB: Query Items
- DynamoDB: Like
- DynamoDB: Query JSON
- DynamoDB: Query Date Range
- DynamoDB: Get List Of Items
Better DynamoDB experience.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase