'Initialise a new Resource identifier.
The identifier is based on the identifier components of
the owning stack and the resource name.'

def __init__(self, tenant, stack_name, stack_id, path, resource_name=None):

    if (resource_name is not None):
        if ('/' in resource_name):
            raise ValueError(_('Resource    name    may    not    contain    "/"'))
        path = '/'.join([path.rstrip('/'), 'resources', resource_name])
    super(ResourceIdentifier, self).__init__(tenant, stack_name, stack_id, path)
