Skip to content

AWS Lambda Event Handler

airtable_apply_annotations.lambda_function

lambda_handler(event, context)

Event listener for S3 event and calls the daily logger function.

Parameters:

Name Type Description Default
event AWS Event

A JSON-formatted document that contains data for a Lambda function to process.

required
context AWS Context

An object that provides methods and properties that provide information about the invocation, function, and runtime environment.

required
Source code in src/airtable_apply_annotations/lambda_function.py
def lambda_handler(event, context):
    """Event listener for S3 event and calls the daily logger function.

    Args:
        event (AWS Event): A JSON-formatted document that contains data for a Lambda
                           function to process.
        context (AWS Context): An object that provides methods and properties that
                               provide information about the invocation, function,
                               and runtime environment.
    """
    main()