Created
May 16, 2020 20:39
-
-
Save awssimplified/1354e7e9ce564f58a4b1503e8dc00cc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import json | |
def respond(res): | |
return { | |
'statusCode': '200', | |
'body': json.dumps(res), | |
'headers': { | |
'Content-Type': 'application/json', | |
}, | |
} | |
def lambda_handler(event, context): | |
body = event['body'] | |
personId = json.loads(body)['personId'] | |
return respond(personId) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment