import json

def lambda_handler(event, context):
    message = event['Records'][0]['Sns']['Message']
parsed_message = json.loads(message)
print(parsed_message['Records'][0]['s3']['bucket']['name'])
Parsing through json data for aws sns event data in python