MCPcopy Create free account
hub / github.com/apache/burr / lambda_handler

Function lambda_handler

examples/deployment/aws/lambda/app/lambda_handler.py:21–27  ·  view source on GitHub ↗
(event, context)

Source from the content-addressed store, hash-verified

19
20
21def lambda_handler(event, context):
22 count_up_to = int(event["body"]["number"])
23
24 app = counter_app.application(count_up_to)
25 action, result, state = app.run(halt_after=["result"])
26
27 return {"statusCode": 200, "body": state.serialize()}
28
29
30if __name__ == "__main__":

Callers 1

lambda_handler.pyFile · 0.85

Calls 2

runMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected