Datasets:
File size: 371 Bytes
d16079c | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import json
#Define a lambda function which prints a standard msg on receiving a hit on the endpoint
def handler(event, context):
print('request: {}'.format(json.dumps(event)))
return {
'statusCode': 200,
'headers': {
'Content-Type': 'text/plain'
},
'body': 'Hello, CDK! You have hit {}\n'.format(event['path'])
}
|