Last active
December 7, 2022 10:14
-
-
Save chandra-prakash-meghwal/e9a5f2255b4f365f6311ce7673db0d92 to your computer and use it in GitHub Desktop.
Python handler for AWS Lambda function
This file contains 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 json | |
def lambda_handler(event, context): | |
# TODO implement | |
user_name = event.get('name') | |
message = 'Hello {}'.format(user_name) | |
return { | |
'statusCode': 200, | |
'message': message, | |
'body': json.dumps('This message is from Lambda!') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment