def parameter_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_db_parameter_groups(DBParameterGroupName=name)
  return {'exists': bool(rds), 'error': None}
 except ClientError as e:
  resp = {}
  if (e.response['Error']['Code'] == 'DBParameterGroupNotFound'):
   resp['exists'] = False
  resp['error'] = salt.utils.boto3.get_error(e)
  return resp

def parameter_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_db_parameter_groups ( DBParameterGroupName = name ) return { 'exists' : bool ( rds ) , 'error' : None } except ClientError as e : resp = { } if ( e . response [ 'Error' ] [ 'Code' ] == 'DBParameterGroupNotFound' ) : resp [ 'exists' ] = False resp [ 'error' ] = salt . utils . boto3 . get_error ( e ) return resp
check to see if an rds parameter group exists .