MCPcopy Create free account
hub / github.com/cdk-patterns/serverless / handler

Function handler

the-big-fan/python/lambda_fns/subscribe/createdStatus.py:4–13  ·  view source on GitHub ↗
(event, context)

Source from the content-addressed store, hash-verified

2import logging
3
4def handler(event, context):
5 logger = logging.getLogger(__name__)
6 logger.setLevel(logging.INFO)
7 logger.info("request: " + json.dumps(event))
8
9 records = event["Records"]
10
11 for record in records:
12 payload = record["body"]
13 logger.info("received message " + payload)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected