def absent(
        name,
        region,
        user=None,
        opts=False):
    ret = {'name': name, 'result': True, 'comment': '', 'changes': {}}

    does_exist = __salt__['aws_sqs.queue_exists'](name, region, opts, user)

    if does_exist:
        if __opts__['test']:
            ret['result'] = None
            ret['comment'] = 'AWS SQS queue {0} is set to be removed'.format(
                    name)
            return ret
        removed = __salt__['aws_sqs.delete_queue'](name, region, opts, user)
        if removed['retcode'] == 0:
            ret['changes']['removed'] = removed['stdout']
        else:
            ret['result'] = False
            ret['comment'] = removed['stderr']
    else:
        ret['comment'] = u'{0} does not exist in {1}'.format(name, region)

    return ret
Select a key from a mapping.
dataset/ETHPy150Open saltstack/salt/salt/states/aws_sqs.py/absent--crossover with--dataset/ETHPy150Open kdart/pycopia/core/pycopia/cliutils.py/choose_key