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?

preguntada hace 2 años63 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas