class_docstr: Interact with AWS Lambda.
  
  Provide thin wrapper around :external+boto3:py:class:`boto3.client("lambda") <Lambda.Client>`.
  
  Additional arguments (such as ``aws_conn_id``) may be specified and
  are passed down to the underlying AwsBaseHook.
  
  .. seealso::
      - :class:`airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`
class_docstr_tok: ["Interact","with","AWS","Lambda",".","Provide","thin","wrapper","around",":","external+boto3",":","py",":","class",":","`","boto3.client","(","``","lambda","''",")","<","Lambda.Client",">","`",".","Additional","arguments","(","such","as","``","aws_conn_id","``",")","may","be","specified","and","are","passed","down","to","the","underlying","AwsBaseHook",".","..","seealso",":",":","-",":","class",":","`","airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook","`"]
docstr: Invoke Lambda Function.
  
  .. seealso::
      - :external+boto3:py:meth:`Lambda.Client.invoke`
  
  :param function_name: AWS Lambda Function Name
  :param invocation_type: AWS Lambda Invocation Type (RequestResponse, Event etc)
  :param log_type: Set to Tail to include the execution log in the response.
      Applies to synchronously invoked functions only.
  :param client_context: Up to 3,583 bytes of base64-encoded data about the invoking client
      to pass to the function in the context object.
  :param payload: The JSON that you want to provide to your Lambda function as input.
  :param qualifier: AWS Lambda Function Version or Alias Name
docstr_tok: ["Invoke","Lambda","Function",".","..","seealso",":",":","-",":","external+boto3",":","py",":","meth",":","`","Lambda.Client.invoke","`",":","param","function_name",":","AWS","Lambda","Function","Name",":","param","invocation_type",":","AWS","Lambda","Invocation","Type","(","RequestResponse",",","Event","etc",")",":","param","log_type",":","Set","to","Tail","to","include","the","execution","log","in","the","response",".","Applies","to","synchronously","invoked","functions","only",".",":","param","client_context",":","Up","to","3,583","bytes","of","base64-encoded","data","about","the","invoking","client","to","pass","to","the","function","in","the","context","object",".",":","param","payload",":","The","JSON","that","you","want","to","provide","to","your","Lambda","function","as","input",".",":","param","qualifier",":","AWS","Lambda","Function","Version","or","Alias","Name"]
code: def invoke_lambda(
      self,
      *,
      function_name: str,
      invocation_type: str | None = None,
      log_type: str | None = None,
      client_context: str | None = None,
      payload: bytes | str | None = None,
      qualifier: str | None = None,
  ):
      """
      Invoke Lambda Function.
  
      .. seealso::
          - :external+boto3:py:meth:`Lambda.Client.invoke`
  
      :param function_name: AWS Lambda Function Name
      :param invocation_type: AWS Lambda Invocation Type (RequestResponse, Event etc)
      :param log_type: Set to Tail to include the execution log in the response.
          Applies to synchronously invoked functions only.
      :param client_context: Up to 3,583 bytes of base64-encoded data about the invoking client
          to pass to the function in the context object.
      :param payload: The JSON that you want to provide to your Lambda function as input.
      :param qualifier: AWS Lambda Function Version or Alias Name
      """
      if isinstance(payload, str):
          payload = payload.encode()
  
      invoke_args = {
          "FunctionName": function_name,
          "InvocationType": invocation_type,
          "LogType": log_type,
          "ClientContext": client_context,
          "Payload": payload,
          "Qualifier": qualifier,
      }
      return self.conn.invoke(**trim_none_values(invoke_args))
  
file_path: airflow/airflow/providers/amazon/aws/hooks/lambda_function.py
imports: from __future__ import annotations
  import base64
  from typing import Any
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
  from airflow.providers.amazon.aws.utils import trim_none_values
  from airflow.providers.amazon.aws.utils.suppress import return_on_error
label_desc: Use image node_id 2 for calling the LambdaHook obj's underlying member method code with example usage: obj.invoke_lambda() and returns: self