def update_meta(self, lookup_key, key, new_value):
"""
Update the Value for the given key
Args:
lookup_key: Key for the object requested
key: Metadata key
new_value: New meta data value
Returns:
"""
response = self.table.update_item(
Key={
'lookup_key': lookup_key,
'key': key,
},
UpdateExpression='SET metavalue = :val1',
ExpressionAttributeValues={
':val1': new_value
},
ReturnValues='UPDATED_NEW'
)
return response
评论列表
文章目录