Tag: 发电机本地

关键架构中的属性数量必须与属性定义中定义的属性数量相匹配

我想创build一个简单的表,使用DynamoDB的JavaScript shell,我得到这个exception: { "message": "The number of attributes in key schema must match the number of attributes defined in attribute definitions.", "code": "ValidationException", "time": "2015-06-16T10:24:23.319Z", "statusCode": 400, "retryable": false } 下面是我试图创build的表格: var params = { TableName: 'table_name', KeySchema: [ { AttributeName: 'hash_key_attribute_name', KeyType: 'HASH', }, ], AttributeDefinitions: [ { AttributeName: 'hash_key_attribute_name', AttributeType: 'S', }, { […]