@pulumi/cloudinit 1.0.0-alpha.1618657164 → 1.0.0-alpha.1768022748

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
@@ -34,7 +34,7 @@ To use from Python, install using `pip`:
34
34
 
35
35
  To use from Go, use `go get` to grab the latest version of the library
36
36
 
37
- $ go get github.com/pulumi/pulumi-cloudinit/sdk/go/...
37
+ $ go get github.com/pulumi/pulumi-cloudinit/sdk
38
38
 
39
39
  ### .NET
40
40
 
package/config.d.ts CHANGED
@@ -1,5 +1,26 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * > **This resource is deprecated** Please use the cloudinit.Config
6
+ * data source instead.
7
+ *
8
+ * Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
9
+ *
10
+ * Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
11
+ *
12
+ * This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ### Config
17
+ *
18
+ * ### hello-script.sh
19
+ *
20
+ * ### cloud-config.yaml
21
+ *
22
+ * <!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
23
+ */
3
24
  export declare class Config extends pulumi.CustomResource {
4
25
  /**
5
26
  * Get an existing Config resource's state with the given name, ID, and optional extra
@@ -16,12 +37,24 @@ export declare class Config extends pulumi.CustomResource {
16
37
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
17
38
  */
18
39
  static isInstance(obj: any): obj is Config;
19
- readonly base64Encode: pulumi.Output<boolean | undefined>;
20
- readonly boundary: pulumi.Output<string | undefined>;
21
- readonly gzip: pulumi.Output<boolean | undefined>;
22
- readonly parts: pulumi.Output<outputs.ConfigPart[]>;
23
40
  /**
24
- * rendered cloudinit configuration
41
+ * Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
42
+ */
43
+ readonly base64Encode: pulumi.Output<boolean>;
44
+ /**
45
+ * Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
46
+ */
47
+ readonly boundary: pulumi.Output<string>;
48
+ /**
49
+ * Specify whether or not to gzip the `rendered` output. Defaults to `true`.
50
+ */
51
+ readonly gzip: pulumi.Output<boolean>;
52
+ /**
53
+ * A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
54
+ */
55
+ readonly parts: pulumi.Output<outputs.ConfigPart[] | undefined>;
56
+ /**
57
+ * The final rendered multi-part cloud-init config.
25
58
  */
26
59
  readonly rendered: pulumi.Output<string>;
27
60
  /**
@@ -31,27 +64,51 @@ export declare class Config extends pulumi.CustomResource {
31
64
  * @param args The arguments to use to populate this resource's properties.
32
65
  * @param opts A bag of options that control this resource's behavior.
33
66
  */
34
- constructor(name: string, args: ConfigArgs, opts?: pulumi.CustomResourceOptions);
67
+ constructor(name: string, args?: ConfigArgs, opts?: pulumi.CustomResourceOptions);
35
68
  }
36
69
  /**
37
70
  * Input properties used for looking up and filtering Config resources.
38
71
  */
39
72
  export interface ConfigState {
40
- readonly base64Encode?: pulumi.Input<boolean>;
41
- readonly boundary?: pulumi.Input<string>;
42
- readonly gzip?: pulumi.Input<boolean>;
43
- readonly parts?: pulumi.Input<pulumi.Input<inputs.ConfigPart>[]>;
44
73
  /**
45
- * rendered cloudinit configuration
74
+ * Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
75
+ */
76
+ base64Encode?: pulumi.Input<boolean>;
77
+ /**
78
+ * Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
79
+ */
80
+ boundary?: pulumi.Input<string>;
81
+ /**
82
+ * Specify whether or not to gzip the `rendered` output. Defaults to `true`.
83
+ */
84
+ gzip?: pulumi.Input<boolean>;
85
+ /**
86
+ * A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
46
87
  */
47
- readonly rendered?: pulumi.Input<string>;
88
+ parts?: pulumi.Input<pulumi.Input<inputs.ConfigPart>[]>;
89
+ /**
90
+ * The final rendered multi-part cloud-init config.
91
+ */
92
+ rendered?: pulumi.Input<string>;
48
93
  }
49
94
  /**
50
95
  * The set of arguments for constructing a Config resource.
51
96
  */
52
97
  export interface ConfigArgs {
53
- readonly base64Encode?: pulumi.Input<boolean>;
54
- readonly boundary?: pulumi.Input<string>;
55
- readonly gzip?: pulumi.Input<boolean>;
56
- readonly parts: pulumi.Input<pulumi.Input<inputs.ConfigPart>[]>;
98
+ /**
99
+ * Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
100
+ */
101
+ base64Encode?: pulumi.Input<boolean>;
102
+ /**
103
+ * Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
104
+ */
105
+ boundary?: pulumi.Input<string>;
106
+ /**
107
+ * Specify whether or not to gzip the `rendered` output. Defaults to `true`.
108
+ */
109
+ gzip?: pulumi.Input<boolean>;
110
+ /**
111
+ * A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
112
+ */
113
+ parts?: pulumi.Input<pulumi.Input<inputs.ConfigPart>[]>;
57
114
  }
package/config.js CHANGED
@@ -1,37 +1,31 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Config = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
8
+ /**
9
+ * > **This resource is deprecated** Please use the cloudinit.Config
10
+ * data source instead.
11
+ *
12
+ * Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
13
+ *
14
+ * Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
15
+ *
16
+ * This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
17
+ *
18
+ * ## Example Usage
19
+ *
20
+ * ### Config
21
+ *
22
+ * ### hello-script.sh
23
+ *
24
+ * ### cloud-config.yaml
25
+ *
26
+ * <!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
27
+ */
7
28
  class Config extends pulumi.CustomResource {
8
- constructor(name, argsOrState, opts) {
9
- let inputs = {};
10
- opts = opts || {};
11
- if (opts.id) {
12
- const state = argsOrState;
13
- inputs["base64Encode"] = state ? state.base64Encode : undefined;
14
- inputs["boundary"] = state ? state.boundary : undefined;
15
- inputs["gzip"] = state ? state.gzip : undefined;
16
- inputs["parts"] = state ? state.parts : undefined;
17
- inputs["rendered"] = state ? state.rendered : undefined;
18
- }
19
- else {
20
- const args = argsOrState;
21
- if ((!args || args.parts === undefined) && !opts.urn) {
22
- throw new Error("Missing required property 'parts'");
23
- }
24
- inputs["base64Encode"] = args ? args.base64Encode : undefined;
25
- inputs["boundary"] = args ? args.boundary : undefined;
26
- inputs["gzip"] = args ? args.gzip : undefined;
27
- inputs["parts"] = args ? args.parts : undefined;
28
- inputs["rendered"] = undefined /*out*/;
29
- }
30
- if (!opts.version) {
31
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
32
- }
33
- super(Config.__pulumiType, name, inputs, opts);
34
- }
35
29
  /**
36
30
  * Get an existing Config resource's state with the given name, ID, and optional extra
37
31
  * properties used to qualify the lookup.
@@ -42,7 +36,7 @@ class Config extends pulumi.CustomResource {
42
36
  * @param opts Optional settings to control the behavior of the CustomResource.
43
37
  */
44
38
  static get(name, id, state, opts) {
45
- return new Config(name, state, Object.assign(Object.assign({}, opts), { id: id }));
39
+ return new Config(name, state, { ...opts, id: id });
46
40
  }
47
41
  /**
48
42
  * Returns true if the given object is an instance of Config. This is designed to work even
@@ -54,6 +48,28 @@ class Config extends pulumi.CustomResource {
54
48
  }
55
49
  return obj['__pulumiType'] === Config.__pulumiType;
56
50
  }
51
+ constructor(name, argsOrState, opts) {
52
+ let resourceInputs = {};
53
+ opts = opts || {};
54
+ if (opts.id) {
55
+ const state = argsOrState;
56
+ resourceInputs["base64Encode"] = state?.base64Encode;
57
+ resourceInputs["boundary"] = state?.boundary;
58
+ resourceInputs["gzip"] = state?.gzip;
59
+ resourceInputs["parts"] = state?.parts;
60
+ resourceInputs["rendered"] = state?.rendered;
61
+ }
62
+ else {
63
+ const args = argsOrState;
64
+ resourceInputs["base64Encode"] = args?.base64Encode;
65
+ resourceInputs["boundary"] = args?.boundary;
66
+ resourceInputs["gzip"] = args?.gzip;
67
+ resourceInputs["parts"] = args?.parts;
68
+ resourceInputs["rendered"] = undefined /*out*/;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ super(Config.__pulumiType, name, resourceInputs, opts);
72
+ }
57
73
  }
58
74
  exports.Config = Config;
59
75
  /** @internal */
