def alias_absent(name, FunctionName, Name, region=None, key=None, keyid=None, profile=None):

    ret = {'name': Name,
           'result': True,
           'comment': '',
           'changes': {}
           }

    r = __salt__['boto_lambda.alias_exists'](FunctionName, Name, region=region,
                                    key=key, keyid=keyid, profile=profile)
    if 'error' in r:
        ret['result'] = False
        ret['comment'] = 'Failed to delete alias: {0}.'.format(r['error']['message'])
        return ret

    if r and not r['exists']:
        ret['comment'] = 'Alias {0} does not exist.'.format(Name)
        return ret

    if __opts__['test']:
        ret['comment'] = 'Alias {0} is set to be removed.'.format(Name)
        ret['result'] = None
        return ret
    r = __salt__['boto_lambda.delete_alias'](FunctionName, Name,
                                    region=region, key=key,
                                    keyid=keyid, profile=profile)
    if not r['deleted']:
        ret['result'] = False
        ret['comment'] = 'Failed to delete alias: {0}.'.format(r['error']['message'])
        return ret
    ret['changes']['old'] = {'alias': Name}
    ret['changes']['new'] = {'alias': None}
    ret['comment'] = 'Alias {0} deleted.'.format(Name)
    return ret
Init.
dataset/ETHPy150Open saltstack/salt/salt/states/boto_lambda.py/alias_absent--crossover with--dataset/ETHPy150Open alexandrebarachant/Grasp-and-lift-EEG-challenge/preprocessing/aux.py/SlidingWindow.__init__