class_docstr: Lambda step for workflow.
docstr: Returns the lambda function arn
  
  It upserts a lambda function if function name is provided.
  It updates a lambda function if lambda arn and code is provided.
  It is a no-op if code is not provided but function arn is provided.
docstr_tok: ["Returns","the","lambda","function","arn","It","upserts","a","lambda","function","if","function","name","is","provided",".","It","updates","a","lambda","function","if","lambda","arn","and","code","is","provided",".","It","is","a","no-op","if","code","is","not","provided","but","function","arn","is","provided","."]
code: def _get_function_arn(self):
      """Returns the lambda function arn
  
      It upserts a lambda function if function name is provided.
      It updates a lambda function if lambda arn and code is provided.
      It is a no-op if code is not provided but function arn is provided.
      """
      if self.lambda_func.function_arn is None:
          response = self.lambda_func.upsert()
          return response["FunctionArn"]
  
      if (
          self.lambda_func.zipped_code_dir is None
          and self.lambda_func.script is None
      ):
          warnings.warn(
              "Lambda function won't be updated because zipped_code_dir \
                  or script is not provided."
          )
          return self.lambda_func.function_arn
  
      response = self.lambda_func.update()
      return response["FunctionArn"]
  
imports: from __future__ import absolute_import
  from typing import List, Dict, Optional, Union
  from enum import Enum
  import warnings
  import attr
  from sagemaker.workflow.entities import RequestType
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.entities import DefaultEnumMeta
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.steps import Step, StepTypeEnum, CacheConfig
  from sagemaker.lambda_helper import Lambda
label_desc: Use image node_id 5 for calling the LambdaStep obj's underlying member method code with example usage: obj._get_function_arn() and returns: response, response, self