我在Python2.7中配置了一个AWS Lambda,以便从Firehose Delivery Stream读取事件,并将属性'element_class‘(类型字符串)作为分区键写入DynamoDB) when calling the PutItem operation: One or more parameter values were invalid: Missing the key element_classin the item: ClientError
Traceback (most recent
ConditionExpression='attribute_not_exists(state) AND attribute_not_exists(name)' except ClientError= 'ConditionalCheckFailedException':这里的问题是状态是一个保留字,因此它失败时出错:
[ERROR] ClientError: An error occurred (V
我使用一个lambda函数,在其中我使用boto3到put_item()到我的DynamoBD表中,并在代码Im上添加了ttl参数(生存时间)。ttl = str(int(time.time() + 2629746))An error occurred (ValidationException) when calling the PutItem operation: The parameter cannot be conv
我是第一次使用DynamoDB (使用boto3),我不确定如何定义我的分区键。我习惯使用SQL,在SQL中,您可以使用来确保键总是会增加。我还没有在DynamoDB中看到这样的选项--相反,在使用时,“主键属性是必需的”--我认为这意味着我必须显式地定义值(实际上,如果我不使用它,我就会得到botocore.exceptions.ClientError: An error occurred (ValidationException) when cal