def _find_function(name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 for funcs in salt.utils.boto3.paged_call(conn.list_functions):
  for func in funcs['Functions']:
   if (func['FunctionName'] == name):
    return func
 return None

def _find_function ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) for funcs in salt . utils . boto3 . paged_call ( conn . list_functions ) : for func in funcs [ 'Functions' ] : if ( func [ 'FunctionName' ] == name ) : return func return None
given function name .