package/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../config.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFA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AAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;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,CAAC,CAAC;IAC3D,CAAC;;AA7EL,wBA8EC;AAhEG,gBAAgB;AACO,mBAAY,GAAG,+BAA+B,CAAC"}
package/getConfig.d.ts CHANGED
@@ -1,76 +1,110 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
3
4
  /**
4
- * Renders a [multipart MIME configuration](https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive)
5
- * for use with [cloud-init](https://cloudinit.readthedocs.io/).
5
+ * Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
6
6
  *
7
- * Cloud-init is a commonly-used startup configuration utility for cloud compute
8
- * instances. It accepts configuration via provider-specific user data mechanisms,
9
- * such as `userData` for Amazon EC2 instances. Multipart MIME is one of the
10
- * data formats it accepts. For more information, see
11
- * [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/topics/format.html)
12
- * in the cloud-init manual.
7
+ * Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
13
8
  *
14
- * This is not a generalized utility for producing multipart MIME messages. Its
15
- * featureset is specialized for the features of cloud-init.
9
+ * This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
16
10
  *
17
11
  * ## Example Usage
18
12
  *
19
- * ```typescript
20
- * import * as pulumi from "@pulumi/pulumi";
21
- * import * as cloudinit from "@pulumi/cloudinit";
13
+ * ### Config
22
14
  *
23
- * const foo = pulumi.output(cloudinit.getConfig({
24
- * base64Encode: false,
25
- * gzip: false,
26
- * parts: [{
27
- * content: "baz",
28
- * contentType: "text/x-shellscript",
29
- * filename: "foobar.sh",
30
- * }],
31
- * }, { async: true }));
32
- * ```
15
+ * ### hello-script.sh
16
+ *
17
+ * ### cloud-config.yaml
18
+ *
19
+ * <!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
33
20
  */
34
- export declare function getConfig(args: GetConfigArgs, opts?: pulumi.InvokeOptions): Promise<GetConfigResult>;
21
+ export declare function getConfig(args?: GetConfigArgs, opts?: pulumi.InvokeOptions): Promise<GetConfigResult>;
35
22
  /**
36
23
  * A collection of arguments for invoking getConfig.
37
24
  */
38
25
  export interface GetConfigArgs {
39
26
  /**
40
- * Base64 encoding of the rendered output. Defaults to `true`,
41
- * and cannot be disabled if `gzip` is `true`.
27
+ * Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
42
28
  */
43
- readonly base64Encode?: boolean;
29
+ base64Encode?: boolean;
44
30
  /**
45
- * Define the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
31
+ * Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
46
32
  */
47
- readonly boundary?: string;
33
+ boundary?: string;
48
34
  /**
49
- * Specify whether or not to gzip the rendered output. Defaults to `true`.
35
+ * Specify whether or not to gzip the `rendered` output. Defaults to `true`.
50
36
  */
51
- readonly gzip?: boolean;
37
+ gzip?: boolean;
52
38
  /**
53
- * A nested block type which adds a file to the generated
54
- * cloud-init configuration. Use multiple `part` blocks to specify multiple
55
- * files, which will be included in order of declaration in the final MIME
56
- * document.
39
+ * A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
57
40
  */
58
- readonly parts: inputs.GetConfigPart[];
41
+ parts?: inputs.GetConfigPart[];
59
42
  }
60
43
  /**
61
44
  * A collection of values returned by getConfig.
62
45
  */
63
46
  export interface GetConfigResult {
64
- readonly base64Encode?: boolean;
65
- readonly boundary?: string;
66
- readonly gzip?: boolean;
67
47
  /**
68
- * The provider-assigned unique ID for this managed resource.
48
+ * Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
49
+ */
50
+ readonly base64Encode: boolean;
51
+ /**
52
+ * Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
53
+ */
54
+ readonly boundary: string;
55
+ /**
56
+ * Specify whether or not to gzip the `rendered` output. Defaults to `true`.
57
+ */
58
+ readonly gzip: boolean;
59
+ /**
60
+ * [CRC-32](https://pkg.go.dev/hash/crc32) checksum of `rendered` cloud-init config.
69
61
  */
70
62
  readonly id: string;
71
- readonly parts: outputs.GetConfigPart[];
63
+ /**
64
+ * A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
65
+ */
66
+ readonly parts?: outputs.GetConfigPart[];
72
67
  /**
73
68
  * The final rendered multi-part cloud-init config.
74
69
  */
75
70
  readonly rendered: string;
76
71
  }
