Boto3 updating multiple values
<p>in the boto3 documentation updating an item is described by this example:</p>

<pre><code>table.update_item(
    Key={
        'username': 'janedoe',
        'last_name': 'Doe'
    },
    UpdateExpression='SET age = :val1',
    ExpressionAttributeValues={
        ':val1': 26
    }
)
</code></pre>

<p>But what am i supposed to do, if i want to update several values of the item. I couldn't find any information on this. Can anybody help? Thank you!</p>

<p>EDIT:</p>

<p>Ok, it seems to work like this, can anybody confirm wether this is the right way. Just to be sure i'm not doing anything totally wrong here.</p>

<pre><code>table.update_item(
                    Key={
                        'id': item['id']
                    },
                    UpdateExpression='SET value1 = :val1, value2 = :val2',
                    ExpressionAttributeValues={
                        ':val1': someValue1,
                        ':val2': someValue2
                    }
                )
</code></pre>

<p>Thanks!</p>