Insert record in dynamodb table using DynamobdMapper when record doesn't exist.

0

I created a DDB table which contains version number. When i try to create new record in DDB table using DDB mapper using "DynamoDBMapperConfig.SaveBehavior.PUT" it is failing with the error as conditional failure but when i try to using "DynamoDBMapperConfig.SaveBehavior.CLOBBER" it is overwriting the record.

So how do i insert record in to the DDB only when record doesn't exist using DynamoDBMapper?

gefragt vor 2 Jahren63 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen