使用 DocumentClient 描述-table 方法
describe-table method using DocumentClient
如何使用 DocumentClient 执行此请求?
aws dynamodb describe-table --table-name MusicCollection
文档客户端用于处理项目,但假设您的意思是如何使用 Javascript,答案是这样的:
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#describeTable-property
var params = {
TableName: "MusicCollection"
};
dynamodb.describeTable(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
如何使用 DocumentClient 执行此请求?
aws dynamodb describe-table --table-name MusicCollection
文档客户端用于处理项目,但假设您的意思是如何使用 Javascript,答案是这样的:
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#describeTable-property
var params = {
TableName: "MusicCollection"
};
dynamodb.describeTable(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});