

def absent(name, region=None, key=None, keyid=None, profile=None):
    '\n    Ensure the named sns topic is deleted.\n\n    name\n        Name of the SNS topic.\n\n    region\n        Region to connect to.\n\n    key\n        Secret key to be used.\n\n    keyid\n        Access key to be used.\n\n    profile\n        A dict with region, key and keyid, or a pillar key (string)\n        that contains a dict with region, key and keyid.\n    '
    ret = {
        'name': name,
        'result': True,
        'comment': '',
        'changes': {
            
        },
    }
    is_present = __salt__['boto_sns.exists'](name, region, key, keyid, profile)
    if is_present:
        if __opts__['test']:
            ret['comment'] = 'AWS SNS topic {0} is set to be removed.'.format(name)
            ret['result'] = None
            return ret
        deleted = __salt__['boto_sns.delete'](name, region, key, keyid, profile)
        if deleted:
            ret['comment'] = 'AWS SNS topic {0} does not exist.'.format(name)
            ret['changes']['old'] = {
                'topic': name,
            }
            ret['changes']['new'] = None
        else:
            ret['result'] = False
            ret['comment'] = 'Failed to delete {0} AWS SNS topic.'.format(name)
    else:
        ret['comment'] = 'AWS SNS topic {0} does not exist.'.format(name)
    return deleted

dataset/ETHPy150Open saltstack/salt/salt/states/boto_sns.py absent/VarMisuse@217/504 `ret`->`deleted`