# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

# Export this package's modules as members:
from .endpoint_event_grid import *
from .endpoint_event_hub import *
from .endpoint_servicebus import *
from .get_instance import *
from .instance import *

def _register_module():
    import pulumi
    from .. import _utilities


    class Module(pulumi.runtime.ResourceModule):
        _version = _utilities.get_semver_version()

        def version(self):
            return Module._version

        def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
            if typ == "azure:digitaltwins/endpointEventGrid:EndpointEventGrid":
                return EndpointEventGrid(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:digitaltwins/endpointEventHub:EndpointEventHub":
                return EndpointEventHub(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:digitaltwins/endpointServicebus:EndpointServicebus":
                return EndpointServicebus(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:digitaltwins/instance:Instance":
                return Instance(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("azure", "digitaltwins/endpointEventGrid", _module_instance)
    pulumi.runtime.register_resource_module("azure", "digitaltwins/endpointEventHub", _module_instance)
    pulumi.runtime.register_resource_module("azure", "digitaltwins/endpointServicebus", _module_instance)
    pulumi.runtime.register_resource_module("azure", "digitaltwins/instance", _module_instance)

_register_module()
