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, find and return matching alias information.
dataset/ETHPy150Open saltstack/salt/salt/modules/boto_lambda.py/_find_alias