generated from pulumi/pulumi-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathschema.json
478 lines (478 loc) · 23 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
{
"name": "command",
"displayName": "Command",
"description": "The Pulumi Command Provider enables you to execute commands and scripts either locally or remotely as part of the Pulumi resource model.",
"keywords": [
"pulumi",
"command",
"category/utility",
"kind/native"
],
"homepage": "https://pulumi.com",
"license": "Apache-2.0",
"repository": "https://github.com/pulumi/pulumi-command",
"publisher": "Pulumi",
"logoUrl": "https://raw.githubusercontent.com/pulumi/pulumi-command/master/assets/logo.svg",
"types": {
"command:remote:Connection": {
"type": "object",
"description": "Instructions for how to connect to a remote endpoint.",
"properties": {
"user": {
"type": "string",
"description": "The user that we should use for the connection.",
"default": "root"
},
"password": {
"type": "string",
"description": "The password we should use for the connection."
},
"host": {
"type": "string",
"description": "The address of the resource to connect to."
},
"port": {
"type": "number",
"description": "The port to connect to.",
"default": 22
},
"privateKey": {
"type": "string",
"description": "The contents of an SSH key to use for the connection. This takes preference over the password if provided."
},
"privateKeyPassword": {
"type": "string",
"description": "The password to use in case the private key is encrypted."
},
"agentSocketPath": {
"type": "string",
"description": "SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present."
}
},
"required": [
"host"
]
}
},
"resources": {
"command:local:Command": {
"description": "A local command to be executed.\nThis command can be inserted into the life cycles of other resources using the\n`dependsOn` or `parent` resource options. A command is considered to have\nfailed when it finished with a non-zero exit code. This will fail the CRUD step\nof the `Command` resource.",
"properties": {
"interpreter": {
"description": "The program and arguments to run the command.\nFor example: `[\"/bin/sh\", \"-c\"]`",
"type": "array",
"items": {
"type": "string"
}
},
"dir": {
"description": "The directory from which to run the command from. If `dir` does not exist, then\n`Command` will fail.",
"type": "string"
},
"environment": {
"description": "Additional environment variables available to the command's process.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"triggers": {
"type": "array",
"description": "Trigger replacements on changes to this input.",
"items": {
"$ref": "pulumi.json#/Any"
}
},
"create": {
"type": "string",
"description": "The command to run on create."
},
"delete": {
"type": "string",
"description": "The command to run on delete."
},
"update": {
"type": "string",
"description": "The command to run on update, if empty, create will run again."
},
"stdout": {
"description": "The standard output of the command's process",
"type": "string"
},
"stderr": {
"description": "The standard error of the command's process",
"type": "string"
},
"stdin": {
"description": "Pass a string to the command's process as standard in",
"type": "string"
},
"assetPaths": {
"description": "A list of path globs to read after the command completes.",
"type": "array",
"items": {
"type": "string"
}
},
"archivePaths": {
"description": "A list of path globs to return as a single archive asset after the command completes.",
"type": "array",
"items": {
"type": "string"
}
},
"assets": {
"description": "A map of assets found after running the command.\nThe key is the relative path from the command dir",
"type": "object",
"additionalProperties": {
"$ref": "pulumi.json#/Asset"
}
},
"archive": {
"description": "An archive asset containing files found after running the command.",
"$ref": "pulumi.json#/Archive"
}
},
"required": [
"stdout",
"stderr"
],
"inputProperties": {
"interpreter": {
"description": "The program and arguments to run the command.\nOn Linux and macOS, defaults to: `[\"/bin/sh\", \"-c\"]`. On Windows, defaults to: `[\"cmd\", \"/C\"]`",
"type": "array",
"items": {
"type": "string"
}
},
"dir": {
"description": "The working directory in which to run the command from.",
"type": "string"
},
"environment": {
"description": "Additional environment variables available to the command's process.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"triggers": {
"type": "array",
"items": {
"$ref": "pulumi.json#/Any"
}
},
"create": {
"type": "string",
"description": "The command to run on create."
},
"delete": {
"type": "string",
"description": "The command to run on delete."
},
"update": {
"type": "string",
"description": "The command to run on update, if empty, create will run again."
},
"stdin": {
"description": "Pass a string to the command's process as standard in",
"type": "string"
},
"assetPaths": {
"description": "A list of path globs to read after the command completes.\n\nWhen specifying glob patterns the following rules apply:\n- We only include files not directories for assets and archives.\n- Path separators are `/` on all platforms - including Windows.\n- Patterns starting with `!` are 'exclude' rules.\n- Rules are evaluated in order, so exclude rules should be after inclusion rules.\n- `*` matches anything except `/`\n- `**` matches anything, _including_ `/`\n- All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.\n- For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)\n\n#### Example\n\nGiven the rules:\n```yaml\n- \"assets/**\"\n- \"src/**.js\"\n- \"!**secret.*\"\n```\n\nWhen evaluating against this folder:\n\n```yaml\n- assets/\n - logos/\n - logo.svg\n- src/\n - index.js\n - secret.js\n```\n\nThe following paths will be returned:\n\n```yaml\n- assets/logos/logo.svg\n- src/index.js\n```",
"type": "array",
"items": {
"type": "string"
}
},
"archivePaths": {
"description": "A list of path globs to return as a single archive asset after the command completes.\n\nWhen specifying glob patterns the following rules apply:\n- We only include files not directories for assets and archives.\n- Path separators are `/` on all platforms - including Windows.\n- Patterns starting with `!` are 'exclude' rules.\n- Rules are evaluated in order, so exclude rules should be after inclusion rules.\n- `*` matches anything except `/`\n- `**` matches anything, _including_ `/`\n- All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.\n- For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)\n\n#### Example\n\nGiven the rules:\n```yaml\n- \"assets/**\"\n- \"src/**.js\"\n- \"!**secret.*\"\n```\n\nWhen evaluating against this folder:\n\n```yaml\n- assets/\n - logos/\n - logo.svg\n- src/\n - index.js\n - secret.js\n```\n\nThe following paths will be returned:\n\n```yaml\n- assets/logos/logo.svg\n- src/index.js\n```",
"type": "array",
"items": {
"type": "string"
}
}
},
"requiredInputs": []
},
"command:remote:Command": {
"description": "A command to run on a remote host.\nThe connection is established via ssh.",
"properties": {
"connection": {
"description": "The parameters with which to connect to the remote host",
"secret": true,
"$ref": "#/types/command:remote:Connection"
},
"environment": {
"description": "Additional environment variables available to the command's process.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"triggers": {
"description": "Trigger replacements on changes to this input.",
"type": "array",
"items": {
"$ref": "pulumi.json#/Any"
}
},
"create": {
"description": "The command to run on create.",
"type": "string"
},
"delete": {
"description": "The command to run on delete.",
"type": "string"
},
"update": {
"type": "string",
"description": "The command to run on update, if empty, create will run again."
},
"stdout": {
"description": "The standard output of the command's process",
"type": "string"
},
"stderr": {
"description": "The standard error of the command's process",
"type": "string"
},
"stdin": {
"description": "Pass a string to the command's process as standard in",
"type": "string"
}
},
"required": [
"stdout",
"stderr"
],
"inputProperties": {
"connection": {
"description": "The parameters with which to connect to the remote host.",
"secret": true,
"$ref": "#/types/command:remote:Connection"
},
"environment": {
"description": "Additional environment variables available to the command's process.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"triggers": {
"description": "Trigger replacements on changes to this input.",
"type": "array",
"items": {
"$ref": "pulumi.json#/Any"
}
},
"create": {
"description": "The command to run on create.",
"type": "string"
},
"delete": {
"description": "The command to run on delete.",
"type": "string"
},
"update": {
"type": "string",
"description": "The command to run on update, if empty, create will run again."
},
"stdin": {
"description": "Pass a string to the command's process as standard in",
"type": "string"
}
},
"requiredInputs": [
"connection"
]
},
"command:remote:CopyFile": {
"description": "Copy a local file to a remote host.",
"inputProperties": {
"connection": {
"description": "The parameters with which to connect to the remote host.",
"secret": true,
"$ref": "#/types/command:remote:Connection"
},
"triggers": {
"description": "Trigger replacements on changes to this input.",
"type": "array",
"items": {
"$ref": "pulumi.json#/Any"
}
},
"localPath": {
"description": "The path of the file to be copied.",
"type": "string"
},
"remotePath": {
"description": "The destination path in the remote host.",
"type": "string"
}
},
"requiredInputs": [
"connection",
"localPath",
"remotePath"
],
"properties": {
"connection": {
"description": "The parameters with which to connect to the remote host.",
"secret": true,
"$ref": "#/types/command:remote:Connection"
},
"triggers": {
"description": "Trigger replacements on changes to this input.",
"type": "array",
"items": {
"$ref": "pulumi.json#/Any"
}
},
"localPath": {
"description": "The path of the file to be copied.",
"type": "string"
},
"remotePath": {
"description": "The destination path in the remote host.",
"type": "string"
}
},
"required": [
"connection",
"localPath",
"remotePath"
]
}
},
"functions": {
"command:local:run": {
"description": "A local command to be executed.\nThis command will always be run on any preview or deployment. Use `local.Command` to avoid duplicating executions.",
"inputs": {
"properties": {
"interpreter": {
"description": "The program and arguments to run the command.\nOn Linux and macOS, defaults to: `[\"/bin/sh\", \"-c\"]`. On Windows, defaults to: `[\"cmd\", \"/C\"]`",
"type": "array",
"items": {
"type": "string"
}
},
"dir": {
"description": "The working directory in which to run the command from.",
"type": "string"
},
"environment": {
"description": "Additional environment variables available to the command's process.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"assetPaths": {
"description": "A list of path globs to read after the command completes.\n\nWhen specifying glob patterns the following rules apply:\n- We only include files not directories for assets and archives.\n- Path separators are `/` on all platforms - including Windows.\n- Patterns starting with `!` are 'exclude' rules.\n- Rules are evaluated in order, so exclude rules should be after inclusion rules.\n- `*` matches anything except `/`\n- `**` matches anything, _including_ `/`\n- All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.\n- For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)\n\n#### Example\n\nGiven the rules:\n```yaml\n- \"assets/**\"\n- \"src/**.js\"\n- \"!**secret.*\"\n```\n\nWhen evaluating against this folder:\n\n```yaml\n- assets/\n - logos/\n - logo.svg\n- src/\n - index.js\n - secret.js\n```\n\nThe following paths will be returned:\n\n```yaml\n- assets/logos/logo.svg\n- src/index.js\n```",
"type": "array",
"items": {
"type": "string"
}
},
"archivePaths": {
"description": "A list of path globs to return as a single archive asset after the command completes.\n\nWhen specifying glob patterns the following rules apply:\n- We only include files not directories for assets and archives.\n- Path separators are `/` on all platforms - including Windows.\n- Patterns starting with `!` are 'exclude' rules.\n- Rules are evaluated in order, so exclude rules should be after inclusion rules.\n- `*` matches anything except `/`\n- `**` matches anything, _including_ `/`\n- All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.\n- For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)\n\n#### Example\n\nGiven the rules:\n```yaml\n- \"assets/**\"\n- \"src/**.js\"\n- \"!**secret.*\"\n```\n\nWhen evaluating against this folder:\n\n```yaml\n- assets/\n - logos/\n - logo.svg\n- src/\n - index.js\n - secret.js\n```\n\nThe following paths will be returned:\n\n```yaml\n- assets/logos/logo.svg\n- src/index.js\n```",
"type": "array",
"items": {
"type": "string"
}
},
"command": {
"type": "string",
"description": "The command to run."
},
"stdin": {
"description": "Pass a string to the command's process as standard in",
"type": "string"
}
},
"required": ["command"]
},
"outputs": {
"properties": {
"interpreter": {
"description": "The program and arguments to run the command.\nFor example: `[\"/bin/sh\", \"-c\"]`",
"type": "array",
"items": {
"type": "string"
}
},
"dir": {
"description": "The directory from which the command was run from.",
"type": "string"
},
"environment": {
"description": "Additional environment variables available to the command's process.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"command": {
"type": "string",
"description": "The command to run."
},
"stdout": {
"description": "The standard output of the command's process",
"type": "string"
},
"stderr": {
"description": "The standard error of the command's process",
"type": "string"
},
"stdin": {
"description": "String passed to the command's process as standard in.",
"type": "string"
},
"assets": {
"description": "A map of assets found after running the command.\nThe key is the relative path from the command dir",
"type": "object",
"additionalProperties": {
"$ref": "pulumi.json#/Asset"
}
},
"archive": {
"description": "An archive asset containing files found after running the command.",
"$ref": "pulumi.json#/Archive"
}
},
"required": ["command", "stdin", "stderr"]
}
}
},
"language": {
"java": {
"buildFiles": "gradle",
"gradleNexusPublishPluginVersion": "1.1.0",
"dependencies": {
"com.pulumi:pulumi": "0.6.0",
"com.google.code.gson:gson": "2.8.9",
"com.google.code.findbugs:jsr305": "3.0.2"
}
},
"csharp": {
"packageReferences": {
"Pulumi": "3.*"
}
},
"go": {
"generateResourceContainerTypes": true,
"importBasePath": "github.com/pulumi/pulumi-command/sdk/go/command"
},
"nodejs": {
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
}
},
"python": {
"requires": {
"pulumi": ">=3.0.0,<4.0.0"
}
}
}
}