mirror of https://github.com/pulumi/pulumi.git
26 lines
940 B
TypeScript
26 lines
940 B
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 { ResourceArgs } from "./resource";
|
|
export type Resource = import("./resource").Resource;
|
|
export const Resource: typeof import("./resource").Resource = null as any;
|
|
utilities.lazyLoad(exports, ["Resource"], () => require("./resource"));
|
|
|
|
|
|
const _module = {
|
|
version: utilities.getVersion(),
|
|
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
switch (type) {
|
|
case "foo:nested/module:Resource":
|
|
return new Resource(name, <any>undefined, { urn })
|
|
default:
|
|
throw new Error(`unknown resource type ${type}`);
|
|
}
|
|
},
|
|
};
|
|
pulumi.runtime.registerResourceModule("foo", "nested/module", _module)
|