I need to put data in batches to firehose using AWS Lambda written in Java. The data is a list of strings: ["john", "saul", "paul", "jonas"]. I know how to do this in python but I am struggling in Java.
Following are the steps I need to perform in Java:
1). Build a firehose client.
2). Build a batch of data.(say the batch size is 2)
3). Put data in firehose.
4). get the response in firehose and extract which records failed to be delivered.
How to write code for all these steps in Java?