FEA-Bench / testbed /aws-powertools__powertools-lambda-python /examples /validation /src /custom_handlers.py
| from custom_handlers_schema import CHILD_SCHEMA, PARENT_SCHEMA | |
| from aws_lambda_powertools.utilities.typing import LambdaContext | |
| from aws_lambda_powertools.utilities.validation import validator | |
| # Function to return the child schema | |
| def get_child_schema(uri: str): | |
| return CHILD_SCHEMA | |
| def lambda_handler(event, context: LambdaContext) -> dict: | |
| return event | |