airflow.contrib.hooks.aws_lambda_hook

Module Contents

class airflow.contrib.hooks.aws_lambda_hook.AwsLambdaHook(function_name, region_name=None, log_type='None', qualifier='$LATEST', invocation_type='RequestResponse', *args, **kwargs)[source]

Bases: airflow.contrib.hooks.aws_hook.AwsHook

Interact with AWS Lambda

Parameters
  • function_name (str) – AWS Lambda Function Name

  • region_name (str) – AWS Region Name (example: us-west-2)

  • 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)

get_conn(self)[source]
invoke_lambda(self, payload)[source]

Invoke Lambda Function