def __init__(self, *modules):
self.resource_types = {}<EOL>for module in modules:<EOL><INDENT>for _, resource_class in inspect.getmembers(module,<EOL>lambda cls: inspect.isclass(cls) and<EOL>cls.__module__ == module.__name__ and<EOL>hasattr(cls, '<STR_LIT>')):<EOL><INDENT>self.resource_types[resource_class.resource_type] = resource_class<EOL><DEDENT><DEDENT>
Initializes the ResourceTypeResolver from the given modules.

        :param modules: one or more Python modules containing Resource definitions