DynamoDB UpdateItem Action
Execute DynamoDB UpdateItem query completely serverless via Thingsup IoT Platform. Create custom items from MQTT Rules Engine or HTTP APIs.
Last updated
Was this helpful?
Was this helpful?
//"id" and "name" are the column names inside DynamoDB table.
//It contains a entry having id="2" and name="abc"
//Following are the fields you need mention in form to change the name value to "pqr" of id having value 2.
#b = :id_val //Condition Expression
set #a = :x //Update Expression
{"id":"2"} //key
{ ":x":"pqr" , ":id_val":"2" } //ExpressionAttributeValues
{ "#a" : "name","#b":"id" } //ExpressionAttributeNames