72
+ /**
73
+ * Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
74
+ *
75
+ * Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
76
+ *
77
+ * This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
78
+ *
79
+ * ## Example Usage
80
+ *
81
+ * ### Config
82
+ *
83
+ * ### hello-script.sh
84
+ *
85
+ * ### cloud-config.yaml
86
+ *
87
+ * <!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
88
+ */
89
+ export declare function getConfigOutput(args?: GetConfigOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetConfigResult>;
90
+ /**
91
+ * A collection of arguments for invoking getConfig.
92
+ */
93
+ export interface GetConfigOutputArgs {
94
+ /**
95
+ * Specify whether or not to base64 encode the `rendered` output. Defaults to `true`, and cannot be disabled if gzip is `true`.
96
+ */
97
+ base64Encode?: pulumi.Input<boolean>;
98
+ /**
99
+ * Specify the Writer's default boundary separator. Defaults to `MIMEBOUNDARY`.
100
+ */
101
+ boundary?: pulumi.Input<string>;
102
+ /**
103
+ * Specify whether or not to gzip the `rendered` output. Defaults to `true`.
104
+ */
105
+ gzip?: pulumi.Input<boolean>;
106
+ /**
107
+ * A nested block type which adds a file to the generated cloud-init configuration. Use multiple `part` blocks to specify multiple files, which will be included in order of declaration in the final MIME document.
108
+ */
109
+ parts?: pulumi.Input<pulumi.Input<inputs.GetConfigPartArgs>[]>;
110
+ }
package/getConfig.js CHANGED
@@ -1,47 +1,30 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getConfigOutput = exports.getConfig = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
8
- * Renders a [multipart MIME configuration](https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive)
9
- * for use with [cloud-init](https://cloudinit.readthedocs.io/).
9
+ * Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
10
10
  *
11
- * Cloud-init is a commonly-used startup configuration utility for cloud compute
12
- * instances. It accepts configuration via provider-specific user data mechanisms,
13
- * such as `userData` for Amazon EC2 instances. Multipart MIME is one of the
14
- * data formats it accepts. For more information, see
15
- * [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/topics/format.html)
16
- * in the cloud-init manual.
11
+ * Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
17
12
  *
18
- * This is not a generalized utility for producing multipart MIME messages. Its
19
- * featureset is specialized for the features of cloud-init.
13
+ * This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
20
14
  *
21
15
  * ## Example Usage
22
16
  *
23
- * ```typescript
24
- * import * as pulumi from "@pulumi/pulumi";
25
- * import * as cloudinit from "@pulumi/cloudinit";
26
- *
27
- * const foo = pulumi.output(cloudinit.getConfig({
28
- * base64Encode: false,
29
- * gzip: false,
30
- * parts: [{
31
- * content: "baz",
32
- * contentType: "text/x-shellscript",
33
- * filename: "foobar.sh",
34
- * }],
35
- * }, { async: true }));
36
- * ```
17
+ * ### Config
18
+ *
19
+ * ### hello-script.sh
20
+ *
21
+ * ### cloud-config.yaml
22
+ *
23
+ * <!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
37
24
  */
38
25
  function getConfig(args, opts) {
39
- if (!opts) {
40
- opts = {};
41
- }
42
- if (!opts.version) {
43
- opts.version = utilities.getVersion();
44
- }
26
+ args = args || {};
27
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
45
28
  return pulumi.runtime.invoke("cloudinit:index/getConfig:getConfig", {
46
29
  "base64Encode": args.base64Encode,
47
30
  "boundary": args.boundary,
@@ -50,4 +33,32 @@ function getConfig(args, opts) {
50
33
  }, opts);
51
34
  }
52
35
  exports.getConfig = getConfig;
36
+ /**
37
+ * Renders a [multi-part MIME configuration](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#mime-multi-part-archive) for use with [cloud-init](https://cloudinit.readthedocs.io/en/latest/).
38
+ *
39
+ * Cloud-init is a commonly-used startup configuration utility for cloud compute instances. It accepts configuration via provider-specific user data mechanisms, such as `userData` for Amazon EC2 instances. Multi-part MIME is one of the data formats it accepts. For more information, see [User-Data Formats](https://cloudinit.readthedocs.io/en/latest/explanation/format.html) in the cloud-init manual.
40
+ *
41
+ * This is not a generalized utility for producing multi-part MIME messages. Its feature set is specialized for cloud-init multi-part MIME messages.
42
+ *
43
+ * ## Example Usage
44
+ *
45
+ * ### Config
46
+ *
47
+ * ### hello-script.sh
48
+ *
49
+ * ### cloud-config.yaml
50
+ *
51
+ * <!-- This schema was originally generated with tfplugindocs, then modified manually to ensure `part` block list is noted as Required -->
52
+ */
53
+ function getConfigOutput(args, opts) {
54
+ args = args || {};
55
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
56
+ return pulumi.runtime.invokeOutput("cloudinit:index/getConfig:getConfig", {
57
+ "base64Encode": args.base64Encode,
58
+ "boundary": args.boundary,
59
+ "gzip": args.gzip,
60
+ "parts": args.parts,
61
+ }, opts);
62
+ }
63
+ exports.getConfigOutput = getConfigOutput;
53
64
  //# sourceMappingURL=getConfig.js.map
package/getConfig.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getConfig.js","sourceRoot":"","sources":["../getConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAA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,YAAY,CAAC,qCAAqC,EAAE;QACtE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC"}
package/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
- export * from "./config";
2
- export * from "./getConfig";
1
+ export { ConfigArgs, ConfigState } from "./config";
2
+ export type Config = import("./config").Config;
3
+ export declare const Config: typeof import("./config").Config;
4
+ export { GetConfigArgs, GetConfigResult, GetConfigOutputArgs } from "./getConfig";
5
+ export declare const getConfig: typeof import("./getConfig").getConfig;
6
+ export declare const getConfigOutput: typeof import("./getConfig").getConfigOutput;
3
7
  export * from "./provider";
4
8
  import * as types from "./types";
5
9
  export { types, };
package/index.js CHANGED
@@ -1,34 +1,46 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- function __export(m) {
5
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
6
- }
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
7
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.types = exports.getConfigOutput = exports.getConfig = exports.Config = void 0;
8
20
  const pulumi = require("@pulumi/pulumi");
9
21
  const utilities = require("./utilities");
10
- // Export members:
11
- __export(require("./config"));
12
- __export(require("./getConfig"));
13
- __export(require("./provider"));
22
+ exports.Config = null;
23
+ utilities.lazyLoad(exports, ["Config"], () => require("./config"));
24
+ exports.getConfig = null;
25
+ exports.getConfigOutput = null;
26
+ utilities.lazyLoad(exports, ["getConfig", "getConfigOutput"], () => require("./getConfig"));
27
+ __exportStar(require("./provider"), exports);
28
+ const provider_1 = require("./provider");
14
29
  // Export sub-modules:
15
30
  const types = require("./types");
16
31
  exports.types = types;
17
- // Import resources to register:
18
- const config_1 = require("./config");
19
32
  const _module = {
20
33
  version: utilities.getVersion(),
21
34
  construct: (name, type, urn) => {
22
35
  switch (type) {
23
36
  case "cloudinit:index/config:Config":
24
- return new config_1.Config(name, undefined, { urn });
37
+ return new exports.Config(name, undefined, { urn });
25
38
  default:
26
39
  throw new Error(`unknown resource type ${type}`);
27
40
  }
28
41
  },
29
42
  };
30
43
  pulumi.runtime.registerResourceModule("cloudinit", "index/config", _module);
31
- const provider_1 = require("./provider");
32
44
  pulumi.runtime.registerResourcePackage("cloudinit", {
33
45
  version: utilities.getVersion(),
34
46
  constructProvider: (name, type, urn) => {
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,8BAAyB;AACzB,iCAA4B;AAC5B,gCAA2B;AAE3B,sBAAsB;AACtB,iCAAiC;AAG7B,sBAAK;AAGT,gCAAgC;AAChC,qCAAkC;AAElC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IA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,CAAC,aAAa,CAAC,CAAC,CAAC;AAE3F,6CAA2B;AAC3B,yCAAsC;AAGtC,sBAAsB;AACtB,iCAAiC;AAG7B,sBAAK;AAGT,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,+BAA+B;gBAChC,OAAO,IAAI,cAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,WAAW,EAAE;IAChD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,4BAA4B,EAAE;YACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/cloudinit",
3
- "version": "v1.0.0-alpha.1618657164+cf3b5185",
3
+ "version": "1.0.0-alpha.1768022748",
4
4
  "description": "A Pulumi package for creating and managing cloudinit cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -10,17 +10,19 @@
10
10
  "repository": "https://github.com/pulumi/pulumi-cloudinit",
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
- "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource cloudinit v1.0.0-alpha.1618657164+cf3b5185"
13
+ "build": "tsc"
15
14
  },
16
15
  "dependencies": {
17
- "@pulumi/pulumi": "^3.0.0-alpha.0"
16
+ "@pulumi/pulumi": "^3.142.0"
18
17
  },
19
18
  "devDependencies": {
20
19
  "@types/mime": "^2.0.0",
21
- "@types/node": "^10.0.0"
20
+ "@types/node": "^10.0.0",
21
+ "typescript": "^4.3.5"
22
22
  },
23
23
  "pulumi": {
24
- "resource": true
24
+ "resource": true,
25
+ "name": "cloudinit",
26
+ "version": "1.0.0-alpha.1768022748"
25
27
  }
26
28
  }
package/provider.d.ts CHANGED
@@ -19,9 +19,23 @@ export declare class Provider extends pulumi.ProviderResource {
19
19
  * @param opts A bag of options that control this resource's behavior.
20
20
  */
21
21
  constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
22
+ /**
23
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
24
+ */
25
+ terraformConfig(): pulumi.Output<Provider.TerraformConfigResult>;
22
26
  }
23
27
  /**
24
28
  * The set of arguments for constructing a Provider resource.
25
29
  */
26
30
  export interface ProviderArgs {
27
31
  }
32
+ export declare namespace Provider {
33
+ /**
34
+ * The results of the Provider.terraformConfig method.
35
+ */
36
+ interface TerraformConfigResult {
37
+ readonly result: {
38
+ [key: string]: any;
39
+ };
40
+ }
41
+ }
package/provider.js CHANGED
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Provider = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -11,6 +12,16 @@ const utilities = require("./utilities");
11
12
  * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
12
13
  */
13
14
  class Provider extends pulumi.ProviderResource {
15
+ /**
16
+ * Returns true if the given object is an instance of Provider. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj) {
20
+ if (obj === undefined || obj === null) {
21
+ return false;
22
+ }
23
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
24
+ }
14
25
  /**
15
26
  * Create a Provider resource with the given unique name, arguments, and options.
16
27
  *
@@ -19,24 +30,20 @@ class Provider extends pulumi.ProviderResource {
19
30
  * @param opts A bag of options that control this resource's behavior.
20
31
  */
21
32
  constructor(name, args, opts) {
22
- let inputs = {};
33
+ let resourceInputs = {};
23
34
  opts = opts || {};
24
35
  {
25
36
  }
26
- if (!opts.version) {
27
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
28
- }
29
- super(Provider.__pulumiType, name, inputs, opts);
37
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
38
+ super(Provider.__pulumiType, name, resourceInputs, opts);
30
39
  }
31
40
  /**
32
- * Returns true if the given object is an instance of Provider. This is designed to work even
33
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
34
42
  */
35
- static isInstance(obj) {
36
- if (obj === undefined || obj === null) {
37
- return false;
38
- }
39
- return obj['__pulumiType'] === Provider.__pulumiType;
43
+ terraformConfig() {
44
+ return pulumi.runtime.call("pulumi:providers:cloudinit/terraformConfig", {
45
+ "__self__": this,
46
+ }, this);
40
47
  }
41
48
  }
42
49
  exports.Provider = Provider;
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GA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E,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;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE;YACrE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AAvCL,4BAwCC;AAvCG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
package/types/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.output = exports.input = void 0;
5
6
  // Export sub-modules:
6
7
  const input = require("./input");
7
8
  exports.input = input;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
package/types/input.d.ts CHANGED
@@ -1,8 +1,20 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  export interface ConfigPart {
3
+ /**
4
+ * Body content for the part.
5
+ */
3
6
  content: pulumi.Input<string>;
7
+ /**
8
+ * A MIME-style content type to report in the header for the part. Defaults to `text/plain`
9
+ */
4
10
  contentType?: pulumi.Input<string>;
11
+ /**
12
+ * A filename to report in the header for the part.
13
+ */
5
14
  filename?: pulumi.Input<string>;
15
+ /**
16
+ * A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
17
+ */
6
18
  mergeType?: pulumi.Input<string>;
7
19
  }
8
20
  export interface GetConfigPart {
@@ -11,7 +23,7 @@ export interface GetConfigPart {
11
23
  */
12
24
  content: string;
13
25
  /**
14
- * A MIME-style content type to report in the header for the part.
26
+ * A MIME-style content type to report in the header for the part. Defaults to `text/plain`
15
27
  */
16
28
  contentType?: string;
17
29
  /**
@@ -19,8 +31,33 @@ export interface GetConfigPart {
19
31
  */
20
32
  filename?: string;
21
33
  /**
22
- * A value for the `X-Merge-Type` header of the part,
23
- * to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/topics/merging.html).
34
+ * A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
24
35
  */
25
36
  mergeType?: string;
26
37
  }
38
+ /**
39
+ * getConfigPartProvideDefaults sets the appropriate defaults for GetConfigPart
40
+ */
41
+ export declare function getConfigPartProvideDefaults(val: GetConfigPart): GetConfigPart;
42
+ export interface GetConfigPartArgs {
43
+ /**
44
+ * Body content for the part.
45
+ */
46
+ content: pulumi.Input<string>;
47
+ /**
48
+ * A MIME-style content type to report in the header for the part. Defaults to `text/plain`
49
+ */
50
+ contentType?: pulumi.Input<string>;
51
+ /**
52
+ * A filename to report in the header for the part.
53
+ */
54
+ filename?: pulumi.Input<string>;
55
+ /**
56
+ * A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
57
+ */
58
+ mergeType?: pulumi.Input<string>;
59
+ }
60
+ /**
61
+ * getConfigPartArgsProvideDefaults sets the appropriate defaults for GetConfigPartArgs
62
+ */
63
+ export declare function getConfigPartArgsProvideDefaults(val: GetConfigPartArgs): GetConfigPartArgs;
package/types/input.js CHANGED
@@ -1,5 +1,26 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getConfigPartArgsProvideDefaults = exports.getConfigPartProvideDefaults = void 0;
6
+ /**
7
+ * getConfigPartProvideDefaults sets the appropriate defaults for GetConfigPart
8
+ */
9
+ function getConfigPartProvideDefaults(val) {
10
+ return {
11
+ ...val,
12
+ contentType: (val.contentType) ?? "text/plain",
13
+ };
14
+ }
15
+ exports.getConfigPartProvideDefaults = getConfigPartProvideDefaults;
16
+ /**
17
+ * getConfigPartArgsProvideDefaults sets the appropriate defaults for GetConfigPartArgs
18
+ */
19
+ function getConfigPartArgsProvideDefaults(val) {
20
+ return {
21
+ ...val,
22
+ contentType: (val.contentType) ?? "text/plain",
23
+ };
24
+ }
25
+ exports.getConfigPartArgsProvideDefaults = getConfigPartArgsProvideDefaults;
5
26
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AA6CjF;;GAEG;AACH,SAAgB,4BAA4B,CAAC,GAAkB;IAC3D,OAAO;QACH,GAAG,GAAG;QACN,WAAW,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,YAAY;KACjD,CAAC;AACN,CAAC;AALD,oEAKC;AAoBD;;GAEG;AACH,SAAgB,gCAAgC,CAAC,GAAsB;IACnE,OAAO;QACH,GAAG,GAAG;QACN,WAAW,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,YAAY;KACjD,CAAC;AACN,CAAC;AALD,4EAKC"}
package/types/output.d.ts CHANGED
@@ -1,7 +1,19 @@
1
1
  export interface ConfigPart {
2
+ /**
3
+ * Body content for the part.
4
+ */
2
5
  content: string;
3
- contentType?: string;
6
+ /**
7
+ * A MIME-style content type to report in the header for the part. Defaults to `text/plain`
8
+ */
9
+ contentType: string;
10
+ /**
11
+ * A filename to report in the header for the part.
12
+ */
4
13
  filename?: string;
14
+ /**
15
+ * A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
16
+ */
5
17
  mergeType?: string;
6
18
  }
7
19
  export interface GetConfigPart {
@@ -10,7 +22,7 @@ export interface GetConfigPart {
10
22
  */
11
23
  content: string;
12
24
  /**
13
- * A MIME-style content type to report in the header for the part.
25
+ * A MIME-style content type to report in the header for the part. Defaults to `text/plain`
14
26
  */
15
27
  contentType?: string;
16
28
  /**
@@ -18,8 +30,11 @@ export interface GetConfigPart {
18
30
  */
19
31
  filename?: string;
20
32
  /**
21
- * A value for the `X-Merge-Type` header of the part,
22
- * to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/topics/merging.html).
33
+ * A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
23
34
  */
24
35
  mergeType?: string;
25
36
  }
37
+ /**
38
+ * getConfigPartProvideDefaults sets the appropriate defaults for GetConfigPart
39
+ */
40
+ export declare function getConfigPartProvideDefaults(val: GetConfigPart): GetConfigPart;
package/types/output.js CHANGED
@@ -1,5 +1,16 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getConfigPartProvideDefaults = void 0;
6
+ /**
7
+ * getConfigPartProvideDefaults sets the appropriate defaults for GetConfigPart
8
+ */
9
+ function getConfigPartProvideDefaults(val) {
10
+ return {
11
+ ...val,
12
+ contentType: (val.contentType) ?? "text/plain",
13
+ };
14
+ }
15
+ exports.getConfigPartProvideDefaults = getConfigPartProvideDefaults;
5
16
  //# sourceMappingURL=output.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AA6CjF;;GAEG;AACH,SAAgB,4BAA4B,CAAC,GAAkB;IAC3D,OAAO;QACH,GAAG,GAAG;QACN,WAAW,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,YAAY;KACjD,CAAC;AACN,CAAC;AALD,oEAKC"}
package/utilities.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
6
+ const runtime = require("@pulumi/pulumi/runtime");
5
7
  function getEnv(...vars) {
6
8
  for (const v of vars) {
7
9
  const value = process.env[v];
@@ -48,4 +50,42 @@ function getVersion() {
48
50
  return version;
49
51
  }
50
52
  exports.getVersion = getVersion;
53
+ /** @internal */
54
+ function resourceOptsDefaults() {
55
+ return { version: getVersion() };
56
+ }
57
+ exports.resourceOptsDefaults = resourceOptsDefaults;
58
+ /** @internal */
59
+ function lazyLoad(exports, props, loadModule) {
60
+ for (let property of props) {
61
+ Object.defineProperty(exports, property, {
62
+ enumerable: true,
63
+ get: function () {
64
+ return loadModule()[property];
65
+ },
66
+ });
67
+ }
68
+ }
69
+ exports.lazyLoad = lazyLoad;
70
+ /** @internal */
71
+ async function callAsync(tok, props, res, opts) {
72
+ const o = runtime.call(tok, props, res);
73
+ const value = await o.promise(true /*withUnknowns*/);
74
+ const isKnown = await o.isKnown;
75
+ const isSecret = await o.isSecret;
76
+ const problem = !isKnown ? "an unknown value"
77
+ : isSecret ? "a secret value"
78
+ : undefined;
79
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
80
+ if (problem) {
81
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
82
+ "This is an error in the provider, please report this to the provider developer.");
83
+ }
84
+ // Extract a single property if requested.
85
+ if (opts && opts.property) {
86
+ return value[opts.property];
87
+ }
88
+ return value;
89
+ }
90
+ exports.callAsync = callAsync;
51
91
  //# sourceMappingURL=utilities.js.map
package/utilities.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAGjF,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,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K,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;YAC9E,iFAAiF,CAAC,CAAC;KAC1F;IACD,0CAA0C;IAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;QACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC/B;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAxBD,8BAwBC"}
package/package.json.bak DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "name": "@pulumi/cloudinit",
3
- "version": "${VERSION}",
4
- "description": "A Pulumi package for creating and managing cloudinit cloud resources.",
5
- "keywords": [
6
- "pulumi",
7
- "cloudinit"
8
- ],
9
- "homepage": "https://pulumi.io",
10
- "repository": "https://github.com/pulumi/pulumi-cloudinit",
11
- "license": "Apache-2.0",
12
- "scripts": {
13
- "build": "tsc"
14
- },
15
- "dependencies": {
16
- "@pulumi/pulumi": "^3.0.0-alpha.0"
17
- },
18
- "devDependencies": {
19
- "@types/mime": "^2.0.0",
20
- "@types/node": "^10.0.0"
21
- },
22
- "pulumi": {
23
- "resource": true
24
- }
25
- }
package/package.json.dev DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "name": "@pulumi/cloudinit",
3
- "version": "v1.0.0-alpha.1618657164+cf3b5185",
4
- "description": "A Pulumi package for creating and managing cloudinit cloud resources.",
5
- "keywords": [
6
- "pulumi",
7
- "cloudinit"
8
- ],
9
- "homepage": "https://pulumi.io",
10
- "repository": "https://github.com/pulumi/pulumi-cloudinit",
11
- "license": "Apache-2.0",
12
- "scripts": {
13
- "build": "tsc"
14
- },
15
- "dependencies": {
16
- "@pulumi/pulumi": "^3.0.0-alpha.0"
17
- },
18
- "devDependencies": {
19
- "@types/mime": "^2.0.0",
20
- "@types/node": "^10.0.0"
21
- },
22
- "pulumi": {
23
- "resource": true
24
- }
25
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var childProcess = require("child_process");
3
-
4
- var args = process.argv.slice(2);
5
- var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
6
- stdio: ["ignore", "inherit", "inherit"]
7
- });
8
-
9
- if (res.error && res.error.code === "ENOENT") {
10
- console.error("\nThere was an error installing the resource provider plugin. " +
11
- "It looks like `pulumi` is not installed on your system. " +
12
- "Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
13
- "You may try manually installing the plugin by running " +
14
- "`pulumi plugin install " + args.join(" ") + "`");
15
- } else if (res.error || res.status !== 0) {
16
- console.error("\nThere was an error installing the resource provider plugin. " +
17
- "You may try to manually installing the plugin by running " +
18
- "`pulumi plugin install " + args.join(" ") + "`");
19
- }
20
-
21
- process.exit(0);