export { } ; exports . handler = async function ( event ) { console . log ( "request:" , JSON . stringify ( event , undefined , 2 ) ) ; let records = event . Records ; for ( let index in records ) { let payload = records [ index ] . body ; console . log ( 'received message ' + payload ) ; } } ;