使用DynamoDB和Amazon API Gateway的验证异常

时间:2019-02-12 18:34:07

标签: amazon-web-services amazon-dynamodb

嗨,我不断收到验证异常错误:

“ __ type”:“ com.amazon.coral.validate#ValidationException”,   “ message”:“检测到1个验证错误:'key'上的null值未能满足约束:成员不能为null'

我还附加了我的应用程序/ json映射模板的外观。

{ 
"TableName": "Comments",
"Items": {
    "commentid": {
        "S": "$input.path('$.commentid')"
        },
    "pageid": {
        "S": "$input.path('$.pageid')"
        },
    "userName": {
        "S": "$input.path('$.userName')"
    },
    "message": {
        "S": "$input.path('$.message')"
    }
}

}

谢谢

0 个答案:

没有答案