@pulumi/command 0.12.0-alpha.1718886727 → 0.12.0-alpha.1718979251

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.
@@ -2,10 +2,38 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as enums from "../types/enums";
3
3
  /**
4
4
  * A local command to be executed.
5
- * This command can be inserted into the life cycles of other resources using the
6
- * `dependsOn` or `parent` resource options. A command is considered to have
7
- * failed when it finished with a non-zero exit code. This will fail the CRUD step
8
- * of the `Command` resource.
5
+ *
6
+ * This command can be inserted into the life cycles of other resources using the `dependsOn` or `parent` resource options. A command is considered to have failed when it finished with a non-zero exit code. This will fail the CRUD step of the `Command` resource.
7
+ *
8
+ * ## Example Usage
9
+ * ### Triggers
10
+ *
11
+ * This example defines several trigger values of various kinds. Changes to any of them will cause `cmd` to be re-run.
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as command from "@pulumi/command";
16
+ * import * as random from "@pulumi/random";
17
+ *
18
+ * const str = "foo";
19
+ * const fileAsset = new pulumi.asset.FileAsset("Pulumi.yaml");
20
+ * const rand = new random.RandomString("rand", {length: 5});
21
+ * const localFile = new command.local.Command("localFile", {
22
+ * create: "touch foo.txt",
23
+ * archivePaths: ["*.txt"],
24
+ * });
25
+ *
26
+ * const cmd = new command.local.Command("cmd", {
27
+ * create: "echo create > op.txt",
28
+ * delete: "echo delete >> op.txt",
29
+ * triggers: [
30
+ * str,
31
+ * rand.result,
32
+ * fileAsset,
33
+ * localFile.archive,
34
+ * ],
35
+ * });
36
+ * ```
9
37
  */
