# 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 .active_directory_administrator import *
from .configuration import *
from .database import *
from .firewall_rule import *
from .get_server import *
from .server import *
from .server_key import *
from .virtual_network_rule import *
from ._inputs import *
from . import outputs

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:mysql/activeDirectoryAdministrator:ActiveDirectoryAdministrator":
                return ActiveDirectoryAdministrator(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:mysql/configuration:Configuration":
                return Configuration(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:mysql/database:Database":
                return Database(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:mysql/firewallRule:FirewallRule":
                return FirewallRule(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:mysql/server:Server":
                return Server(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:mysql/serverKey:ServerKey":
                return ServerKey(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "azure:mysql/virtualNetworkRule:VirtualNetworkRule":
                return VirtualNetworkRule(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("azure", "mysql/activeDirectoryAdministrator", _module_instance)
    pulumi.runtime.register_resource_module("azure", "mysql/configuration", _module_instance)
    pulumi.runtime.register_resource_module("azure", "mysql/database", _module_instance)
    pulumi.runtime.register_resource_module("azure", "mysql/firewallRule", _module_instance)
    pulumi.runtime.register_resource_module("azure", "mysql/server", _module_instance)
    pulumi.runtime.register_resource_module("azure", "mysql/serverKey", _module_instance)
    pulumi.runtime.register_resource_module("azure", "mysql/virtualNetworkRule", _module_instance)

_register_module()
