+ * Builds and returns a WriteRequest
for JSON object.
+ *
+ * Takes a Map of Dynamo Table name to a List of Write requests and executes a bulk write. + *
+ * + * @param items Mapping of table name to collection of write requests. + * @return BatchWriteItemResponse + */ + private BatchWriteItemResponse getBatchWriteItemResponse(Map+ * Builds and return a BatchWriteItemRequest object. + *
+ * + * @param items Mapping of table name to collection of write requests. + * @return BatchWriteItemRequest + */ + private BatchWriteItemRequest getBatchWriteItemRequest(Map+ * Executes BatchWriteItem operation against a Dynamo Table. + *
+ * + * @param `batchItemRequest` + * @returnBatchWriteItemResponse
+ */
+ private BatchWriteItemResponse batchWrite(BatchWriteItemRequest batchItemRequest) {
+ return dynamoDBClient.batchWriteItem(batchItemRequest);
+ }
+
+ /**
+ * + * Returns inner JSON object. + *
+ * + * @param fileIn + * @param parser + * @returnJSONObject
+ * @throws ParseException
+ */
+ private JSONObject getWriteItemRequest(Scanner fileIn, JSONParser parser) throws ParseException {
+ var line = fileIn.nextLine();
+ JSONObject jsonLine = (JSONObject) parser.parse(line);
+ return (JSONObject) jsonLine.get("Item");
+ }
+
+ /**
+ * + * getS3ClientObject and returns an S3 Object as a stream. + *
+ * + * @param srcKey + * @param srcBucket + * @return + */ + private ResponseInputStream