Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import json
  2.  
  3. print('Loading function')
  4.  
  5.  
  6. def lambda_handler(event, context):
  7. #print("Received event: " + json.dumps(event, indent=2))
  8. for record in event['Records']:
  9. print(record['eventID'])
  10. print(record['eventName'])
  11. print("DynamoDB Record: " + json.dumps(record['dynamodb'], indent=2))
  12. return 'Successfully processed {} records.'.format(len(event['Records']))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement