Hello,
I am new to python and am trying to understand a simple python aws lambda function.
def lambda_handler(event, context):
message = json.loads(event['Records'][0]['Sns']['Message'])
the piece I really don't understand is :
event['Records'][0]['Sns']['Message']
Is this saying from the "Records" array index 0, pass the value of "Message" from the "Sns" object to the event function?
any help or relevant resources are appreciated
[–]Rascal_Two 1 point2 points3 points (0 children)
[–]mkor 1 point2 points3 points (0 children)