title: Update nested map dynamodb
body: <p>I have a dynamodb table with an attribute containing a nested map and I would like to update a specific inventory item that is filtered via a filter expression that results in a single item from this map.</p>
  <p>How to write an update expression to update the location to &quot;in place three&quot; of the item with name=opel,tags include &quot;x1&quot; (and possibly also f3)?
  This should just update the first list elements location attribute.</p>
  <pre><code>  {
      &quot;inventory&quot;: [
      {
        &quot;location&quot;: &quot;in place one&quot;,      # I want to update this
        &quot;name&quot;: &quot;opel&quot;,
        &quot;tags&quot;: [
          &quot;x1&quot;,
          &quot;f3&quot;
        ]
      },
      {
        &quot;location&quot;: &quot;in place two&quot;,
        &quot;name&quot;: &quot;abc&quot;,
        &quot;tags&quot;: [
          &quot;a3&quot;,
          &quot;f5&quot;
        ]
      }],
      &quot;User&quot; :&quot;test&quot; 
    } 
  </code></pre>