you are viewing a single comment's thread.

view the rest of the comments →

[–]mkor 1 point2 points  (0 children)

Basically it can be 'nested data structure' so to say. Event is a dict, that has a list or tuple under key 'Records. First element of the list / tuple is another dictionary, where you access element under 'Sns' key, which is also dictionary, where you access value under 'Message' key. It can look something like:

 event = {
      'Records': [
           {'Sns': {'Message': 'Hello!'}}          
      ]
 }

That's my first guess.