The update function works differently than put does. Whereas put will insert-or-overwrite, update will update-or-insert. We cover what you can do with an UpdateExpression, which turns out to be a lot.
update
put