Common¶
The common module provides base classes and utilities for creating Lambda handlers.
Overview¶
| Module | Description |
|---|---|
| Handler | LambdaHandler base class |
| Base | Base utilities and helpers |
| Logging | Logging configuration and utilities |
| Metrics | Metrics collection utilities |
| Models | Common data models |
| API | API Gateway handler utilities |
Quick Start¶
from aibs_informatics_aws_lambda.common.handler import LambdaHandler
class MyHandler(LambdaHandler):
def handle(self, event, context):
return {"status": "success"}
# Export handler for AWS Lambda
handler = MyHandler().get_handler()