def option_group_exists(name, tags=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  rds = conn.describe_option_groups(OptionGroupName=name)
  return {'exists': bool(rds)}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def option_group_exists ( name , tags = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : rds = conn . describe_option_groups ( OptionGroupName = name ) return { 'exists' : bool ( rds ) } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
check to see if an rds option group exists .