How to separate multiple clauses in a DynamoDB Update Expression

Question:

Per the AWS Docs:

An update expression consists of one or more clauses. Each clause
begins with a SET, REMOVE, ADD or DELETE keyword. You can include any
of these clauses in an update expression, in any order. However, each
action keyword can appear only once.

I’m having trouble getting the syntax right for SET and REMOVE in one update_expression:

I also tried the following:

Can anyone point me to the right docs?

Answer:

I was making it too complicated.
This is the answer:

No delimiter character needed besides the Clause keyword.

Leave a Reply