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?

demandé il y a 2 ans63 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions