airflow.providers.amazon.aws.hooks.lambda_function

This module contains AWS Lambda hook

Module Contents

class airflow.providers.amazon.aws.hooks.lambda_function.AwsLambdaHook(function_name: str, log_type: str = 'None', qualifier: str = '$LATEST', invocation_type: str = 'RequestResponse', *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 (str) -- AWS Lambda Function Name

  • log_type (str) -- Tail Invocation Request

  • qualifier (str) -- AWS Lambda Function Version or Alias Name

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

invoke_lambda(self, payload: str)[source]

Invoke Lambda Function

Was this entry helpful?