def _get_records(event):
try:<EOL><INDENT>recs, _ = unpack_kinesis_event(event, deserializer=None)<EOL><DEDENT>except KeyError:<EOL><INDENT>recs = event["<STR_LIT>"]<EOL><DEDENT>return recs<EOL>
Get records from an AWS Lambda trigger event.