@pulumi/command 0.0.4-alpha.1646714993 → 0.1.0-alpha.1779516124

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.
Files changed (68) hide show
  1. package/README.md +101 -16
  2. package/index.d.ts +4 -1
  3. package/index.d.ts.map +1 -0
  4. package/index.js +21 -13
  5. package/index.js.map +1 -1
  6. package/local/command.d.ts +346 -18
  7. package/local/command.d.ts.map +1 -0
  8. package/local/command.js +148 -40
  9. package/local/command.js.map +1 -1
  10. package/local/index.d.ts +8 -1
  11. package/local/index.d.ts.map +1 -0
  12. package/local/index.js +24 -8
  13. package/local/index.js.map +1 -1
  14. package/local/run.d.ts +392 -0
  15. package/local/run.d.ts.map +1 -0
  16. package/local/run.js +69 -0
  17. package/local/run.js.map +1 -0
  18. package/package.json +8 -5
  19. package/package.json.dev +7 -4
  20. package/provider.d.ts +1 -0
  21. package/provider.d.ts.map +1 -0
  22. package/provider.js +39 -18
  23. package/provider.js.map +1 -1
  24. package/remote/command.d.ts +156 -16
  25. package/remote/command.d.ts.map +1 -0
  26. package/remote/command.js +125 -39
  27. package/remote/command.js.map +1 -1
  28. package/remote/copyFile.d.ts +7 -2
  29. package/remote/copyFile.d.ts.map +1 -0
  30. package/remote/copyFile.js +65 -37
  31. package/remote/copyFile.js.map +1 -1
  32. package/remote/copyToRemote.d.ts +126 -0
  33. package/remote/copyToRemote.d.ts.map +1 -0
  34. package/remote/copyToRemote.js +157 -0
  35. package/remote/copyToRemote.js.map +1 -0
  36. package/remote/index.d.ts +11 -2
  37. package/remote/index.d.ts.map +1 -0
  38. package/remote/index.js +28 -11
  39. package/remote/index.js.map +1 -1
  40. package/types/enums/index.d.ts +4 -0
  41. package/types/enums/index.d.ts.map +1 -0
  42. package/types/enums/index.js +34 -0
  43. package/types/enums/index.js.map +1 -0
  44. package/types/enums/local/index.d.ts +20 -0
  45. package/types/enums/local/index.d.ts.map +1 -0
  46. package/types/enums/local/index.js +24 -0
  47. package/types/enums/local/index.js.map +1 -0
  48. package/types/enums/remote/index.d.ts +20 -0
  49. package/types/enums/remote/index.d.ts.map +1 -0
  50. package/types/enums/remote/index.js +24 -0
  51. package/types/enums/remote/index.js.map +1 -0
  52. package/types/index.d.ts +3 -1
  53. package/types/index.d.ts.map +1 -0
  54. package/types/index.js +29 -4
  55. package/types/index.js.map +1 -1
  56. package/types/input.d.ts +80 -5
  57. package/types/input.d.ts.map +1 -0
  58. package/types/input.js +47 -3
  59. package/types/input.js.map +1 -1
  60. package/types/output.d.ts +76 -1
  61. package/types/output.d.ts.map +1 -0
  62. package/types/output.js +46 -3
  63. package/types/output.js.map +1 -1
  64. package/utilities.d.ts +1 -0
  65. package/utilities.d.ts.map +1 -0
  66. package/utilities.js +64 -2
  67. package/utilities.js.map +1 -1
  68. package/package.json.bak +0 -25
package/provider.js CHANGED
@@ -1,11 +1,46 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by pulumigen. ***
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
+ 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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.Provider = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
8
31
  class Provider extends pulumi.ProviderResource {
32
+ /** @internal */
33
+ static __pulumiType = 'command';
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
+ }
9
44
  /**
10
45
  * Create a Provider resource with the given unique name, arguments, and options.
11
46
  *
@@ -18,23 +53,9 @@ class Provider extends pulumi.ProviderResource {
18
53
  opts = opts || {};
19
54
  {
20
55
  }
21
- if (!opts.version) {
22
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
23
- }
56
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
24
57
  super(Provider.__pulumiType, name, resourceInputs, opts);
25
58
  }
26
- /**
27
- * Returns true if the given object is an instance of Provider. This is designed to work even
28
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
- */
30
- static isInstance(obj) {
31
- if (obj === undefined || obj === null) {
32
- return false;
33
- }
34
- return obj['__pulumiType'] === Provider.__pulumiType;
35
- }
36
59
  }
37
60
  exports.Provider = Provider;
38
- /** @internal */
39
- Provider.__pulumiType = 'command';
40
61
  //# sourceMappingURL=provider.js.map
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,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;;;;;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"}
@@ -1,8 +1,65 @@
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
+ import * as enums from "../types/enums";
3
5
  /**
4
- * A command to run on a remote host.
5
- * The connection is established via ssh.
6
+ * A command to run on a remote host. The connection is established via ssh.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ### A Basic Example
11
+ * This program connects to a server and runs the `hostname` command. The output is then available via the `stdout` property.
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as command from "@pulumi/command";
16
+ *
17
+ * const config = new pulumi.Config();
18
+ * const server = config.require("server");
19
+ * const userName = config.require("userName");
20
+ * const privateKey = config.require("privateKey");
21
+ *
22
+ * const hostnameCmd = new command.remote.Command("hostnameCmd", {
23
+ * create: "hostname",
24
+ * connection: {
25
+ * host: server,
26
+ * user: userName,
27
+ * privateKey: privateKey,
28
+ * },
29
+ * });
30
+ * export const hostname = hostnameCmd.stdout;
31
+ * ```
32
+ *
33
+ * ### Triggers
34
+ * This example defines several trigger values of various kinds. Changes to any of them will cause `cmd` to be re-run.
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as command from "@pulumi/command";
39
+ * import * as random from "@pulumi/random";
40
+ *
41
+ * const str = "foo";
42
+ * const fileAsset = new pulumi.asset.FileAsset("Pulumi.yaml");
43
+ * const rand = new random.RandomString("rand", {length: 5});
44
+ * const localFile = new command.local.Command("localFile", {
45
+ * create: "touch foo.txt",
46
+ * archivePaths: ["*.txt"],
47
+ * });
48
+ * const cmd = new command.remote.Command("cmd", {
49
+ * connection: {
50
+ * host: "insert host here",
51
+ * },
52
+ * create: "echo create > op.txt",
53
+ * delete: "echo delete >> op.txt",
54
+ * triggers: [
55
+ * str,
56
+ * rand.result,
57
+ * fileAsset,
58
+ * localFile.archive,
59
+ * ],
60
+ * });
61
+ *
62
+ * ```
6
63
  */
7
64
  export declare class Command extends pulumi.CustomResource {
8
65
  /**
@@ -20,23 +77,46 @@ export declare class Command extends pulumi.CustomResource {
20
77
  */
21
78
  static isInstance(obj: any): obj is Command;
22
79
  /**
23
- * The parameters with which to connect to the remote host
80
+ * If the previous command's stdout and stderr (as generated by the prior create/update) is
81
+ * injected into the environment of the next run as PULUMI_COMMAND_STDOUT and PULUMI_COMMAND_STDERR.
82
+ * Defaults to true.
24
83
  */
25
- readonly connection: pulumi.Output<outputs.remote.Connection | undefined>;
84
+ readonly addPreviousOutputInEnv: pulumi.Output<boolean | undefined>;
26
85
  /**
27
- * The command to run on create.
86
+ * The parameters with which to connect to the remote host.
87
+ */
88
+ readonly connection: pulumi.Output<outputs.remote.Connection>;
89
+ /**
90
+ * The command to run once on resource creation.
91
+ *
92
+ * If an `update` command isn't provided, then `create` will also be run when the resource's inputs are modified.
93
+ *
94
+ * Note that this command will not be executed if the resource has already been created and its inputs are unchanged.
95
+ *
96
+ * Use `local.runOutput` if you need to run a command on every execution of your program.
28
97
  */
29
98
  readonly create: pulumi.Output<string | undefined>;
30
99
  /**
31
- * The command to run on delete.
100
+ * The command to run on resource deletion.
101
+ *
102
+ * The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the stdout and stderr properties of the Command resource from previous create or update steps.
32
103
  */
33
104
  readonly delete: pulumi.Output<string | undefined>;
34
105
  /**
35
106
  * Additional environment variables available to the command's process.
107
+ * Note that this only works if the SSH server is configured to accept these variables via AcceptEnv.
108
+ * Alternatively, if a Bash-like shell runs the command on the remote host, you could prefix the command itself
109
+ * with the variables in the form 'VAR=value command'.
36
110
  */
37
111
  readonly environment: pulumi.Output<{
38
112
  [key: string]: string;
39
113
  } | undefined>;
114
+ /**
115
+ * If the command's stdout and stderr should be logged. This doesn't affect the capturing of
116
+ * stdout and stderr as outputs. If there might be secrets in the output, you can disable logging here and mark the
117
+ * outputs as secret via 'additionalSecretOutputs'. Defaults to logging both stdout and stderr.
118
+ */
119
+ readonly logging: pulumi.Output<enums.remote.Logging | undefined>;
40
120
  /**
41
121
  * The standard error of the command's process
42
122
  */
@@ -50,9 +130,27 @@ export declare class Command extends pulumi.CustomResource {
50
130
  */
51
131
  readonly stdout: pulumi.Output<string>;
52
132
  /**
53
- * Trigger replacements on changes to this input.
133
+ * The resource will be updated (or replaced) if any of these values change.
134
+ *
135
+ * The trigger values can be of any type.
136
+ *
137
+ * If the `update` command was provided the resource will be updated, otherwise it will be replaced using the `create` command.
138
+ *
139
+ * Please see the resource documentation for examples.
54
140
  */
55
141
  readonly triggers: pulumi.Output<any[] | undefined>;
142
+ /**
143
+ * The command to run when the resource is updated.
144
+ *
145
+ * If empty, the create command will be executed instead.
146
+ *
147
+ * Note that this command will not run if the resource's inputs are unchanged.
148
+ *
149
+ * Use `local.runOutput` if you need to run a command on every execution of your program.
150
+ *
151
+ * The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the `stdout` and `stderr` properties of the Command resource from previous create or update steps.
152
+ */
153
+ readonly update: pulumi.Output<string | undefined>;
56
154
  /**
57
155
  * Create a Command resource with the given unique name, arguments, and options.
58
156
  *
@@ -66,30 +164,72 @@ export declare class Command extends pulumi.CustomResource {
66
164
  * The set of arguments for constructing a Command resource.
67
165
  */
68
166
  export interface CommandArgs {
167
+ /**
168
+ * If the previous command's stdout and stderr (as generated by the prior create/update) is
169
+ * injected into the environment of the next run as PULUMI_COMMAND_STDOUT and PULUMI_COMMAND_STDERR.
170
+ * Defaults to true.
171
+ */
172
+ addPreviousOutputInEnv?: pulumi.Input<boolean | undefined>;
69
173
  /**
70
174
  * The parameters with which to connect to the remote host.
71
175
  */
72
176
  connection: pulumi.Input<inputs.remote.ConnectionArgs>;
73
177
  /**
74
- * The command to run on create.
178
+ * The command to run once on resource creation.
179
+ *
180
+ * If an `update` command isn't provided, then `create` will also be run when the resource's inputs are modified.
181
+ *
182
+ * Note that this command will not be executed if the resource has already been created and its inputs are unchanged.
183
+ *
184
+ * Use `local.runOutput` if you need to run a command on every execution of your program.
75
185
  */
76
- create?: pulumi.Input<string>;
186
+ create?: pulumi.Input<string | undefined>;
77
187
  /**
78
- * The command to run on delete.
188
+ * The command to run on resource deletion.
189
+ *
190
+ * The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the stdout and stderr properties of the Command resource from previous create or update steps.
79
191
  */
80
- delete?: pulumi.Input<string>;
192
+ delete?: pulumi.Input<string | undefined>;
81
193
  /**
82
194
  * Additional environment variables available to the command's process.
195
+ * Note that this only works if the SSH server is configured to accept these variables via AcceptEnv.
196
+ * Alternatively, if a Bash-like shell runs the command on the remote host, you could prefix the command itself
197
+ * with the variables in the form 'VAR=value command'.
83
198
  */
84
199
  environment?: pulumi.Input<{
85
200
  [key: string]: pulumi.Input<string>;
86
- }>;
201
+ } | undefined>;
202
+ /**
203
+ * If the command's stdout and stderr should be logged. This doesn't affect the capturing of
204
+ * stdout and stderr as outputs. If there might be secrets in the output, you can disable logging here and mark the
205
+ * outputs as secret via 'additionalSecretOutputs'. Defaults to logging both stdout and stderr.
206
+ */
207
+ logging?: pulumi.Input<enums.remote.Logging | undefined>;
87
208
  /**
88
209
  * Pass a string to the command's process as standard in
89
210
  */
90
- stdin?: pulumi.Input<string>;
211
+ stdin?: pulumi.Input<string | undefined>;
91
212
  /**
92
- * Trigger replacements on changes to this input.
213
+ * The resource will be updated (or replaced) if any of these values change.
214
+ *
215
+ * The trigger values can be of any type.
216
+ *
217
+ * If the `update` command was provided the resource will be updated, otherwise it will be replaced using the `create` command.
218
+ *
219
+ * Please see the resource documentation for examples.
220
+ */
221
+ triggers?: pulumi.Input<any[] | undefined>;
222
+ /**
223
+ * The command to run when the resource is updated.
224
+ *
225
+ * If empty, the create command will be executed instead.
226
+ *
227
+ * Note that this command will not run if the resource's inputs are unchanged.
228
+ *
229
+ * Use `local.runOutput` if you need to run a command on every execution of your program.
230
+ *
231
+ * The environment variables `PULUMI_COMMAND_STDOUT` and `PULUMI_COMMAND_STDERR` are set to the `stdout` and `stderr` properties of the Command resource from previous create or update steps.
93
232
  */
94
- triggers?: pulumi.Input<any[]>;
233
+ update?: pulumi.Input<string | undefined>;
95
234
  }
235
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../remote/command.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AAGxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,OAAO;IAO1G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,OAAO;IAOlD;;;;OAIG;IACH,SAAwB,sBAAsB,EAAE,MAAM,CAAC,MAAM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AAsB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACvD;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IAC9E;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C"}
package/remote/command.js CHANGED
@@ -1,16 +1,117 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by pulumigen. ***
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
+ 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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.Command = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const types_1 = require("../types");
8
- const utilities = require("../utilities");
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const inputs = __importStar(require("../types/input"));
31
+ const utilities = __importStar(require("../utilities"));
9
32
  /**
10
- * A command to run on a remote host.
11
- * The connection is established via ssh.
33
+ * A command to run on a remote host. The connection is established via ssh.
34
+ *
35
+ * ## Example Usage
36
+ *
37
+ * ### A Basic Example
38
+ * This program connects to a server and runs the `hostname` command. The output is then available via the `stdout` property.
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as command from "@pulumi/command";
43
+ *
44
+ * const config = new pulumi.Config();
45
+ * const server = config.require("server");
46
+ * const userName = config.require("userName");
47
+ * const privateKey = config.require("privateKey");
48
+ *
49
+ * const hostnameCmd = new command.remote.Command("hostnameCmd", {
50
+ * create: "hostname",
51
+ * connection: {
52
+ * host: server,
53
+ * user: userName,
54
+ * privateKey: privateKey,
55
+ * },
56
+ * });
57
+ * export const hostname = hostnameCmd.stdout;
58
+ * ```
59
+ *
60
+ * ### Triggers
61
+ * This example defines several trigger values of various kinds. Changes to any of them will cause `cmd` to be re-run.
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as command from "@pulumi/command";
66
+ * import * as random from "@pulumi/random";
67
+ *
68
+ * const str = "foo";
69
+ * const fileAsset = new pulumi.asset.FileAsset("Pulumi.yaml");
70
+ * const rand = new random.RandomString("rand", {length: 5});
71
+ * const localFile = new command.local.Command("localFile", {
72
+ * create: "touch foo.txt",
73
+ * archivePaths: ["*.txt"],
74
+ * });
75
+ * const cmd = new command.remote.Command("cmd", {
76
+ * connection: {
77
+ * host: "insert host here",
78
+ * },
79
+ * create: "echo create > op.txt",
80
+ * delete: "echo delete >> op.txt",
81
+ * triggers: [
82
+ * str,
83
+ * rand.result,
84
+ * fileAsset,
85
+ * localFile.archive,
86
+ * ],
87
+ * });
88
+ *
89
+ * ```
12
90
  */
13
91
  class Command extends pulumi.CustomResource {
92
+ /**
93
+ * Get an existing Command resource's state with the given name, ID, and optional extra
94
+ * properties used to qualify the lookup.
95
+ *
96
+ * @param name The _unique_ name of the resulting resource.
97
+ * @param id The _unique_ provider ID of the resource to lookup.
98
+ * @param opts Optional settings to control the behavior of the CustomResource.
99
+ */
100
+ static get(name, id, opts) {
101
+ return new Command(name, undefined, { ...opts, id: id });
102
+ }
103
+ /** @internal */
104
+ static __pulumiType = 'command:remote:Command';
105
+ /**
106
+ * Returns true if the given object is an instance of Command. This is designed to work even
107
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
108
+ */
109
+ static isInstance(obj) {
110
+ if (obj === undefined || obj === null) {
111
+ return false;
112
+ }
113
+ return obj['__pulumiType'] === Command.__pulumiType;
114
+ }
14
115
  /**
15
116
  * Create a Command resource with the given unique name, arguments, and options.
16
117
  *
@@ -22,56 +123,41 @@ class Command extends pulumi.CustomResource {
22
123
  let resourceInputs = {};
23
124
  opts = opts || {};
24
125
  if (!opts.id) {
25
- if ((!args || args.connection === undefined) && !opts.urn) {
126
+ if (args?.connection === undefined && !opts.urn) {
26
127
  throw new Error("Missing required property 'connection'");
27
128
  }
28
- resourceInputs["connection"] = args ? (args.connection ? pulumi.output(args.connection).apply(types_1.input.remote.connectionArgsProvideDefaults) : undefined) : undefined;
29
- resourceInputs["create"] = args ? args.create : undefined;
30
- resourceInputs["delete"] = args ? args.delete : undefined;
31
- resourceInputs["environment"] = args ? args.environment : undefined;
32
- resourceInputs["stdin"] = args ? args.stdin : undefined;
33
- resourceInputs["triggers"] = args ? args.triggers : undefined;
129
+ resourceInputs["addPreviousOutputInEnv"] = args?.addPreviousOutputInEnv;
130
+ resourceInputs["connection"] = args?.connection ? pulumi.secret(pulumi.output(args.connection).apply(inputs.remote.connectionArgsProvideDefaults)) : undefined;
131
+ resourceInputs["create"] = args?.create;
132
+ resourceInputs["delete"] = args?.delete;
133
+ resourceInputs["environment"] = args?.environment;
134
+ resourceInputs["logging"] = args?.logging;
135
+ resourceInputs["stdin"] = args?.stdin;
136
+ resourceInputs["triggers"] = args?.triggers;
137
+ resourceInputs["update"] = args?.update;
34
138
  resourceInputs["stderr"] = undefined /*out*/;
35
139
  resourceInputs["stdout"] = undefined /*out*/;
36
140
  }
37
141
  else {
142
+ resourceInputs["addPreviousOutputInEnv"] = undefined /*out*/;
38
143
  resourceInputs["connection"] = undefined /*out*/;
39
144
  resourceInputs["create"] = undefined /*out*/;
40
145
  resourceInputs["delete"] = undefined /*out*/;
41
146
  resourceInputs["environment"] = undefined /*out*/;
147
+ resourceInputs["logging"] = undefined /*out*/;
42
148
  resourceInputs["stderr"] = undefined /*out*/;
43
149
  resourceInputs["stdin"] = undefined /*out*/;
44
150
  resourceInputs["stdout"] = undefined /*out*/;
45
151
  resourceInputs["triggers"] = undefined /*out*/;
152
+ resourceInputs["update"] = undefined /*out*/;
46
153
  }
47
- if (!opts.version) {
48
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
49
- }
154
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
155
+ const secretOpts = { additionalSecretOutputs: ["connection"] };
156
+ opts = pulumi.mergeOptions(opts, secretOpts);
157
+ const replaceOnChanges = { replaceOnChanges: ["triggers[*]"] };
158
+ opts = pulumi.mergeOptions(opts, replaceOnChanges);
50
159
  super(Command.__pulumiType, name, resourceInputs, opts);
51
160
  }
