def server_cert_absent(name, region=None, key=None, keyid=None, profile=None):
 ret = {'name': name, 'result': True, 'comment': '', 'changes': {}}
 exists = __salt__['boto_iam.get_server_certificate'](name, region, key, keyid, profile)
 if (not exists):
  ret['comment'] = 'Certificate {0} does not exist.'.format(name)
  return ret
 if __opts__['test']:
  ret['comment'] = 'Server certificate {0} is set to be deleted.'.format(name)
  ret['result'] = None
  return ret
 deleted = __salt__['boto_iam.delete_server_cert'](name, region, key, keyid, profile)
 if (not deleted):
  ret['result'] = False
  ret['comment'] = 'Certificate {0} failed to be deleted.'.format(name)
  return ret
 ret['comment'] = 'Certificate {0} was deleted.'.format(name)
 ret['changes'] = deleted
 return ret

def server_cert_absent ( name , region = None , key = None , keyid = None , profile = None ) : ret = { 'name' : name , 'result' : True , 'comment' : '' , 'changes' : { } } exists = __salt__ [ 'boto_iam.get_server_certificate' ] ( name , region , key , keyid , profile ) if ( not exists ) : ret [ 'comment' ] = 'Certificate {0} does not exist.' . format ( name ) return ret if __opts__ [ 'test' ] : ret [ 'comment' ] = 'Server certificate {0} is set to be deleted.' . format ( name ) ret [ 'result' ] = None return ret deleted = __salt__ [ 'boto_iam.delete_server_cert' ] ( name , region , key , keyid , profile ) if ( not deleted ) : ret [ 'result' ] = False ret [ 'comment' ] = 'Certificate {0} failed to be deleted.' . format ( name ) return ret ret [ 'comment' ] = 'Certificate {0} was deleted.' . format ( name ) ret [ 'changes' ] = deleted return ret
deletes a server certificate .