MCPcopy Create free account
hub / github.com/aws-samples/aws-cdk-examples / handler

Function handler

python/api-sqs-lambda/lambda/lambda-handler.py:2–8  ·  view source on GitHub ↗
(event, context)

Source from the content-addressed store, hash-verified

1
2def handler(event, context):
3 response = "Received Message Body from API GW: " + event['Records'][0]['body']
4 print(response)
5 return {
6 'statusCode': 200,
7 'body': response
8 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected