hc99's picture
Add files using upload-large-folder tool
d8ad0fd verified
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
@validator(inbound_schema=PARENT_SCHEMA, inbound_handlers={"https": get_child_schema})
def lambda_handler(event, context: LambdaContext) -> dict:
return event