AWS CLI dynamodb update-item

744 Views Asked by At

I need add a new entity in my table. I try this command, but not working

aws --region "us-east-2" dynamodb update-item --table-name TableName --key '{\"Id\":{\"S\":\"123123-1233-1233-1233-123123123\"}}' --update-expression "ADD Test :c" --expression-attribute-values '{\":c\": {\"M\": {\"Name\": {\"S\": \"Joe\"}}}}' --return-values ALL_NEW

Eror

An error occurred (ValidationException) when calling the UpdateItem operation: Invalid UpdateExpression: Incorrect operand type for operator or function; operator: ADD, operand type: MAP, typeSet: ALLOWED_FOR_ADD_OPERAND
0

There are 0 best solutions below