airflow.providers.amazon.aws.hooks.lambda_function

This module contains AWS Lambda hook

Module Contents

Classes

LambdaHook

Interact with AWS Lambda

AwsLambdaHook

This hook is deprecated.

class airflow.providers.amazon.aws.hooks.lambda_function.LambdaHook(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) str[source]

Invoke Lambda Function

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

Bases: LambdaHook

This hook is deprecated. Please use airflow.providers.amazon.aws.hooks.lambda_function.LambdaHook.

Was this entry helpful?