def is_resource_class_resource_attribute(rc, attr_name):
    """
    Checks if the given attribute name is a resource attribute (i.e., either
    a member or a collection attribute) of the given registered resource.
    """
    attr = get_resource_class_attribute(rc, attr_name)
    return attr != RESOURCE_ATTRIBUTE_KINDS.TERMINAL
Checks if the given attribute name is a resource attribute (i.e., either
    a member or a collection attribute) of the given registered resource.