exports.handler = (event, context, callback) => {
    for (let i = 0; i < event.Records.length; i++) {
        let payload = new Buffer(event.Records[i].kinesis.data, 'base64').toString('ascii');
        console.log(JSON.stringify(payload, null, 2));
    }
    callback(null, {
        message: 'Hello World!',
        event: event
    });
};
