AWS Lambda Function is misinterpreting event dictionary in python?
问题 I am trying to deploy a google calendar api to AWS Lambda. Since I was facing a problem in extracting the value from the event dictionary (created by lambda from the JSON payload of a POST request), i created a toy function to test def handler(event,context): a=event.get("type") if a=='create': return { "statusCode": 200, "headers": { "Content-Type": "text/plain"}, #"body": "Event_id"+ str(event_identifier) + " Event Link: " +str(links) "body" : str(a) } else: return { "statusCode": 200,