0
我想更新一個項目,如果它存在。如果我不使用預期值,則該項目被插入,如果它不存在。boto3 dynamodb更新項目與預期值
dynamo.update_item(TableName=tableName, Expected={"myVar":{"Exists":True},{"Value":{"S":"myValue"}}}, Key={"myVar":"myValue"}, AttributeUpdates={"myVar":{"Action":"PUT", "Value":"myNewValue"}})
給我一個sintaxis錯誤。一些幫助?