【发布时间】:2021-04-11 08:32:28
【问题描述】:
我正在尝试使用put_item(Item = data) 将 json 对象插入 DynamoDB。
如果我们将主键字段嵌套在json中是否可能。如下例所示。
{
"data": {
"Details": {
"Number": "123456"
}
}
}
错误:
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: Missing the key Number in the item
如果我们可以将主字段作为 boto3 中的某个参数传递,我找不到任何参考。
【问题讨论】:
标签: amazon-dynamodb boto3