AWS - One of the required keys was not given a value(AWS - 所需键之一未指定值)
问题描述
AWS 新手,试图将数据放入表中.阅读文档并尝试遵循示例后,我遇到了此验证错误.
New to AWS, trying to put data into a table. After reading the documentation and trying to follow examples I am running into this validation error.
我的代码:
我找到了 这个,但我不理解 range
关键部分.我正在以下代码中创建表,并且有 hash
键,但没有 range
键.那是我的问题吗?我将如何制作范围键?
I found this, but am not understanding the range
key part. I'm creating the table in this following code and have the hash
key, but not a range
key. Is that my issue? What would I make the range key?
推荐答案
在表定义中,您将键命名为 Ref-ID
,但在 put 操作中,您将键命名为 Info.如果您的表有一个名为
Ref-ID
的哈希键,那么您插入的每条记录都需要 Ref-ID
的值.
In the table definition, you named the key Ref-ID
but in your put operation you are naming the key Info
. If your table has a hash key named Ref-ID
then every record you insert will require a value for Ref-ID
.
这篇关于AWS - 所需键之一未指定值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!