pulumi/tests/testdata/codegen/urn-id-properties/nodejs/index.ts

52 lines
1.8 KiB
TypeScript

// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
// Export members:
export { ProviderArgs } from "./provider";
export type Provider = import("./provider").Provider;
export const Provider: typeof import("./provider").Provider = null as any;
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
export { ResArgs } from "./res";
export type Res = import("./res").Res;
export const Res: typeof import("./res").Res = null as any;
utilities.lazyLoad(exports, ["Res"], () => require("./res"));
export { TestArgs, TestResult, TestOutputArgs } from "./test";
export const test: typeof import("./test").test = null as any;
export const testOutput: typeof import("./test").testOutput = null as any;
utilities.lazyLoad(exports, ["test","testOutput"], () => require("./test"));
// Export sub-modules:
import * as types from "./types";
export {
types,
};
const _module = {
version: utilities.getVersion(),
construct: (name: string, type: string, urn: string): pulumi.Resource => {
switch (type) {
case "urnid:index:Res":
return new Res(name, <any>undefined, { urn })
default:
throw new Error(`unknown resource type ${type}`);
}
},
};
pulumi.runtime.registerResourceModule("urnid", "index", _module)
pulumi.runtime.registerResourcePackage("urnid", {
version: utilities.getVersion(),
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
if (type !== "pulumi:providers:urnid") {
throw new Error(`unknown provider type ${type}`);
}
return new Provider(name, <any>undefined, { urn });
},
});