Checks if the given attribute name is a terminal attribute of the given
    registered resource.

def is_resource_class_terminal_attribute(rc, attr_name):
    """
    Checks if the given attribute name is a terminal attribute of the given
    registered resource.
    """
    attr = get_resource_class_attribute(rc, attr_name)
    return attr.kind == RESOURCE_ATTRIBUTE_KINDS.TERMINAL