How to parse Kinesis data stream in AWS Lambda Java
问题 I am creating a AWS Lambda function in Java to process Kinesis Data Stream. My current setup of parsing involves: Stringify using UTF-8 as suggested in AWS Documentation for(KinesisEvent.KinesisEventRecord rec : event.getRecords()) { String stringRecords = new String(rec.getKinesis().getData().array(), "UTF-8"); pageEventList.add(pageEvent); } Clean up characters using Regex Patterns a. non-ascii: "[^\\x00-\\x7F]"; b. ascii-control-characters: "[\\p{Cntrl}&&[^\r\n\t]]"; c. non-printable