10
38
  export declare class Command extends pulumi.CustomResource {
11
39
  /**
@@ -166,7 +194,10 @@ export declare class Command extends pulumi.CustomResource {
166
194
  */
167
195
  readonly stdout: pulumi.Output<string>;
168
196
  /**
169
- * Trigger replacements on changes to this input.
197
+ * Trigger a resource replacement on changes to any of these values. The
198
+ * trigger values can be of any type. If a value is different in the current update compared to the
199
+ * previous update, the resource will be replaced, i.e., the "create" command will be re-run.
200
+ * Please see the resource documentation for examples.
170
201
  */
171
202
  readonly triggers: pulumi.Output<any[] | undefined>;
172
203
  /**
@@ -314,7 +345,10 @@ export interface CommandArgs {
314
345
  */
315
346
  stdin?: pulumi.Input<string>;
316
347
  /**
317
- * Trigger replacements on changes to this input.
348
+ * Trigger a resource replacement on changes to any of these values. The
349
+ * trigger values can be of any type. If a value is different in the current update compared to the
350
+ * previous update, the resource will be replaced, i.e., the "create" command will be re-run.
351
+ * Please see the resource documentation for examples.
318
352
  */
319
353
  triggers?: pulumi.Input<any[]>;
320
354
  /**
package/local/command.js CHANGED
@@ -7,10 +7,38 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
9
  * A local command to be executed.
10
- * This command can be inserted into the life cycles of other resources using the
11
- * `dependsOn` or `parent` resource options. A command is considered to have
12
- * failed when it finished with a non-zero exit code. This will fail the CRUD step
13
- * of the `Command` resource.
10
+ *
11
+ * This command can be inserted into the life cycles of other resources using the `dependsOn` or `parent` resource options. A command is considered to have failed when it finished with a non-zero exit code. This will fail the CRUD step of the `Command` resource.
12
+ *
13
+ * ## Example Usage
14
+ * ### Triggers
15
+ *
16
+ * This example defines several trigger values of various kinds. Changes to any of them will cause `cmd` to be re-run.
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as command from "@pulumi/command";
21
+ * import * as random from "@pulumi/random";
22
+ *
23
+ * const str = "foo";
24
+ * const fileAsset = new pulumi.asset.FileAsset("Pulumi.yaml");
25
+ * const rand = new random.RandomString("rand", {length: 5});
26
+ * const localFile = new command.local.Command("localFile", {
27
+ * create: "touch foo.txt",
28
+ * archivePaths: ["*.txt"],
29
+ * });
30
+ *
31
+ * const cmd = new command.local.Command("cmd", {
32
+ * create: "echo create > op.txt",
33
+ * delete: "echo delete >> op.txt",
34
+ * triggers: [
35
+ * str,
36
+ * rand.result,
37
+ * fileAsset,
38
+ * localFile.archive,
39
+ * ],
40
+ * });
41
+ * ```
14
42
  */
15
43
  class Command extends pulumi.CustomResource {
16
44
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../local/command.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;GAMG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAyJD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAmC;;QAC7E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,cAAc,CAAC,wBAAwB,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,IAAI,CAAC;YACpG,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CA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I,CAAC,CAAC;QACnE,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;;AAtOL,0BAuOC;AA1NG,gBAAgB;AACO,oBAAY,GAAG,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/command",
3
- "version": "0.12.0-alpha.1718886727",
3
+ "version": "0.12.0-alpha.1718979251",
4
4
  "keywords": [
5
5
  "pulumi",
6
6
  "command",
@@ -12,7 +12,7 @@
12
12
  "license": "Apache-2.0",
13
13
  "scripts": {
14
14
  "build": "tsc",
15
- "install": "node scripts/install-pulumi-plugin.js resource command 0.12.0-alpha.1718886727"
15
+ "install": "node scripts/install-pulumi-plugin.js resource command 0.12.0-alpha.1718979251"
16
16
  },
17
17
  "dependencies": {
18
18
  "@pulumi/pulumi": "^3.0.0"
@@ -24,6 +24,6 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "command",
27
- "version": "0.12.0-alpha.1718886727"
27
+ "version": "0.12.0-alpha.1718979251"
28
28
  }
29
29
  }
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/command",
3
- "version": "0.12.0-alpha.1718886727",
3
+ "version": "0.12.0-alpha.1718979251",
4
4
  "keywords": [
5
5
  "pulumi",
6
6
  "command",
@@ -23,6 +23,6 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "command",
26
- "version": "0.12.0-alpha.1718886727"
26
+ "version": "0.12.0-alpha.1718979251"
27
27
  }
28
28
  }
@@ -3,8 +3,40 @@ import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
4
  import * as enums from "../types/enums";
5
5
  /**
6
- * A command to run on a remote host.
7
- * 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
+ * ### Triggers
10
+ *
11
+ * This example defines several trigger values of various kinds. Changes to any of them will cause `cmd` to be re-run.
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as command from "@pulumi/command";
16
+ * import * as random from "@pulumi/random";
17
+ *
18
+ * const str = "foo";
19
+ * const fileAsset = new pulumi.asset.FileAsset("Pulumi.yaml");
20
+ * const rand = new random.RandomString("rand", {length: 5});
21
+ * const localFile = new command.local.Command("localFile", {
22
+ * create: "touch foo.txt",
23
+ * archivePaths: ["*.txt"],
24
+ * });
25
+ * const cmd = new command.remote.Command("cmd", {
26
+ * connection: {
27
+ * host: "insert host here",
28
+ * },
29
+ * create: "echo create > op.txt",
30
+ * delete: "echo delete >> op.txt",
31
+ * triggers: [
32
+ * str,
33
+ * rand.result,
34
+ * fileAsset,
35
+ * localFile.archive,
36
+ * ],
37
+ * });
38
+ *
39
+ * ```
8
40
  */
9
41
  export declare class Command extends pulumi.CustomResource {
10
42
  /**
@@ -69,7 +101,10 @@ export declare class Command extends pulumi.CustomResource {
69
101
  */
70
102
  readonly stdout: pulumi.Output<string>;
71
103
  /**
72
- * Trigger replacements on changes to this input.
104
+ * Trigger a resource replacement on changes to any of these values. The
105
+ * trigger values can be of any type. If a value is different in the current update compared to the
106
+ * previous update, the resource will be replaced, i.e., the "create" command will be re-run.
107
+ * Please see the resource documentation for examples.
73
108
  */
74
109
  readonly triggers: pulumi.Output<any[] | undefined>;
75
110
  /**
@@ -132,7 +167,10 @@ export interface CommandArgs {
132
167
  */
133
168
  stdin?: pulumi.Input<string>;
134
169
  /**
135
- * Trigger replacements on changes to this input.
170
+ * Trigger a resource replacement on changes to any of these values. The
171
+ * trigger values can be of any type. If a value is different in the current update compared to the
172
+ * previous update, the resource will be replaced, i.e., the "create" command will be re-run.
173
+ * Please see the resource documentation for examples.
136
174
  */
137
175
  triggers?: pulumi.Input<any[]>;
138
176
  /**
package/remote/command.js CHANGED
@@ -7,8 +7,40 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const inputs = require("../types/input");
8
8
  const utilities = require("../utilities");
9
9
  /**
10
- * A command to run on a remote host.
11
- * The connection is established via ssh.
10
+ * A command to run on a remote host. The connection is established via ssh.
11
+ *
12
+ * ## Example Usage
13
+ * ### Triggers
14
+ *
15
+ * This example defines several trigger values of various kinds. Changes to any of them will cause `cmd` to be re-run.
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as command from "@pulumi/command";
20
+ * import * as random from "@pulumi/random";
21
+ *
22
+ * const str = "foo";
23
+ * const fileAsset = new pulumi.asset.FileAsset("Pulumi.yaml");
24
+ * const rand = new random.RandomString("rand", {length: 5});
25
+ * const localFile = new command.local.Command("localFile", {
26
+ * create: "touch foo.txt",
27
+ * archivePaths: ["*.txt"],
28
+ * });
29
+ * const cmd = new command.remote.Command("cmd", {
30
+ * connection: {
31
+ * host: "insert host here",
32
+ * },
33
+ * create: "echo create > op.txt",
34
+ * delete: "echo delete >> op.txt",
35
+ * triggers: [
36
+ * str,
37
+ * rand.result,
38
+ * fileAsset,
39
+ * localFile.archive,
40
+ * ],
41
+ * });
42
+ *
43
+ * ```
12
44
  */
13
45
  class Command extends pulumi.CustomResource {
14
46
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../remote/command.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C;;;GAGG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAA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AC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,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;;AAnIL,0BAoIC;AAvHG,gBAAgB;AACO,oBAAY,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,70 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
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.
8
+ */
9
+ export declare class CopyFile extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing CopyFile resource's state with the given name, ID, and optional extra
12
+ * properties used to qualify the lookup.
13
+ *
14
+ * @param name The _unique_ name of the resulting resource.
15
+ * @param id The _unique_ provider ID of the resource to lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CopyFile;
19
+ /**
20
+ * Returns true if the given object is an instance of CopyFile. This is designed to work even
21
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
22
+ */
23
+ static isInstance(obj: any): obj is CopyFile;
24
+ /**
25
+ * The parameters with which to connect to the remote host.
26
+ */
27
+ readonly connection: pulumi.Output<outputs.remote.Connection>;
28
+ /**
29
+ * The path of the file to be copied.
30
+ */
31
+ readonly localPath: pulumi.Output<string>;
32
+ /**
33
+ * The destination path in the remote host.
34
+ */
35
+ readonly remotePath: pulumi.Output<string>;
36
+ /**
37
+ * Trigger replacements on changes to this input.
38
+ */
39
+ readonly triggers: pulumi.Output<any[] | undefined>;
40
+ /**
41
+ * Create a CopyFile resource with the given unique name, arguments, and options.
42
+ *
43
+ * @param name The _unique_ name of the resource.
44
+ * @param args The arguments to use to populate this resource's properties.
45
+ * @param opts A bag of options that control this resource's behavior.
46
+ */
47
+ /** @deprecated This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead. */
48
+ constructor(name: string, args: CopyFileArgs, opts?: pulumi.CustomResourceOptions);
49
+ }
50
+ /**
51
+ * The set of arguments for constructing a CopyFile resource.
52
+ */
53
+ export interface CopyFileArgs {
54
+ /**
55
+ * The parameters with which to connect to the remote host.
56
+ */
57
+ connection: pulumi.Input<inputs.remote.ConnectionArgs>;
58
+ /**
59
+ * The path of the file to be copied.
60
+ */
61
+ localPath: pulumi.Input<string>;
62
+ /**
63
+ * The destination path in the remote host.
64
+ */
65
+ remotePath: pulumi.Input<string>;
66
+ /**
67
+ * Trigger replacements on changes to this input.
68
+ */
69
+ triggers?: pulumi.Input<any[]>;
70
+ }
@@ -0,0 +1,79 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.CopyFile = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const inputs = require("../types/input");
8
+ const utilities = require("../utilities");
9
+ /**
10
+ * Copy a local file to a remote host.
11
+ *
12
+ * @deprecated This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead.
13
+ */
14
+ class CopyFile extends pulumi.CustomResource {
15
+ /**
16
+ * Get an existing CopyFile resource's state with the given name, ID, and optional extra
17
+ * properties used to qualify the lookup.
18
+ *
19
+ * @param name The _unique_ name of the resulting resource.
20
+ * @param id The _unique_ provider ID of the resource to lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ static get(name, id, opts) {
24
+ pulumi.log.warn("CopyFile is deprecated: This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead.");
25
+ return new CopyFile(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
26
+ }
27
+ /**
28
+ * Returns true if the given object is an instance of CopyFile. This is designed to work even
29
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
30
+ */
31
+ static isInstance(obj) {
32
+ if (obj === undefined || obj === null) {
33
+ return false;
34
+ }
35
+ return obj['__pulumiType'] === CopyFile.__pulumiType;
36
+ }
37
+ /**
38
+ * Create a CopyFile resource with the given unique name, arguments, and options.
39
+ *
40
+ * @param name The _unique_ name of the resource.
41
+ * @param args The arguments to use to populate this resource's properties.
42
+ * @param opts A bag of options that control this resource's behavior.
43
+ */
44
+ /** @deprecated This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead. */
45
+ constructor(name, args, opts) {
46
+ pulumi.log.warn("CopyFile is deprecated: This resource is deprecated and will be removed in a future release. Please use the `CopyToRemote` resource instead.");
47
+ let resourceInputs = {};
48
+ opts = opts || {};
49
+ if (!opts.id) {
50
+ if ((!args || args.connection === undefined) && !opts.urn) {
51
+ throw new Error("Missing required property 'connection'");
52
+ }
53
+ if ((!args || args.localPath === undefined) && !opts.urn) {
54
+ throw new Error("Missing required property 'localPath'");
55
+ }
56
+ if ((!args || args.remotePath === undefined) && !opts.urn) {
57
+ throw new Error("Missing required property 'remotePath'");
58
+ }
59
+ resourceInputs["connection"] = (args === null || args === void 0 ? void 0 : args.connection) ? pulumi.secret((args.connection ? pulumi.output(args.connection).apply(inputs.remote.connectionArgsProvideDefaults) : undefined)) : undefined;
60
+ resourceInputs["localPath"] = args ? args.localPath : undefined;
61
+ resourceInputs["remotePath"] = args ? args.remotePath : undefined;
62
+ resourceInputs["triggers"] = args ? args.triggers : undefined;
63
+ }
64
+ else {
65
+ resourceInputs["connection"] = undefined /*out*/;
66
+ resourceInputs["localPath"] = undefined /*out*/;
67
+ resourceInputs["remotePath"] = undefined /*out*/;
68
+ resourceInputs["triggers"] = undefined /*out*/;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ const secretOpts = { additionalSecretOutputs: ["connection"] };
72
+ opts = pulumi.mergeOptions(opts, secretOpts);
73
+ super(CopyFile.__pulumiType, name, resourceInputs, opts);
74
+ }
75
+ }
76
+ exports.CopyFile = CopyFile;
77
+ /** @internal */
78
+ CopyFile.__pulumiType = 'command:remote:CopyFile';
79
+ //# sourceMappingURL=copyFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyFile.js","sourceRoot":"","sources":["../../remote/copyFile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;GAIG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,8IAA8I,CAAC,CAAA;QAC/J,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAA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YAC/L,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;aAAM;YACH,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,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,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,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjFL,4BAkFC;AApEG,gBAAgB;AACO,qBAAY,GAAG,yBAAyB,CAAC"}
package/remote/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  export { CommandArgs } from "./command";
2
2
  export type Command = import("./command").Command;
3
3
  export declare const Command: typeof import("./command").Command;
4
+ export { CopyFileArgs } from "./copyFile";
5
+ export type CopyFile = import("./copyFile").CopyFile;
6
+ export declare const CopyFile: typeof import("./copyFile").CopyFile;
4
7
  export { CopyToRemoteArgs } from "./copyToRemote";
5
8
  export type CopyToRemote = import("./copyToRemote").CopyToRemote;
6
9
  export declare const CopyToRemote: typeof import("./copyToRemote").CopyToRemote;
package/remote/index.js CHANGED
@@ -16,11 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CopyToRemote = exports.Command = void 0;
19
+ exports.CopyToRemote = exports.CopyFile = exports.Command = void 0;
20
20
  const pulumi = require("@pulumi/pulumi");
21
21
  const utilities = require("../utilities");
22
22
  exports.Command = null;
23
23
  utilities.lazyLoad(exports, ["Command"], () => require("./command"));
24
+ exports.CopyFile = null;
25
+ utilities.lazyLoad(exports, ["CopyFile"], () => require("./copyFile"));
24
26
  exports.CopyToRemote = null;
25
27
  utilities.lazyLoad(exports, ["CopyToRemote"], () => require("./copyToRemote"));
26
28
  // Export enums:
@@ -31,6 +33,8 @@ const _module = {
31
33
  switch (type) {
32
34
  case "command:remote:Command":
33
35
  return new exports.Command(name, undefined, { urn });
36
+ case "command:remote:CopyFile":
37
+ return new exports.CopyFile(name, undefined, { urn });
34
38
  case "command:remote:CopyToRemote":
35
39
  return new exports.CopyToRemote(name, undefined, { urn });
36
40
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../remote/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CA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