title: How to put a new key-value pair into a map in DynamoDB? (java)
body: <p>I have a DynamoDB attribute whose value is a map from a Number to a String. I am trying to put in a new key-value pair. From what I've read, this seems to be possible, but I don't know how.</p>
  
  <p>I assume the solution is similar to the one in the link below:</p>
  
  <p><a href="https://stackoverflow.com/questions/30265355/how-to-update-a-map-or-a-list-on-aws-dynamodb-document-api?s=2|0.8973">How to update a Map or a List on AWS DynamoDB document API?</a></p>
  
  <p>But I do not believe the example is on putting in a new item to a map. Could someone show me how to put in an item to a map?</p>
  
  <p>Thanks.</p>
  
  <p>EDIT:</p>
  
  <p>I do not want to get the item, locally make the changes, and put it back. I am working with multiple clients who might interact concurrently (and I assume the update by dynamo ensures there will be no race conditions).</p>