Amazon web services – UpdateItem dynamodb action results to duplication of entry in the table
I got this code public void saveOrUpdateImageRecords(String documentId, List<ImageDetail> imageDetails, LambdaLogger logger) { DynamoDbTable<ImageDetail> table = enhancedClient.table(System.getenv("COLUMBIA_IMAGES_TABLE"), TableSchema.fromBean(ImageDetail.class)); logger.log("inside saveOrUpdateImageRecords"); for (int i = 0; i < imageDetails.size(); i++) { ImageDetail imageDetail = imageDetails.get(i); // Set DocumentId and TrackPosition as…