kinesis-stream-lambda
Features
- Easily reads a Lambda event of Kinesis Stream as a stream handling the chunk as Buffer
- Supports KPL aggregation (set opts.isAgg true)
- Provides KSL.parseJSON transform to handle items expanded array data in one record (set opts.flatArray true)
- Node.js 6.10 or Later
How to install
$ npm install -save kinesis-stream-lambda
KPL aggregation only
furthermore,
$ npm install -save aws-kinesis-agg
Lambda handler examples
async/await style
const StreamUtils = ;const KSL = ;const PromisedLife = ; exports { console; const result = ; await consoledirresult;}
normal style
const StreamUtils = ;const KSL = ; exports { console; const result = ; const stream = KSL; stream; stream; stream ;}