class_docstr: Creates an AWS Lambda function.
  
  More information regarding parameters of this operator can be found here
  https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda.html#Lambda.Client.create_function
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:LambdaCreateFunctionOperator`
  
  :param function_name: The name of the AWS Lambda function, version, or alias.
  :param runtime: The identifier of the function's runtime. Runtime is required if the deployment package
      is a .zip file archive.
  :param role: The Amazon Resource Name (ARN) of the function's execution role.
  :param handler: The name of the method within your code that Lambda calls to run your function.
      Handler is required if the deployment package is a .zip file archive.
  :param code: The code for the function.
  :param description: A description of the function.
  :param timeout: The amount of time (in seconds) that Lambda allows a function to run before stopping it.
  :param config: Optional dictionary for arbitrary parameters to the boto API create_lambda call.
  :param wait_for_completion: If True, the operator will wait until the function is active.
  :param waiter_max_attempts: Maximum number of attempts to poll the creation.
  :param waiter_delay: Number of seconds between polling the state of the creation.
  :param deferrable: If True, the operator will wait asynchronously for the creation to complete.
      This implies waiting for creation complete. This mode requires aiobotocore module to be installed.
      (default: False, but can be overridden in config file by setting default_deferrable to True)
  :param aws_conn_id: The AWS connection ID to use
class_docstr_tok: ["Creates","an","AWS","Lambda","function",".","More","information","regarding","parameters","of","this","operator","can","be","found","here","https",":","\/\/boto3.amazonaws.com\/v1\/documentation\/api\/latest\/reference\/services\/lambda.html","#","Lambda.Client.create_function","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","LambdaCreateFunctionOperator","`",":","param","function_name",":","The","name","of","the","AWS","Lambda","function",",","version",",","or","alias",".",":","param","runtime",":","The","identifier","of","the","function","'s","runtime",".","Runtime","is","required","if","the","deployment","package","is","a",".zip","file","archive",".",":","param","role",":","The","Amazon","Resource","Name","(","ARN",")","of","the","function","'s","execution","role",".",":","param","handler",":","The","name","of","the","method","within","your","code","that","Lambda","calls","to","run","your","function",".","Handler","is","required","if","the","deployment","package","is","a",".zip","file","archive",".",":","param","code",":","The","code","for","the","function",".",":","param","description",":","A","description","of","the","function",".",":","param","timeout",":","The","amount","of","time","(","in","seconds",")","that","Lambda","allows","a","function","to","run","before","stopping","it",".",":","param","config",":","Optional","dictionary","for","arbitrary","parameters","to","the","boto","API","create_lambda","call",".",":","param","wait_for_completion",":","If","True",",","the","operator","will","wait","until","the","function","is","active",".",":","param","waiter_max_attempts",":","Maximum","number","of","attempts","to","poll","the","creation",".",":","param","waiter_delay",":","Number","of","seconds","between","polling","the","state","of","the","creation",".",":","param","deferrable",":","If","True",",","the","operator","will","wait","asynchronously","for","the","creation","to","complete",".","This","implies","waiting","for","creation","complete",".","This","mode","requires","aiobotocore","module","to","be","installed",".","(","default",":","False",",","but","can","be","overridden","in","config","file","by","setting","default_deferrable","to","True",")",":","param","aws_conn_id",":","The","AWS","connection","ID","to","use"]
code: def execute(self, context: Context):
      self.log.info(
          "Creating AWS Lambda function: %s", self.function_name
      )
      response = self.hook.create_lambda(
          function_name=self.function_name,
          runtime=self.runtime,
          role=self.role,
          handler=self.handler,
          code=self.code,
          description=self.description,
          timeout=self.timeout,
          **self.config,
      )
      self.log.info("Lambda response: %r", response)
  
      if self.deferrable:
          self.defer(
              trigger=LambdaCreateFunctionCompleteTrigger(
                  function_name=self.function_name,
                  function_arn=response["FunctionArn"],
                  waiter_delay=self.waiter_delay,
                  waiter_max_attempts=self.waiter_max_attempts,
                  aws_conn_id=self.aws_conn_id,
                  region_name=self.region_name,
                  verify=self.verify,
                  botocore_config=self.botocore_config,
              ),
              method_name="execute_complete",
              timeout=timedelta(
                  seconds=self.waiter_max_attempts * self.waiter_delay
              ),
          )
      if self.wait_for_completion:
          self.log.info("Wait for Lambda function to be active")
          waiter = self.hook.conn.get_waiter("function_active_v2")
          waiter.wait(
              FunctionName=self.function_name,
          )
  
      return response.get("FunctionArn")
  
file_path: airflow/airflow/providers/amazon/aws/operators/lambda_function.py
imports: from __future__ import annotations
  import json
  from datetime import timedelta
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.providers.amazon.aws.hooks.lambda_function import LambdaHook
  from airflow.providers.amazon.aws.operators.base_aws import AwsBaseOperator
  from airflow.providers.amazon.aws.triggers.lambda_function import LambdaCreateFunctionCompleteTrigger
  from airflow.providers.amazon.aws.utils.mixins import aws_template_fields
label_desc: Use image node_id 2 for calling the LambdaCreateFunctionOperator obj's underlying member method code with example usage: obj.execute(context) and returns: response