@pulumi/hcl 0.0.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1 @@
1
- # @pulumi/hcl
2
-
3
- Placeholder release. Real versions of this package are published from
4
- [pulumi/pulumi-hcl](https://github.com/pulumi/pulumi-hcl) — install a
5
- version `>= 0.13.0` (or simply `latest` once the first real release lands).
1
+ Instantiate a Terraform/OpenTofu module as a Pulumi component.
package/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export { ModuleArgs } from "./module";
2
+ export type Module = import("./module").Module;
3
+ export declare const Module: typeof import("./module").Module;
4
+ export { ProviderArgs } from "./provider";
5
+ export type Provider = import("./provider").Provider;
6
+ export declare const Provider: typeof import("./provider").Provider;
7
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,MAAM,MAAM,MAAM,GAAG,OAAO,UAAU,EAAE,MAAM,CAAC;AAC/C,eAAO,MAAM,MAAM,EAAE,cAAc,UAAU,EAAE,MAAoB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,OAAO,YAAY,EAAE,QAAQ,CAAC;AACrD,eAAO,MAAM,QAAQ,EAAE,cAAc,YAAY,EAAE,QAAsB,CAAC"}
package/index.js ADDED
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Provider = exports.Module = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ exports.Module = null;
32
+ utilities.lazyLoad(exports, ["Module"], () => require("./module"));
33
+ exports.Provider = null;
34
+ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
35
+ const _module = {
36
+ version: utilities.getVersion(),
37
+ construct: (name, type, urn) => {
38
+ switch (type) {
39
+ case "hcl:index:Module":
40
+ return new exports.Module(name, undefined, { urn });
41
+ default:
42
+ throw new Error(`unknown resource type ${type}`);
43
+ }
44
+ },
45
+ };
46
+ pulumi.runtime.registerResourceModule("hcl", "index", _module);
47
+ pulumi.runtime.registerResourcePackage("hcl", {
48
+ version: utilities.getVersion(),
49
+ constructProvider: (name, type, urn) => {
50
+ if (type !== "pulumi:providers:hcl") {
51
+ throw new Error(`unknown provider type ${type}`);
52
+ }
53
+ return new exports.Provider(name, undefined, { urn });
54
+ },
55
+ });
56
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","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,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/module.d.ts ADDED
@@ -0,0 +1,59 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A Terraform/OpenTofu module instantiated as a component resource.
4
+ */
5
+ export declare class Module extends pulumi.ComponentResource {
6
+ /**
7
+ * Returns true if the given object is an instance of Module. This is designed to work even
8
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
9
+ */
10
+ static isInstance(obj: any): obj is Module;
11
+ /**
12
+ * The module's input variables, keyed by variable name.
13
+ */
14
+ readonly inputs: pulumi.Output<{
15
+ [key: string]: any;
16
+ } | undefined>;
17
+ /**
18
+ * The module's output values, keyed by output name.
19
+ */
20
+ readonly outputs: pulumi.Output<{
21
+ [key: string]: any;
22
+ }>;
23
+ /**
24
+ * The module source address (a registry reference, URL, or local path).
25
+ */
26
+ readonly source: pulumi.Output<string | undefined>;
27
+ /**
28
+ * An optional version constraint, used when source is a registry module reference.
29
+ */
30
+ readonly version: pulumi.Output<string | undefined>;
31
+ /**
32
+ * Create a Module resource with the given unique name, arguments, and options.
33
+ *
34
+ * @param name The _unique_ name of the resource.
35
+ * @param args The arguments to use to populate this resource's properties.
36
+ * @param opts A bag of options that control this resource's behavior.
37
+ */
38
+ constructor(name: string, args: ModuleArgs, opts?: pulumi.ComponentResourceOptions);
39
+ }
40
+ /**
41
+ * The set of arguments for constructing a Module resource.
42
+ */
43
+ export interface ModuleArgs {
44
+ /**
45
+ * The module's input variables, keyed by variable name.
46
+ */
47
+ inputs?: pulumi.Input<{
48
+ [key: string]: any;
49
+ } | undefined>;
50
+ /**
51
+ * The module source address (a registry reference, URL, or local path).
52
+ */
53
+ source: string;
54
+ /**
55
+ * An optional version constraint, used when source is a registry module reference.
56
+ */
57
+ version?: string;
58
+ }
59
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,MAAO,SAAQ,MAAM,CAAC,iBAAiB;IAIhD;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM;IAOjD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IAChF;;OAEG;IACH,SAAgC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC,CAAC;IAC7E;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEnE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;CAoBrF;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACxD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
package/module.js ADDED
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Module = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * A Terraform/OpenTofu module instantiated as a component resource.
33
+ */
34
+ class Module extends pulumi.ComponentResource {
35
+ /** @internal */
36
+ static __pulumiType = 'hcl:index:Module';
37
+ /**
38
+ * Returns true if the given object is an instance of Module. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj) {
42
+ if (obj === undefined || obj === null) {
43
+ return false;
44
+ }
45
+ return obj['__pulumiType'] === Module.__pulumiType;
46
+ }
47
+ /**
48
+ * Create a Module resource with the given unique name, arguments, and options.
49
+ *
50
+ * @param name The _unique_ name of the resource.
51
+ * @param args The arguments to use to populate this resource's properties.
52
+ * @param opts A bag of options that control this resource's behavior.
53
+ */
54
+ constructor(name, args, opts) {
55
+ let resourceInputs = {};
56
+ opts = opts || {};
57
+ if (!opts.id) {
58
+ if (args?.source === undefined && !opts.urn) {
59
+ throw new Error("Missing required property 'source'");
60
+ }
61
+ resourceInputs["inputs"] = args?.inputs;
62
+ resourceInputs["source"] = args?.source;
63
+ resourceInputs["version"] = args?.version;
64
+ resourceInputs["outputs"] = undefined /*out*/;
65
+ }
66
+ else {
67
+ resourceInputs["inputs"] = undefined /*out*/;
68
+ resourceInputs["outputs"] = undefined /*out*/;
69
+ resourceInputs["source"] = undefined /*out*/;
70
+ resourceInputs["version"] = undefined /*out*/;
71
+ }
72
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
73
+ super(Module.__pulumiType, name, resourceInputs, opts, true /*remote*/);
74
+ }
75
+ }
76
+ exports.Module = Module;
77
+ //# sourceMappingURL=module.js.map
package/module.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../module.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,iBAAiB;IAChD,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kBAAkB,CAAC;IAEzD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IAmBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAgB,EAAE,IAAsC;QAC9E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;aAAM;YACH,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5E,CAAC;;AA1DL,wBA2DC"}
package/package.json CHANGED
@@ -1,7 +1,22 @@
1
1
  {
2
- "name": "@pulumi/hcl",
3
- "version": "0.0.0",
4
- "description": "Placeholder; real releases publish from pulumi/pulumi-hcl",
5
- "license": "Apache-2.0",
6
- "repository": "github:pulumi/pulumi-hcl"
2
+ "name": "@pulumi/hcl",
3
+ "version": "0.13.0",
4
+ "repository": "https://github.com/pulumi/pulumi-hcl",
5
+ "license": "Apache-2.0",
6
+ "scripts": {
7
+ "build": "tsc"
8
+ },
9
+ "dependencies": {
10
+ "@pulumi/pulumi": "^3.142.0"
11
+ },
12
+ "devDependencies": {
13
+ "@types/node": "^20",
14
+ "typescript": "^4.7.0"
15
+ },
16
+ "pulumi": {
17
+ "resource": true,
18
+ "name": "hcl",
19
+ "version": "0.13.0",
20
+ "server": "github://api.github.com/pulumi/pulumi-hcl"
21
+ }
7
22
  }
package/provider.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Provider extends pulumi.ProviderResource {
3
+ /**
4
+ * Returns true if the given object is an instance of Provider. This is designed to work even
5
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
6
+ */
7
+ static isInstance(obj: any): obj is Provider;
8
+ /**
9
+ * Create a Provider resource with the given unique name, arguments, and options.
10
+ *
11
+ * @param name The _unique_ name of the resource.
12
+ * @param args The arguments to use to populate this resource's properties.
13
+ * @param opts A bag of options that control this resource's behavior.
14
+ */
15
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
16
+ }
17
+ /**
18
+ * The set of arguments for constructing a Provider resource.
19
+ */
20
+ export interface ProviderArgs {
21
+ }
22
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC,qBAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;IAQnD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,eAAe;CAQ/E;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;CAC5B"}
package/provider.js ADDED
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Provider = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class Provider extends pulumi.ProviderResource {
32
+ /** @internal */
33
+ static __pulumiType = 'hcl';
34
+ /**
35
+ * Returns true if the given object is an instance of Provider. This is designed to work even
36
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
37
+ */
38
+ static isInstance(obj) {
39
+ if (obj === undefined || obj === null) {
40
+ return false;
41
+ }
42
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
43
+ }
44
+ /**
45
+ * Create a Provider resource with the given unique name, arguments, and options.
46
+ *
47
+ * @param name The _unique_ name of the resource.
48
+ * @param args The arguments to use to populate this resource's properties.
49
+ * @param opts A bag of options that control this resource's behavior.
50
+ */
51
+ constructor(name, args, opts) {
52
+ let resourceInputs = {};
53
+ opts = opts || {};
54
+ {
55
+ }
56
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
57
+ super(Provider.__pulumiType, name, resourceInputs, opts);
58
+ }
59
+ }
60
+ exports.Provider = Provider;
61
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IACjD,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC;IAE5C;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;SACC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9BL,4BA+BC"}
package/utilities.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export declare function getEnv(...vars: string[]): string | undefined;
2
+ export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
3
+ export declare function getEnvNumber(...vars: string[]): number | undefined;
4
+ export declare function getVersion(): string;
5
+ //# sourceMappingURL=utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":"AAOA,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ5D;AAED,wBAAgB,aAAa,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAapE;AAED,wBAAgB,YAAY,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CASlE;AAED,wBAAgB,UAAU,IAAI,MAAM,CAQnC"}
package/utilities.js ADDED
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
29
+ const runtime = __importStar(require("@pulumi/pulumi/runtime"));
30
+ function getEnv(...vars) {
31
+ for (const v of vars) {
32
+ const value = process.env[v];
33
+ if (value) {
34
+ return value;
35
+ }
36
+ }
37
+ return undefined;
38
+ }
39
+ exports.getEnv = getEnv;
40
+ function getEnvBoolean(...vars) {
41
+ const s = getEnv(...vars);
42
+ if (s !== undefined) {
43
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
44
+ // Terraform uses internally when parsing boolean values.
45
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
46
+ return true;
47
+ }
48
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
49
+ return false;
50
+ }
51
+ }
52
+ return undefined;
53
+ }
54
+ exports.getEnvBoolean = getEnvBoolean;
55
+ function getEnvNumber(...vars) {
56
+ const s = getEnv(...vars);
57
+ if (s !== undefined) {
58
+ const f = parseFloat(s);
59
+ if (!isNaN(f)) {
60
+ return f;
61
+ }
62
+ }
63
+ return undefined;
64
+ }
65
+ exports.getEnvNumber = getEnvNumber;
66
+ function getVersion() {
67
+ let version = require('./package.json').version;
68
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
69
+ // If there is a v, strip it off.
70
+ if (version.indexOf('v') === 0) {
71
+ version = version.slice(1);
72
+ }
73
+ return version;
74
+ }
75
+ exports.getVersion = getVersion;
76
+ /** @internal */
77
+ function resourceOptsDefaults() {
78
+ return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumi/pulumi-hcl" };
79
+ }
80
+ exports.resourceOptsDefaults = resourceOptsDefaults;
81
+ /** @internal */
82
+ function lazyLoad(exports, props, loadModule) {
83
+ for (let property of props) {
84
+ Object.defineProperty(exports, property, {
85
+ enumerable: true,
86
+ get: function () {
87
+ return loadModule()[property];
88
+ },
89
+ });
90
+ }
91
+ }
92
+ exports.lazyLoad = lazyLoad;
93
+ /** @internal */
94
+ async function callAsync(tok, props, res, opts) {
95
+ const o = runtime.call(tok, props, res);
96
+ const value = await o.promise(true /*withUnknowns*/);
97
+ const isKnown = await o.isKnown;
98
+ const isSecret = await o.isSecret;
99
+ const problem = !isKnown ? "an unknown value"
100
+ : isSecret ? "a secret value"
101
+ : undefined;
102
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
103
+ if (problem) {
104
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
105
+ "This is an error in the provider, please report this to the provider developer.");
106
+ }
107
+ // Extract a single property if requested.
108
+ if (opts && opts.property) {
109
+ return value[opts.property];
110
+ }
111
+ return value;
112
+ }
113
+ exports.callAsync = callAsync;
114
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjF,gEAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC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