@pulumi/command 0.0.1-alpha.1639521690 → 0.0.1-alpha.1639693124

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.
@@ -1,4 +1,11 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A local command to be executed.
4
+ * This command can be inserted into the life cycles of other resources using the
5
+ * `dependsOn` or `parent` resource options. A command is considered to have
6
+ * failed when it finished with a non-zero exit code. This will fail the CRUD step
7
+ * of the `Command` resource.
8
+ */
2
9
  export declare class Command extends pulumi.CustomResource {
3
10
  /**
4
11
  * Get an existing Command resource's state with the given name, ID, and optional extra
@@ -14,15 +21,41 @@ export declare class Command extends pulumi.CustomResource {
14
21
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
15
22
  */
16
23
  static isInstance(obj: any): obj is Command;
24
+ /**
25
+ * The command to run on create.
26
+ */
17
27
  readonly create: pulumi.Output<string | undefined>;
28
+ /**
29
+ * The command to run on delete.
30
+ */
18
31
  readonly delete: pulumi.Output<string | undefined>;
32
+ /**
33
+ * The directory from which to run the command from. If `dir` does not exist, then
34
+ * `Command` will fail.
35
+ */
19
36
  readonly dir: pulumi.Output<string | undefined>;
37
+ /**
38
+ * Additional environment variables available to the command's process.
39
+ */
20
40
  readonly environment: pulumi.Output<{
21
41
  [key: string]: string;
22
42
  } | undefined>;
43
+ /**
44
+ * The program and arguments to run the command.
45
+ * For example: `["/bin/sh", "-c"]`
46
+ */
23
47
  readonly interpreter: pulumi.Output<string[] | undefined>;
48
+ /**
49
+ * The standard error of the command's process
50
+ */
24
51
  readonly stderr: pulumi.Output<string>;
52
+ /**
53
+ * The standard output of the command's process
54
+ */
25
55
  readonly stdout: pulumi.Output<string>;
56
+ /**
57
+ * The command to run on update.
58
+ */
26
59
  readonly update: pulumi.Output<string | undefined>;
27
60
  /**
28
61
  * Create a Command resource with the given unique name, arguments, and options.
@@ -46,15 +79,19 @@ export interface CommandArgs {
46
79
  */
47
80
  delete?: pulumi.Input<string>;
48
81
  /**
49
- * The contents of an SSH key to use for the connection. This takes preference over the password if provided.
82
+ * The working directory in which to run the command from.
50
83
  */
51
84
  dir?: pulumi.Input<string>;
52
85
  /**
53
- * Environment variables to set on commands.
86
+ * Additional environment variables available to the command's process.
54
87
  */
55
88
  environment?: pulumi.Input<{
56
89
  [key: string]: pulumi.Input<string>;
57
90
  }>;
91
+ /**
92
+ * The program and arguments to run the command.
93
+ * On Linux and macOS, defaults to: `["/bin/sh", "-c"]`. On Windows, defaults to: `["cmd", "/C"]`
94
+ */
58
95
  interpreter?: pulumi.Input<pulumi.Input<string>[]>;
59
96
  /**
60
97
  * The command to run on update.
package/local/command.js CHANGED
@@ -5,6 +5,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Command = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
+ /**
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.
14
+ */
8
15
  class Command extends pulumi.CustomResource {
9
16
  /**
10
17
  * Create a Command resource with the given unique name, arguments, and options.
@@ -14,32 +21,32 @@ class Command extends pulumi.CustomResource {
14
21
  * @param opts A bag of options that control this resource's behavior.
15
22
  */
16
23
  constructor(name, args, opts) {
17
- let inputs = {};
24
+ let resourceInputs = {};
18
25
  opts = opts || {};
19
26
  if (!opts.id) {
20
- inputs["create"] = args ? args.create : undefined;
21
- inputs["delete"] = args ? args.delete : undefined;
22
- inputs["dir"] = args ? args.dir : undefined;
23
- inputs["environment"] = args ? args.environment : undefined;
24
- inputs["interpreter"] = args ? args.interpreter : undefined;
25
- inputs["update"] = args ? args.update : undefined;
26
- inputs["stderr"] = undefined /*out*/;
27
- inputs["stdout"] = undefined /*out*/;
27
+ resourceInputs["create"] = args ? args.create : undefined;
28
+ resourceInputs["delete"] = args ? args.delete : undefined;
29
+ resourceInputs["dir"] = args ? args.dir : undefined;
30
+ resourceInputs["environment"] = args ? args.environment : undefined;
31
+ resourceInputs["interpreter"] = args ? args.interpreter : undefined;
32
+ resourceInputs["update"] = args ? args.update : undefined;
33
+ resourceInputs["stderr"] = undefined /*out*/;
34
+ resourceInputs["stdout"] = undefined /*out*/;
28
35
  }
29
36
  else {
30
- inputs["create"] = undefined /*out*/;
31
- inputs["delete"] = undefined /*out*/;
32
- inputs["dir"] = undefined /*out*/;
33
- inputs["environment"] = undefined /*out*/;
34
- inputs["interpreter"] = undefined /*out*/;
35
- inputs["stderr"] = undefined /*out*/;
36
- inputs["stdout"] = undefined /*out*/;
37
- inputs["update"] = undefined /*out*/;
37
+ resourceInputs["create"] = undefined /*out*/;
38
+ resourceInputs["delete"] = undefined /*out*/;
39
+ resourceInputs["dir"] = undefined /*out*/;
40
+ resourceInputs["environment"] = undefined /*out*/;
41
+ resourceInputs["interpreter"] = undefined /*out*/;
42
+ resourceInputs["stderr"] = undefined /*out*/;
43
+ resourceInputs["stdout"] = undefined /*out*/;
44
+ resourceInputs["update"] = undefined /*out*/;
38
45
  }
39
46
  if (!opts.version) {
40
47
  opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
41
48
  }
42
- super(Command.__pulumiType, name, inputs, opts);
49
+ super(Command.__pulumiType, name, resourceInputs, opts);
43
50
  }
44
51
  /**
45
52
  * Get an existing Command resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../local/command.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAoC9C;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAmC;QAC7E,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAA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AAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IA9FD;;;;;;;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;;AAzBL,0BAgGC;AAnFG,gBAAgB;AACO,oBAAY,GAAG,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@pulumi/command",
3
- "version": "v0.0.1-alpha.1639521690+9dba1602",
3
+ "version": "v0.0.1-alpha.1639693124+cb10cd84",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
- "install": "node scripts/install-pulumi-plugin.js resource command v0.0.1-alpha.1639521690+9dba1602"
6
+ "install": "node scripts/install-pulumi-plugin.js resource command v0.0.1-alpha.1639693124+cb10cd84"
7
7
  },
8
8
  "dependencies": {
9
9
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/command",
3
- "version": "v0.0.1-alpha.1639521690+9dba1602",
3
+ "version": "v0.0.1-alpha.1639693124+cb10cd84",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
package/provider.js CHANGED
@@ -14,14 +14,14 @@ class Provider extends pulumi.ProviderResource {
14
14
  * @param opts A bag of options that control this resource's behavior.
15
15
  */
16
16
  constructor(name, args, opts) {
17
- let inputs = {};
17
+ let resourceInputs = {};
18
18
  opts = opts || {};
19
19
  {
20
20
  }
21
21
  if (!opts.version) {
22
22
  opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
23
23
  }
24
- super(Provider.__pulumiType, name, inputs, opts);
24
+ super(Provider.__pulumiType, name, resourceInputs, opts);
25
25
  }
26
26
  /**
27
27
  * Returns true if the given object is an instance of Provider. This is designed to work even
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,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAgBjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;SACC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IA5BD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAiCC;AAhCG,gBAAgB;AACO,qBAAY,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAgBjD;;;;;;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,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IA5BD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAiCC;AAhCG,gBAAgB;AACO,qBAAY,GAAG,SAAS,CAAC"}
@@ -1,5 +1,9 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * A command to run on a remote host.
5
+ * The connection is established via ssh.
6
+ */
3
7
  export declare class Command extends pulumi.CustomResource {
4
8
  /**
5
9
  * Get an existing Command resource's state with the given name, ID, and optional extra
@@ -15,14 +19,35 @@ export declare class Command extends pulumi.CustomResource {
15
19
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
20
  */
17
21
  static isInstance(obj: any): obj is Command;
22
+ /**
23
+ * The parameters with which to connect to the remote host
24
+ */
18
25
  readonly connection: pulumi.Output<outputs.remote.Connection | undefined>;
26
+ /**
27
+ * The command to run on create.
28
+ */
19
29
  readonly create: pulumi.Output<string | undefined>;
30
+ /**
31
+ * The command to run on delete.
32
+ */
20
33
  readonly delete: pulumi.Output<string | undefined>;
34
+ /**
35
+ * Additional environment variables available to the command's process.
36
+ */
21
37
  readonly environment: pulumi.Output<{
22
38
  [key: string]: string;
23
39
  } | undefined>;
40
+ /**
41
+ * The standard error of the command's process
42
+ */
24
43
  readonly stderr: pulumi.Output<string>;
44
+ /**
45
+ * The standard output of the command's process
46
+ */
25
47
  readonly stdout: pulumi.Output<string>;
48
+ /**
49
+ * The command to run on update.
50
+ */
26
51
  readonly update: pulumi.Output<string | undefined>;
27
52
  /**
28
53
  * Create a Command resource with the given unique name, arguments, and options.
@@ -37,11 +62,26 @@ export declare class Command extends pulumi.CustomResource {
37
62
  * The set of arguments for constructing a Command resource.
38
63
  */
39
64
  export interface CommandArgs {
65
+ /**
66
+ * The parameters with which to connect to the remote host.
67
+ */
40
68
  connection: pulumi.Input<inputs.remote.ConnectionArgs>;
69
+ /**
70
+ * The command to run on create.
71
+ */
41
72
  create?: pulumi.Input<string>;
73
+ /**
74
+ * The command to run on delete.
75
+ */
42
76
  delete?: pulumi.Input<string>;
77
+ /**
78
+ * Additional environment variables available to the command's process.
79
+ */
43
80
  environment?: pulumi.Input<{
44
81
  [key: string]: pulumi.Input<string>;
45
82
  }>;
83
+ /**
84
+ * The command to run on update.
85
+ */
46
86
  update?: pulumi.Input<string>;
47
87
  }
package/remote/command.js CHANGED
@@ -4,7 +4,12 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Command = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
+ const types_1 = require("../types");
7
8
  const utilities = require("../utilities");
9
+ /**
10
+ * A command to run on a remote host.
11
+ * The connection is established via ssh.
12
+ */
8
13
  class Command extends pulumi.CustomResource {
9
14
  /**
10
15
  * Create a Command resource with the given unique name, arguments, and options.
@@ -14,33 +19,33 @@ class Command extends pulumi.CustomResource {
14
19
  * @param opts A bag of options that control this resource's behavior.
15
20
  */
16
21
  constructor(name, args, opts) {
17
- let inputs = {};
22
+ let resourceInputs = {};
18
23
  opts = opts || {};
19
24
  if (!opts.id) {
20
25
  if ((!args || args.connection === undefined) && !opts.urn) {
21
26
  throw new Error("Missing required property 'connection'");
22
27
  }
23
- inputs["connection"] = args ? args.connection : undefined;
24
- inputs["create"] = args ? args.create : undefined;
25
- inputs["delete"] = args ? args.delete : undefined;
26
- inputs["environment"] = args ? args.environment : undefined;
27
- inputs["update"] = args ? args.update : undefined;
28
- inputs["stderr"] = undefined /*out*/;
29
- inputs["stdout"] = undefined /*out*/;
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["update"] = args ? args.update : undefined;
33
+ resourceInputs["stderr"] = undefined /*out*/;
34
+ resourceInputs["stdout"] = undefined /*out*/;
30
35
  }
31
36
  else {
32
- inputs["connection"] = undefined /*out*/;
33
- inputs["create"] = undefined /*out*/;
34
- inputs["delete"] = undefined /*out*/;
35
- inputs["environment"] = undefined /*out*/;
36
- inputs["stderr"] = undefined /*out*/;
37
- inputs["stdout"] = undefined /*out*/;
38
- inputs["update"] = undefined /*out*/;
37
+ resourceInputs["connection"] = undefined /*out*/;
38
+ resourceInputs["create"] = undefined /*out*/;
39
+ resourceInputs["delete"] = undefined /*out*/;
40
+ resourceInputs["environment"] = undefined /*out*/;
41
+ resourceInputs["stderr"] = undefined /*out*/;
42
+ resourceInputs["stdout"] = undefined /*out*/;
43
+ resourceInputs["update"] = undefined /*out*/;
39
44
  }
40
45
  if (!opts.version) {
41
46
  opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
42
47
  }
43
- super(Command.__pulumiType, name, inputs, opts);
48
+ super(Command.__pulumiType, name, resourceInputs, opts);
44
49
  }
45
50
  /**
46
51
  * Get an existing Command resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../remote/command.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAmC9C;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAiB,EAAE,IAAmC;QAC5E,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,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,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,C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,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;;AAzBL,0BA2FC;AA9EG,gBAAgB;AACO,oBAAY,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,58 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Copy a local file to a remote host.
5
+ */
6
+ export declare class CopyFile extends pulumi.CustomResource {
7
+ /**
8
+ * Get an existing CopyFile resource's state with the given name, ID, and optional extra
9
+ * properties used to qualify the lookup.
10
+ *
11
+ * @param name The _unique_ name of the resulting resource.
12
+ * @param id The _unique_ provider ID of the resource to lookup.
13
+ * @param opts Optional settings to control the behavior of the CustomResource.
14
+ */
15
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CopyFile;
16
+ /**
17
+ * Returns true if the given object is an instance of CopyFile. This is designed to work even
18
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
19
+ */
20
+ static isInstance(obj: any): obj is CopyFile;
21
+ /**
22
+ * The parameters with which to connect to the remote host.
23
+ */
24
+ readonly connection: pulumi.Output<outputs.remote.Connection>;
25
+ /**
26
+ * The path of the file to be copied.
27
+ */
28
+ readonly localPath: pulumi.Output<string>;
29
+ /**
30
+ * The destination path in the remote host.
31
+ */
32
+ readonly remotePath: pulumi.Output<string>;
33
+ /**
34
+ * Create a CopyFile resource with the given unique name, arguments, and options.
35
+ *
36
+ * @param name The _unique_ name of the resource.
37
+ * @param args The arguments to use to populate this resource's properties.
38
+ * @param opts A bag of options that control this resource's behavior.
39
+ */
40
+ constructor(name: string, args: CopyFileArgs, opts?: pulumi.CustomResourceOptions);
41
+ }
42
+ /**
43
+ * The set of arguments for constructing a CopyFile resource.
44
+ */
45
+ export interface CopyFileArgs {
46
+ /**
47
+ * The parameters with which to connect to the remote host.
48
+ */
49
+ connection: pulumi.Input<inputs.remote.ConnectionArgs>;
50
+ /**
51
+ * The path of the file to be copied.
52
+ */
53
+ localPath: pulumi.Input<string>;
54
+ /**
55
+ * The destination path in the remote host.
56
+ */
57
+ remotePath: pulumi.Input<string>;
58
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumigen. ***
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 types_1 = require("../types");
8
+ const utilities = require("../utilities");
9
+ /**
10
+ * Copy a local file to a remote host.
11
+ */
12
+ class CopyFile extends pulumi.CustomResource {
13
+ /**
14
+ * Create a CopyFile resource with the given unique name, arguments, and options.
15
+ *
16
+ * @param name The _unique_ name of the resource.
17
+ * @param args The arguments to use to populate this resource's properties.
18
+ * @param opts A bag of options that control this resource's behavior.
19
+ */
20
+ constructor(name, args, opts) {
21
+ let resourceInputs = {};
22
+ opts = opts || {};
23
+ if (!opts.id) {
24
+ if ((!args || args.connection === undefined) && !opts.urn) {
25
+ throw new Error("Missing required property 'connection'");
26
+ }
27
+ if ((!args || args.localPath === undefined) && !opts.urn) {
28
+ throw new Error("Missing required property 'localPath'");
29
+ }
30
+ if ((!args || args.remotePath === undefined) && !opts.urn) {
31
+ throw new Error("Missing required property 'remotePath'");
32
+ }
33
+ resourceInputs["connection"] = args ? (args.connection ? pulumi.output(args.connection).apply(types_1.input.remote.connectionArgsProvideDefaults) : undefined) : undefined;
34
+ resourceInputs["localPath"] = args ? args.localPath : undefined;
35
+ resourceInputs["remotePath"] = args ? args.remotePath : undefined;
36
+ }
37
+ else {
38
+ resourceInputs["connection"] = undefined /*out*/;
39
+ resourceInputs["localPath"] = undefined /*out*/;
40
+ resourceInputs["remotePath"] = undefined /*out*/;
41
+ }
42
+ if (!opts.version) {
43
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
44
+ }
45
+ super(CopyFile.__pulumiType, name, resourceInputs, opts);
46
+ }
47
+ /**
48
+ * Get an existing CopyFile resource's state with the given name, ID, and optional extra
49
+ * properties used to qualify the lookup.
50
+ *
51
+ * @param name The _unique_ name of the resulting resource.
52
+ * @param id The _unique_ provider ID of the resource to lookup.
53
+ * @param opts Optional settings to control the behavior of the CustomResource.
54
+ */
55
+ static get(name, id, opts) {
56
+ return new CopyFile(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
57
+ }
58
+ /**
59
+ * Returns true if the given object is an instance of CopyFile. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj) {
63
+ if (obj === undefined || obj === null) {
64
+ return false;
65
+ }
66
+ return obj['__pulumiType'] === CopyFile.__pulumiType;
67
+ }
68
+ }
69
+ exports.CopyFile = CopyFile;
70
+ /** @internal */
71
+ CopyFile.__pulumiType = 'command:remote:CopyFile';
72
+ //# sourceMappingURL=copyFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyFile.js","sourceRoot":"","sources":["../../remote/copyFile.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAEjF,yCAAyC;AACzC,oCAA8D;AAC9D,0CAA0C;AAE1C;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAwC/C;;;;;;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,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,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AC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAvED;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,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,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAzBL,4BAyEC;AA5DG,gBAAgB;AACO,qBAAY,GAAG,yBAAyB,CAAC"}
package/remote/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./command";
2
+ export * from "./copyFile";
package/remote/index.js CHANGED
@@ -16,14 +16,18 @@ const pulumi = require("@pulumi/pulumi");
16
16
  const utilities = require("../utilities");
17
17
  // Export members:
18
18
  __exportStar(require("./command"), exports);
19
+ __exportStar(require("./copyFile"), exports);
19
20
  // Import resources to register:
20
21
  const command_1 = require("./command");
22
+ const copyFile_1 = require("./copyFile");
21
23
  const _module = {
22
24
  version: utilities.getVersion(),
23
25
  construct: (name, type, urn) => {
24
26
  switch (type) {
25
27
  case "command:remote:Command":
26
28
  return new command_1.Command(name, undefined, { urn });
29
+ case "command:remote:CopyFile":
30
+ return new copyFile_1.CopyFile(name, undefined, { urn });
27
31
  default:
28
32
  throw new Error(`unknown resource type ${type}`);
29
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../remote/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB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AAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA"}
package/types/input.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  export declare namespace remote {
3
+ /**
4
+ * Instructions for how to connect to a remote endpoint.
5
+ */
3
6
  interface ConnectionArgs {
4
7
  /**
5
8
  * The address of the resource to connect to.
@@ -10,7 +13,7 @@ export declare namespace remote {
10
13
  */
11
14
  password?: pulumi.Input<string>;
12
15
  /**
13
- * The port to connect to. Defaults to 22.
16
+ * The port to connect to.
14
17
  */
15
18
  port?: pulumi.Input<number>;
16
19
  /**
@@ -19,4 +22,8 @@ export declare namespace remote {
19
22
  privateKey?: pulumi.Input<string>;
20
23
  user?: pulumi.Input<string>;
21
24
  }
25
+ /**
26
+ * connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
27
+ */
28
+ function connectionArgsProvideDefaults(val: ConnectionArgs): ConnectionArgs;
22
29
  }
package/types/input.js CHANGED
@@ -2,4 +2,16 @@
2
2
  // *** WARNING: this file was generated by pulumigen. ***
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.remote = void 0;
6
+ var remote;
7
+ (function (remote) {
8
+ /**
9
+ * connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
10
+ */
11
+ function connectionArgsProvideDefaults(val) {
12
+ var _a, _b;
13
+ return Object.assign(Object.assign({}, val), { port: (_a = (val.port)) !== null && _a !== void 0 ? _a : 22, user: (_b = (val.user)) !== null && _b !== void 0 ? _b : "root" });
14
+ }
15
+ remote.connectionArgsProvideDefaults = connectionArgsProvideDefaults;
16
+ })(remote = exports.remote || (exports.remote = {}));
5
17
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF"}
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAOjF,IAAiB,MAAM,CAiCtB;AAjCD,WAAiB,MAAM;IAuBnB;;OAEG;IACH,SAAgB,6BAA6B,CAAC,GAAmB;;QAC7D,uCACO,GAAG,KACN,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IANe,oCAA6B,gCAM5C,CAAA;AACL,CAAC,EAjCgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAiCtB"}
package/types/output.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export declare namespace remote {
2
+ /**
3
+ * Instructions for how to connect to a remote endpoint.
4
+ */
2
5
  interface Connection {
3
6
  /**
4
7
  * The address of the resource to connect to.
@@ -9,7 +12,7 @@ export declare namespace remote {
9
12
  */
10
13
  password?: string;
11
14
  /**
12
- * The port to connect to. Defaults to 22.
15
+ * The port to connect to.
13
16
  */
14
17
  port?: number;
15
18
  /**
@@ -18,4 +21,8 @@ export declare namespace remote {
18
21
  privateKey?: string;
19
22
  user?: string;
20
23
  }
24
+ /**
25
+ * connectionProvideDefaults sets the appropriate defaults for Connection
26
+ */
27
+ function connectionProvideDefaults(val: Connection): Connection;
21
28
  }
package/types/output.js CHANGED
@@ -2,4 +2,16 @@
2
2
  // *** WARNING: this file was generated by pulumigen. ***
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.remote = void 0;
6
+ var remote;
7
+ (function (remote) {
8
+ /**
9
+ * connectionProvideDefaults sets the appropriate defaults for Connection
10
+ */
11
+ function connectionProvideDefaults(val) {
12
+ var _a, _b;
13
+ return Object.assign(Object.assign({}, val), { port: (_a = (val.port)) !== null && _a !== void 0 ? _a : 22, user: (_b = (val.user)) !== null && _b !== void 0 ? _b : "root" });
14
+ }
15
+ remote.connectionProvideDefaults = connectionProvideDefaults;
16
+ })(remote = exports.remote || (exports.remote = {}));
5
17
  //# sourceMappingURL=output.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF"}
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAOjF,IAAiB,MAAM,CAkCtB;AAlCD,WAAiB,MAAM;IAuBnB;;OAEG;IACH,SAAgB,yBAAyB,CAAC,GAAe;;QACrD,uCACO,GAAG,KACN,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IANe,gCAAyB,4BAMxC,CAAA;AAEL,CAAC,EAlCgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAkCtB"}