code: def subnet_group_exists(name, tags=None, region=None, key=None, keyid=None,
                          profile=None):
      '''
      Check to see if an RDS subnet group exists.
  
      CLI example::
  
          salt myminion boto_rds.subnet_group_exists my-param-group \
                  region=us-east-1
      '''
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          if not conn:
              return {'exists': bool(conn)}
  
          rds = conn.describe_db_subnet_groups(DBSubnetGroupName=name)
          return {'exists': bool(rds)}
      except ClientError as e:
          if "DBSubnetGroupNotFoundFault" in e.message:
              return {'exists': False}
          else:
              return {'error': __utils__['boto3.get_error'](e)f subnet_group_exists(name, tags=None, region=None, key=None, keyid=None,
                          profile=None):
      '''
      Check to see if an RDS subnet group exists.
  
      CLI example::
  
          salt myminion boto_rds.subnet_group_exists my-param-group \
                  region=us-east-1
      '''
      try:
          conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
          if not conn:
              return {'exists': bool(conn)}
  
          rds = conn.describe_db_subnet_groups(DBSubnetGroupName=name)
          return {'exists': bool(rds)}
      except ClientError as e:
          if "DBSubnetGroupNotFoundFault" in e.message:
              return {'exists': False}
          else:
              return {'error': __utils__['boto3.get_error'](e)}
docs: Check to see if an RDS subnet group exists.
  
      CLI example::
  
          salt myminion boto_rds.subnet_group_exists my-param-group \
                  region=us-east-1