code: def exists(name=None, region=None, key=None, keyid=None, profile=None,
             vpc_id=None, vpc_name=None, group_id=None):
      '''
      Check to see if a security group exists.
  
      CLI example::
  
          salt myminion boto_secgroup.exists mysecgroup
      '''
      conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  
      group = _get_group(conn, name=name, vpc_id=vpc_id, vpc_name=vpc_name,
                         group_id=group_id, region=region, key=key, keyid=keyid,
                         profile=profile)
      if group:
          return True
      else:
          return Falsf exists(name=None, region=None, key=None, keyid=None, profile=None,
             vpc_id=None, vpc_name=None, group_id=None):
      '''
      Check to see if a security group exists.
  
      CLI example::
  
          salt myminion boto_secgroup.exists mysecgroup
      '''
      conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  
      group = _get_group(conn, name=name, vpc_id=vpc_id, vpc_name=vpc_name,
                         group_id=group_id, region=region, key=key, keyid=keyid,
                         profile=profile)
      if group:
          return True
      else:
          return False
docs: Check to see if a security group exists.
  
      CLI example::
  
          salt myminion boto_secgroup.exists mysecgroup