def check_vpc(vpc_id=None, vpc_name=None, region=None, key=None, keyid=None, profile=None):
 if (not _exactly_one((vpc_name, vpc_id))):
  raise SaltInvocationError('One (but not both) of vpc_id or vpc_name must be provided.')
 if vpc_name:
  vpc_id = _get_id(vpc_name=vpc_name, region=region, key=key, keyid=keyid, profile=profile)
 elif (not _find_vpcs(vpc_id=vpc_id, region=region, key=key, keyid=keyid, profile=profile)):
  log.info('VPC {0} does not exist.'.format(vpc_id))
  return None
 return vpc_id

def check_vpc ( vpc_id = None , vpc_name = None , region = None , key = None , keyid = None , profile = None ) : if ( not _exactly_one ( ( vpc_name , vpc_id ) ) ) : raise SaltInvocationError ( 'One (but not both) of vpc_id or vpc_name must be provided.' ) if vpc_name : vpc_id = _get_id ( vpc_name = vpc_name , region = region , key = key , keyid = keyid , profile = profile ) elif ( not _find_vpcs ( vpc_id = vpc_id , region = region , key = key , keyid = keyid , profile = profile ) ) : log . info ( 'VPC {0} does not exist.' . format ( vpc_id ) ) return None return vpc_id
check whether a vpc with the given name or id exists .