airflow.providers.amazon.aws.hooks.lambda_function

This module contains AWS Lambda hook

Module Contents

Classes

LambdaHook

Interact with AWS Lambda

class airflow.providers.amazon.aws.hooks.lambda_function.LambdaHook(*args, **kwargs)[source]

Bases: airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook

Interact with AWS Lambda

Additional arguments (such as aws_conn_id) may be specified and are passed down to the underlying AwsBaseHook.

See also

AwsBaseHook

Parameters
  • function_name – AWS Lambda Function Name

  • invocation_type – AWS Lambda Invocation Type (RequestResponse, Event etc)

  • log_type – Tail Invocation Request

  • client_context – Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object.

  • payload – The JSON that you want to provide to your Lambda function as input.

  • qualifier – AWS Lambda Function Version or Alias Name

invoke_lambda(*, function_name, invocation_type=None, log_type=None, client_context=None, payload=None, qualifier=None)[source]

Invoke Lambda Function. Refer to the boto3 documentation for more info.

create_lambda(*, function_name, runtime=None, role, handler=None, code, description=None, timeout=None, memory_size=None, publish=None, vpc_config=None, package_type=None, dead_letter_config=None, environment=None, kms_key_arn=None, tracing_config=None, tags=None, layers=None, file_system_configs=None, image_config=None, code_signing_config_arn=None, architectures=None)[source]

Was this entry helpful?