How to use the pulumi.runtime.register_resource_module function in pulumi

To help you get started, we’ve selected a few pulumi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pulumi / pulumi-google-native / sdk / python / pulumi_google_native / recommendationengine / v1beta1 / __init__.py View on Github external
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 == "google-native:recommendationengine/v1beta1:CatalogItem":
                return CatalogItem(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-native", "recommendationengine/v1beta1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / deploymentmanager / v2beta / __init__.py View on Github external
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
            if typ == "google-cloud:deploymentmanager/v2beta:CompositeType":
                return CompositeType(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:deploymentmanager/v2beta:Deployment":
                return Deployment(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:deploymentmanager/v2beta:DeploymentIamPolicy":
                return DeploymentIamPolicy(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:deploymentmanager/v2beta:TypeProvider":
                return TypeProvider(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "deploymentmanager/v2beta", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_native / storagetransfer / v1 / __init__.py View on Github external
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 == "google-native:storagetransfer/v1:TransferJob":
                return TransferJob(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-native", "storagetransfer/v1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / dataflow / v1b3 / __init__.py View on Github external
_version = _utilities.get_semver_version()

        def version(self):
            return Module._version

        def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
            if typ == "google-cloud:dataflow/v1b3:Job":
                return Job(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:dataflow/v1b3:Template":
                return Template(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "dataflow/v1b3", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / cloudasset / v1 / __init__.py View on Github external
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 == "google-cloud:cloudasset/v1:Feed":
                return Feed(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "cloudasset/v1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / bigqueryreservation / v1 / __init__.py View on Github external
def version(self):
            return Module._version

        def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
            if typ == "google-cloud:bigqueryreservation/v1:CapacityCommitment":
                return CapacityCommitment(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:bigqueryreservation/v1:Reservation":
                return Reservation(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:bigqueryreservation/v1:ReservationAssignment":
                return ReservationAssignment(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "bigqueryreservation/v1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_gcp_native / toolresults / v1beta3 / __init__.py View on Github external
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
            if typ == "gcp-native:toolresults/v1beta3:History":
                return History(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "gcp-native:toolresults/v1beta3:HistoryExecution":
                return HistoryExecution(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "gcp-native:toolresults/v1beta3:HistoryExecutionStep":
                return HistoryExecutionStep(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "gcp-native:toolresults/v1beta3:HistoryExecutionStepPerfSampleSeries":
                return HistoryExecutionStepPerfSampleSeries(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("gcp-native", "toolresults/v1beta3", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / cloudresourcemanager / v3 / __init__.py View on Github external
elif typ == "google-cloud:cloudresourcemanager/v3:TagBinding":
                return TagBinding(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:cloudresourcemanager/v3:TagKey":
                return TagKey(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:cloudresourcemanager/v3:TagKeyIamPolicy":
                return TagKeyIamPolicy(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:cloudresourcemanager/v3:TagValue":
                return TagValue(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:cloudresourcemanager/v3:TagValueIamPolicy":
                return TagValueIamPolicy(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "cloudresourcemanager/v3", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / eventarc / v1 / __init__.py View on Github external
_version = _utilities.get_semver_version()

        def version(self):
            return Module._version

        def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
            if typ == "google-cloud:eventarc/v1:Trigger":
                return Trigger(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:eventarc/v1:TriggerIamPolicy":
                return TriggerIamPolicy(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "eventarc/v1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_native / pubsublite / v1 / __init__.py View on Github external
_version = _utilities.get_semver_version()

        def version(self):
            return Module._version

        def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
            if typ == "google-native:pubsublite/v1:Subscription":
                return Subscription(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-native:pubsublite/v1:Topic":
                return Topic(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-native", "pubsublite/v1", _module_instance)