In this module, you use the UpdateItem API to update attributes of an existing item in our database. In this module, you use the UpdateItem API to update attributes of an existing item in our database.
Time to Complete Module: 15 Minutes
In addition to writing and reading data, you regularly want to update existing data in a database. It's best if you can update this data in a single call rather than first reading an item and then writing back the full item with our given updates. DynamoDB allows you to update items in place by using the UpdateItem API call.
For this example, recall that each item has a Formats attribute, which is a map of all the different formats your bookstore has for a given title. Over time, this map needs to be updated for a specific book, either because you have added a new format or because you stopped carrying a format.