2

如何使用DocumentClient执行此请求?

aws dynamodb describe-table --table-name MusicCollection
4

1 回答 1

2

文档客户端用于处理项目,但假设您的意思是如何使用 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
 });
于 2018-04-28T16:55:52.693 回答