bash - dynamodb 查询属性,而不是项目
问题描述
这可能是一个愚蠢的问题,但我是aws的新手,我想做的是使用aws cli查询表中可用的属性。
例如,我有这个:
"AttributeDefinitions": [
{
"AttributeName": "GameConsole",
"AttributeType": "S"
},
{
"AttributeName": "GameName",
"AttributeType": "S"
}
],
"TableName": "Games"
我想查询的是“GameConsole”和“GameName”
我已经尝试过 aws dynamodb query --select ALL_ATTRIBUTES --table-name Games
但似乎没有用,因为它需要一个特定的值来查询项目而不是属性
解决方案
aws dynamodb describe-table --table-name Games
可能会给你你的桌子的细节。您需要解析以过滤 AttributeDefinitions 或 AttributeName。
推荐阅读
- amazon-ec2 - Hashicorp-vault 用户密码认证
- java - 将整数存储在字节数组中的特定字节数中 - JAVA
- android - 如何从 xml 中获取 TextView 样式?
- javascript - 以别名从 CDN 加载外部库
- java - Java Mongodb 使用 _id 更新或插入
- python-3.x - 使用 Geopandas,如何通过采样方法在每个多边形中随机选择 5 个点
- swift - 使用 Swift 在核心数据中保存 NSDictionary
- c# - 使用 dotnet core 在 linux 上处理 fifo 数据
- contextmenu - SwiftUI contextMenu - 如何添加红色(危险)动作
- php - 如何计算Mysql中特定行中具有相同值的列?