def get_resource_id(resource, name=None, resource_id=None, region=None, key=None, keyid=None, profile=None):
 try:
  return {'id': _get_resource_id(resource, name, region=region, key=key, keyid=keyid, profile=profile)}
 except BotoServerError as e:
  return {'error': salt.utils.boto.get_error(e)}

def get_resource_id ( resource , name = None , resource_id = None , region = None , key = None , keyid = None , profile = None ) : try : return { 'id' : _get_resource_id ( resource , name , region = region , key = key , keyid = keyid , profile = profile ) } except BotoServerError as e : return { 'error' : salt . utils . boto . get_error ( e ) }
get an aws id for a vpc resource by type and name .