How to use the pulumi.runtime 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 / testing / v1 / __init__.py View on Github external
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 == "google-native:testing/v1:TestMatrix":
                return TestMatrix(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-native", "testing/v1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_native / iap / 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-native:iap/v1:Brand":
                return Brand(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-native:iap/v1:IdentityAwareProxyClient":
                return IdentityAwareProxyClient(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-native:iap/v1:V1IamPolicy":
                return V1IamPolicy(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


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


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-native", "gkehub/v1beta1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / monitoring / v3 / __init__.py View on Github external
elif typ == "google-cloud:monitoring/v3:NotificationChannel":
                return NotificationChannel(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:monitoring/v3:Service":
                return Service(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:monitoring/v3:ServiceServiceLevelObjective":
                return ServiceServiceLevelObjective(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:monitoring/v3:TimeSeries":
                return TimeSeries(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:monitoring/v3:UptimeCheckConfig":
                return UptimeCheckConfig(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


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


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


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "cloudtrace/v2beta1", _module_instance)
github pulumi / pulumi-aws / sdk / python / pulumi_aws / ec2 / get_local_gateway_virtual_interface_groups.py View on Github external
all = aws.ec2.get_local_gateway_virtual_interface_groups()
    ```


    :param Sequence[pulumi.InputType['GetLocalGatewayVirtualInterfaceGroupsFilterArgs']] filters: One or more configuration blocks containing name-values filters. See the [EC2 API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGatewayVirtualInterfaceGroups.html) for supported filters. Detailed below.
    :param Mapping[str, str] tags: Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
    """
    __args__ = dict()
    __args__['filters'] = filters
    __args__['tags'] = tags
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('aws:ec2/getLocalGatewayVirtualInterfaceGroups:getLocalGatewayVirtualInterfaceGroups', __args__, opts=opts, typ=GetLocalGatewayVirtualInterfaceGroupsResult).value

    return AwaitableGetLocalGatewayVirtualInterfaceGroupsResult(
        filters=__ret__.filters,
        id=__ret__.id,
        ids=__ret__.ids,
        local_gateway_virtual_interface_ids=__ret__.local_gateway_virtual_interface_ids,
        tags=__ret__.tags)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_native / cloudtrace / v2beta1 / __init__.py View on Github external
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 == "google-native:cloudtrace/v2beta1:TraceSink":
                return TraceSink(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-native", "cloudtrace/v2beta1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_cloud / cloudresourcemanager / v1beta1 / __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:cloudresourcemanager/v1beta1:OrganizationIamPolicy":
                return OrganizationIamPolicy(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:cloudresourcemanager/v1beta1:Project":
                return Project(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-cloud:cloudresourcemanager/v1beta1:ProjectIamPolicy":
                return ProjectIamPolicy(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-cloud", "cloudresourcemanager/v1beta1", _module_instance)
github pulumi / pulumi-google-native / sdk / python / pulumi_google_native / domains / v1beta1 / __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:domains/v1beta1:Registration":
                return Registration(name, pulumi.ResourceOptions(urn=urn))
            elif typ == "google-native:domains/v1beta1:RegistrationIamPolicy":
                return RegistrationIamPolicy(name, pulumi.ResourceOptions(urn=urn))
            else:
                raise Exception(f"unknown resource type {typ}")


    _module_instance = Module()
    pulumi.runtime.register_resource_module("google-native", "domains/v1beta1", _module_instance)