'Returns the resource definition portion of the group.
:param include_all: if False, only properties for the resource
definition that are not empty will be included
:type include_all: bool
:return: resource definition for the group
:rtype: dict'

def get_resource_def(self, include_all=False):

    def ignore_param_resolve(snippet):
        if isinstance(snippet, function.Function):
            try:
                return snippet.result()
            except exception.UserParameterMissing:
                return None
        if isinstance(snippet, collections.Mapping):
            return dict(((k, ignore_param_resolve(v)) for (k, v) in snippet.items()))
        elif ((not isinstance(snippet, six.string_types)) and isinstance(snippet, collections.Iterable)):
            return [ignore_param_resolve(v) for v in snippet]
        return snippet
    self.properties.resolve = ignore_param_resolve
    res_def = self.properties[self.RESOURCE_DEF]
    if (not include_all):
        return self._clean_props(res_def)
    return res_def