52
- /**
53
- * Get an existing Command resource's state with the given name, ID, and optional extra
54
- * properties used to qualify the lookup.
55
- *
56
- * @param name The _unique_ name of the resulting resource.
57
- * @param id The _unique_ provider ID of the resource to lookup.
58
- * @param opts Optional settings to control the behavior of the CustomResource.
59
- */
60
- static get(name, id, opts) {
61
- return new Command(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
62
- }
63
- /**
64
- * Returns true if the given object is an instance of Command. This is designed to work even
65
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
- */
67
- static isInstance(obj) {
68
- if (obj === undefined || obj === null) {
69
- return false;
70
- }
71
- return obj['__pulumiType'] === Command.__pulumiType;
72
- }
73
161
  }
74
162
  exports.Command = Command;
75
- /** @internal */
76
- Command.__pulumiType = 'command:remote:Command';
77
163
  //# sourceMappingURL=command.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../remote/command.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,oCAA8D;AAC9D,0CAA0C;AAE1C;;;GAGG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA4D9C;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAmC;QAC5E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC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AAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,MAAM,gBAAgB,GAAG,EAAE,gBAAgB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACnD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAjJL,0BAkJC"}
@@ -1,7 +1,10 @@
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
5
  * Copy a local file to a remote host.
6
+ *
7
+ * @deprecated This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead.
5
8
  */
6
9
  export declare class CopyFile extends pulumi.CustomResource {
7
10
  /**
@@ -41,6 +44,7 @@ export declare class CopyFile extends pulumi.CustomResource {
41
44
  * @param args The arguments to use to populate this resource's properties.
42
45
  * @param opts A bag of options that control this resource's behavior.
43
46
  */
47
+ /** @deprecated This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead. */
44
48
  constructor(name: string, args: CopyFileArgs, opts?: pulumi.CustomResourceOptions);
45
49
  }
46
50
  /**
@@ -62,5 +66,6 @@ export interface CopyFileArgs {
62
66
  /**
63
67
  * Trigger replacements on changes to this input.
64
68
  */
65
- triggers?: pulumi.Input<any[]>;
69
+ triggers?: pulumi.Input<any[] | undefined>;
66
70
  }
71
+ //# sourceMappingURL=copyFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyFile.d.ts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