I am trying to have put_item to check if there is item with the same HashKey before actually adding the new item.
According to boto DynamoDB2 document, it is possible to do it with "Conditional Put".
I tried following command but no luck.
connection.put_item('table',item={'locationId':'a1', 'timestamp': time.time()}, expected={'locationID':False})
The error message is as following.
boto.exception.JSONResponseError: JSONResponseError: 400 Bad Request
{u'Message': u'Expected null', u'__type': u'com.amazon.coral.service#SerializationException'}
Does anyone have a conditional put with DynamoDBv2?
Thanks to all in advance.