def _find_alias(FunctionName, Name, FunctionVersion=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 args = {'FunctionName': FunctionName}
 if FunctionVersion:
  args['FunctionVersion'] = FunctionVersion
 for aliases in salt.utils.boto3.paged_call(conn.list_aliases, **args):
  for alias in aliases.get('Aliases'):
   if (alias['Name'] == Name):
    return alias
 return None

def _find_alias ( FunctionName , Name , FunctionVersion = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) args = { 'FunctionName' : FunctionName } if FunctionVersion : args [ 'FunctionVersion' ] = FunctionVersion for aliases in salt . utils . boto3 . paged_call ( conn . list_aliases , ** args ) : for alias in aliases . get ( 'Aliases' ) : if ( alias [ 'Name' ] == Name ) : return alias return None
given function name and alias name .