def _get_resource_id(resource, name, region=None, key=None, keyid=None, profile=None):
 _id = _cache_id(name, sub_resource=resource, region=region, key=key, keyid=keyid, profile=profile)
 if _id:
  return _id
 r = _get_resource(resource, name=name, region=region, key=key, keyid=keyid, profile=profile)
 if r:
  return r.id

def _get_resource_id ( resource , name , region = None , key = None , keyid = None , profile = None ) : _id = _cache_id ( name , sub_resource = resource , region = region , key = key , keyid = keyid , profile = profile ) if _id : return _id r = _get_resource ( resource , name = name , region = region , key = key , keyid = keyid , profile = profile ) if r : return r . id
helper method to find the resource id .