@bambamboole/coolify 0.4.2 → 0.5.0

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 (81) hide show
  1. package/README.md +1 -1
  2. package/application.d.ts +258 -16
  3. package/application.d.ts.map +1 -0
  4. package/application.js +37 -9
  5. package/application.js.map +1 -0
  6. package/config/index.d.ts.map +1 -1
  7. package/config/index.js.map +1 -1
  8. package/config/vars.d.ts +4 -4
  9. package/config/vars.d.ts.map +1 -1
  10. package/config/vars.js +3 -2
  11. package/config/vars.js.map +1 -1
  12. package/database.d.ts +95 -17
  13. package/database.d.ts.map +1 -0
  14. package/database.js +17 -15
  15. package/database.js.map +1 -0
  16. package/deployment.d.ts +32 -3
  17. package/deployment.d.ts.map +1 -0
  18. package/deployment.js +3 -1
  19. package/deployment.js.map +1 -0
  20. package/gitHubApp.d.ts +146 -0
  21. package/gitHubApp.d.ts.map +1 -0
  22. package/gitHubApp.js +127 -0
  23. package/gitHubApp.js.map +1 -0
  24. package/index.d.ts +9 -1
  25. package/index.d.ts.map +1 -0
  26. package/index.js +16 -1
  27. package/index.js.map +1 -0
  28. package/package.json +4 -17
  29. package/privateKey.d.ts +27 -4
  30. package/privateKey.d.ts.map +1 -0
  31. package/privateKey.js +6 -1
  32. package/privateKey.js.map +1 -0
  33. package/project.d.ts +13 -4
  34. package/project.d.ts.map +1 -0
  35. package/project.js +1 -1
  36. package/project.js.map +1 -0
  37. package/provider.d.ts +7 -7
  38. package/provider.d.ts.map +1 -0
  39. package/provider.js +2 -5
  40. package/provider.js.map +1 -0
  41. package/s3storage.d.ts +46 -5
  42. package/s3storage.d.ts.map +1 -0
  43. package/s3storage.js +5 -1
  44. package/s3storage.js.map +1 -0
  45. package/scheduledTask.d.ts +94 -0
  46. package/scheduledTask.d.ts.map +1 -0
  47. package/scheduledTask.js +105 -0
  48. package/scheduledTask.js.map +1 -0
  49. package/server.d.ts +39 -3
  50. package/server.d.ts.map +1 -0
  51. package/server.js +3 -3
  52. package/server.js.map +1 -0
  53. package/types/enums/index.d.ts +59 -0
  54. package/types/enums/index.d.ts.map +1 -0
  55. package/types/enums/index.js +62 -0
  56. package/types/enums/index.js.map +1 -0
  57. package/types/index.d.ts +5 -0
  58. package/types/index.d.ts.map +1 -0
  59. package/types/index.js +36 -0
  60. package/types/index.js.map +1 -0
  61. package/types/input.d.ts +2 -0
  62. package/types/input.d.ts.map +1 -0
  63. package/{config/index.ts → types/input.js} +3 -3
  64. package/types/input.js.map +1 -0
  65. package/types/output.d.ts +2 -0
  66. package/types/output.d.ts.map +1 -0
  67. package/types/output.js +5 -0
  68. package/types/output.js.map +1 -0
  69. package/utilities.d.ts.map +1 -0
  70. package/utilities.js.map +1 -0
  71. package/application.ts +0 -181
  72. package/config/vars.ts +0 -31
  73. package/database.ts +0 -146
  74. package/deployment.ts +0 -100
  75. package/index.ts +0 -88
  76. package/privateKey.ts +0 -85
  77. package/project.ts +0 -90
  78. package/provider.ts +0 -70
  79. package/s3storage.ts +0 -114
  80. package/server.ts +0 -99
  81. package/utilities.ts +0 -96
package/index.d.ts CHANGED
@@ -7,6 +7,9 @@ export declare const Database: typeof import("./database").Database;
7
7
  export { DeploymentArgs } from "./deployment";
8
8
  export type Deployment = import("./deployment").Deployment;
9
9
  export declare const Deployment: typeof import("./deployment").Deployment;
10
+ export { GitHubAppArgs } from "./gitHubApp";
11
+ export type GitHubApp = import("./gitHubApp").GitHubApp;
12
+ export declare const GitHubApp: typeof import("./gitHubApp").GitHubApp;
10
13
  export { PrivateKeyArgs } from "./privateKey";
11
14
  export type PrivateKey = import("./privateKey").PrivateKey;
12
15
  export declare const PrivateKey: typeof import("./privateKey").PrivateKey;
@@ -19,9 +22,14 @@ export declare const Provider: typeof import("./provider").Provider;
19
22
  export { S3StorageArgs } from "./s3storage";
20
23
  export type S3Storage = import("./s3storage").S3Storage;
21
24
  export declare const S3Storage: typeof import("./s3storage").S3Storage;
25
+ export { ScheduledTaskArgs } from "./scheduledTask";
26
+ export type ScheduledTask = import("./scheduledTask").ScheduledTask;
27
+ export declare const ScheduledTask: typeof import("./scheduledTask").ScheduledTask;
22
28
  export { ServerArgs } from "./server";
23
29
  export type Server = import("./server").Server;
24
30
  export declare const Server: typeof import("./server").Server;
31
+ export * from "./types/enums";
25
32
  import * as config from "./config";
26
- export { config, };
33
+ import * as types from "./types";
34
+ export { config, types, };
27
35
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,eAAe,EAAE,WAAW,CAAC;AAC9D,eAAO,MAAM,WAAW,EAAE,cAAc,eAAe,EAAE,WAAyB,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,OAAO,YAAY,EAAE,QAAQ,CAAC;AACrD,eAAO,MAAM,QAAQ,EAAE,cAAc,YAAY,EAAE,QAAsB,CAAC;AAG1E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,OAAO,cAAc,EAAE,UAAU,CAAC;AAC3D,eAAO,MAAM,UAAU,EAAE,cAAc,cAAc,EAAE,UAAwB,CAAC;AAGhF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,OAAO,aAAa,EAAE,SAAS,CAAC;AACxD,eAAO,MAAM,SAAS,EAAE,cAAc,aAAa,EAAE,SAAuB,CAAC;AAG7E,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,OAAO,cAAc,EAAE,UAAU,CAAC;AAC3D,eAAO,MAAM,UAAU,EAAE,cAAc,cAAc,EAAE,UAAwB,CAAC;AAGhF,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,MAAM,MAAM,OAAO,GAAG,OAAO,WAAW,EAAE,OAAO,CAAC;AAClD,eAAO,MAAM,OAAO,EAAE,cAAc,WAAW,EAAE,OAAqB,CAAC;AAGvE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,OAAO,YAAY,EAAE,QAAQ,CAAC;AACrD,eAAO,MAAM,QAAQ,EAAE,cAAc,YAAY,EAAE,QAAsB,CAAC;AAG1E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,OAAO,aAAa,EAAE,SAAS,CAAC;AACxD,eAAO,MAAM,SAAS,EAAE,cAAc,aAAa,EAAE,SAAuB,CAAC;AAG7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,OAAO,iBAAiB,EAAE,aAAa,CAAC;AACpE,eAAO,MAAM,aAAa,EAAE,cAAc,iBAAiB,EAAE,aAA2B,CAAC;AAGzF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,MAAM,MAAM,MAAM,GAAG,OAAO,UAAU,EAAE,MAAM,CAAC;AAC/C,eAAO,MAAM,MAAM,EAAE,cAAc,UAAU,EAAE,MAAoB,CAAC;AAKpE,cAAc,eAAe,CAAC;AAG9B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACH,MAAM,EACN,KAAK,GACR,CAAC"}
package/index.js CHANGED
@@ -24,8 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  __setModuleDefault(result, mod);
25
25
  return result;
26
26
  };
27
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
29
+ };
27
30
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.config = exports.Server = exports.S3Storage = exports.Provider = exports.Project = exports.PrivateKey = exports.Deployment = exports.Database = exports.Application = void 0;
31
+ exports.types = exports.config = exports.Server = exports.ScheduledTask = exports.S3Storage = exports.Provider = exports.Project = exports.PrivateKey = exports.GitHubApp = exports.Deployment = exports.Database = exports.Application = void 0;
29
32
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
33
  const utilities = __importStar(require("./utilities"));
31
34
  exports.Application = null;
@@ -34,6 +37,8 @@ exports.Database = null;
34
37
  utilities.lazyLoad(exports, ["Database"], () => require("./database"));
35
38
  exports.Deployment = null;
36
39
  utilities.lazyLoad(exports, ["Deployment"], () => require("./deployment"));
40
+ exports.GitHubApp = null;
41
+ utilities.lazyLoad(exports, ["GitHubApp"], () => require("./gitHubApp"));
37
42
  exports.PrivateKey = null;
38
43
  utilities.lazyLoad(exports, ["PrivateKey"], () => require("./privateKey"));
39
44
  exports.Project = null;
@@ -42,11 +47,17 @@ exports.Provider = null;
42
47
  utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
43
48
  exports.S3Storage = null;
44
49
  utilities.lazyLoad(exports, ["S3Storage"], () => require("./s3storage"));
50
+ exports.ScheduledTask = null;
51
+ utilities.lazyLoad(exports, ["ScheduledTask"], () => require("./scheduledTask"));
45
52
  exports.Server = null;
46
53
  utilities.lazyLoad(exports, ["Server"], () => require("./server"));
54
+ // Export enums:
55
+ __exportStar(require("./types/enums"), exports);
47
56
  // Export sub-modules:
48
57
  const config = __importStar(require("./config"));
49
58
  exports.config = config;
59
+ const types = __importStar(require("./types"));
60
+ exports.types = types;
50
61
  const _module = {
51
62
  version: utilities.getVersion(),
52
63
  construct: (name, type, urn) => {
@@ -57,12 +68,16 @@ const _module = {
57
68
  return new exports.Database(name, undefined, { urn });
58
69
  case "coolify:index:Deployment":
59
70
  return new exports.Deployment(name, undefined, { urn });
71
+ case "coolify:index:GitHubApp":
72
+ return new exports.GitHubApp(name, undefined, { urn });
60
73
  case "coolify:index:PrivateKey":
61
74
  return new exports.PrivateKey(name, undefined, { urn });
62
75
  case "coolify:index:Project":
63
76
  return new exports.Project(name, undefined, { urn });
64
77
  case "coolify:index:S3Storage":
65
78
  return new exports.S3Storage(name, undefined, { urn });
79
+ case "coolify:index:ScheduledTask":
80
+ return new exports.ScheduledTask(name, undefined, { urn });
66
81
  case "coolify:index:Server":
67
82
  return new exports.Server(name, undefined, { urn });
68
83
  default:
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAK5B,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAI9D,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAI5D,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EA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AA2B,EAAE;QACpF,IAAI,IAAI,KAAK,0BAA0B,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,36 +1,23 @@
1
1
  {
2
2
  "name": "@bambamboole/coolify",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "homepage": "https://coolify.io",
5
5
  "repository": "https://github.com/bambamboole/pulumi-provider-coolify",
6
6
  "license": "Apache-2.0",
7
7
  "scripts": {
8
- "build": "tsc",
9
- "prepare": "tsc"
8
+ "build": "tsc"
10
9
  },
11
10
  "dependencies": {
12
11
  "@pulumi/pulumi": "^3.142.0"
13
12
  },
14
- "devDependencies": {
15
- "@types/node": "^20",
16
- "typescript": "^4.7.0"
17
- },
18
13
  "pulumi": {
19
14
  "resource": true,
20
15
  "name": "coolify",
21
- "version": "0.4.2",
16
+ "version": "0.5.0",
22
17
  "server": "https://github.com/bambamboole/pulumi-provider-coolify/releases/download/v$%7BVERSION%7D"
23
18
  },
24
19
  "main": "index.js",
25
- "typings": "index.d.ts",
26
- "files": [
27
- "*.js",
28
- "*.d.ts",
29
- "*.ts",
30
- "config",
31
- "README.md",
32
- "LICENSE"
33
- ],
20
+ "types": "index.d.ts",
34
21
  "publishConfig": {
35
22
  "access": "public"
36
23
  }
package/privateKey.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * A Coolify SSH private key.
3
+ * A Coolify SSH private key. An existing key with the same name is adopted on create. Coolify's API cannot update keys, so changing the name or key material replaces the key.
4
4
  */
5
5
  export declare class PrivateKey extends pulumi.CustomResource {
6
6
  /**
@@ -17,12 +17,29 @@ export declare class PrivateKey extends pulumi.CustomResource {
17
17
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
18
  */
19
19
  static isInstance(obj: any): obj is PrivateKey;
20
- readonly description: pulumi.Output<string>;
20
+ /**
21
+ * Description of the private key. Applied on create only, because Coolify's API cannot update keys.
22
+ */
23
+ readonly description: pulumi.Output<string | undefined>;
24
+ /**
25
+ * Fingerprint of the key.
26
+ */
27
+ readonly fingerprint: pulumi.Output<string>;
28
+ /**
29
+ * Name of the private key. An existing key with this name is adopted. Changing it replaces the key.
30
+ */
21
31
  readonly name: pulumi.Output<string>;
32
+ /**
33
+ * PEM encoded private key material. Required to create a key that does not exist yet; adopted keys can be managed without it. Changing it replaces the key.
34
+ */
35
+ readonly privateKey: pulumi.Output<string | undefined>;
22
36
  /**
23
37
  * Public key derived from the private key.
24
38
  */
25
- readonly publicKey: pulumi.Output<string | undefined>;
39
+ readonly publicKey: pulumi.Output<string>;
40
+ /**
41
+ * UUID of the private key in Coolify.
42
+ */
26
43
  readonly uuid: pulumi.Output<string>;
27
44
  /**
28
45
  * Create a PrivateKey resource with the given unique name, arguments, and options.
@@ -37,10 +54,16 @@ export declare class PrivateKey extends pulumi.CustomResource {
37
54
  * The set of arguments for constructing a PrivateKey resource.
38
55
  */
39
56
  export interface PrivateKeyArgs {
57
+ /**
58
+ * Description of the private key. Applied on create only, because Coolify's API cannot update keys.
59
+ */
40
60
  description?: pulumi.Input<string | undefined>;
61
+ /**
62
+ * Name of the private key. An existing key with this name is adopted. Changing it replaces the key.
63
+ */
41
64
  name: pulumi.Input<string>;
42
65
  /**
43
- * PEM private key material. Required to create a missing key; never stored in state.
66
+ * PEM encoded private key material. Required to create a key that does not exist yet; adopted keys can be managed without it. Changing it replaces the key.
44
67
  */
45
68
  privateKey?: pulumi.Input<string | undefined>;
46
69
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateKey.d.ts","sourceRoot":"","sources":["../privateKey.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AAC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@ -29,7 +29,7 @@ exports.PrivateKey = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * A Coolify SSH private key.
32
+ * A Coolify SSH private key. An existing key with the same name is adopted on create. Coolify's API cannot update keys, so changing the name or key material replaces the key.
33
33
  */
34
34
  class PrivateKey extends pulumi.CustomResource {
35
35
  /**
@@ -72,16 +72,21 @@ class PrivateKey extends pulumi.CustomResource {
72
72
  resourceInputs["description"] = args?.description;
73
73
  resourceInputs["name"] = args?.name;
74
74
  resourceInputs["privateKey"] = args?.privateKey ? pulumi.secret(args.privateKey) : undefined;
75
+ resourceInputs["fingerprint"] = undefined /*out*/;
75
76
  resourceInputs["publicKey"] = undefined /*out*/;
76
77
  resourceInputs["uuid"] = undefined /*out*/;
77
78
  }
78
79
  else {
79
80
  resourceInputs["description"] = undefined /*out*/;
81
+ resourceInputs["fingerprint"] = undefined /*out*/;
80
82
  resourceInputs["name"] = undefined /*out*/;
83
+ resourceInputs["privateKey"] = undefined /*out*/;
81
84
  resourceInputs["publicKey"] = undefined /*out*/;
82
85
  resourceInputs["uuid"] = undefined /*out*/;
83
86
  }
84
87
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
88
+ const secretOpts = { additionalSecretOutputs: ["privateKey"] };
89
+ opts = pulumi.mergeOptions(opts, secretOpts);
85
90
  super(PrivateKey.__pulumiType, name, resourceInputs, opts);
86
91
  }
87
92
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateKey.js","sourceRoot":"","sources":["../privateKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5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,OAAO,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;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,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AApFL,gCAqFC"}
package/project.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * A Coolify project with its environments.
3
+ * A Coolify project with its environments. An existing project with the same name is adopted on create.
4
4
  */
5
5
  export declare class Project extends pulumi.CustomResource {
6
6
  /**
@@ -17,8 +17,17 @@ export declare class Project extends pulumi.CustomResource {
17
17
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
18
  */
19
19
  static isInstance(obj: any): obj is Project;
20
- readonly description: pulumi.Output<string>;
21
- readonly environments: pulumi.Output<string[]>;
20
+ /**
21
+ * Description of the project.
22
+ */
23
+ readonly description: pulumi.Output<string | undefined>;
24
+ /**
25
+ * Environments that must exist in the project. Only added; never removed.
26
+ */
27
+ readonly environments: pulumi.Output<string[] | undefined>;
28
+ /**
29
+ * Name of the project. An existing project with this name is adopted.
30
+ */
22
31
  readonly name: pulumi.Output<string>;
23
32
  /**
24
33
  * UUID of the project in Coolify.
@@ -46,7 +55,7 @@ export interface ProjectArgs {
46
55
  */
47
56
  environments?: pulumi.Input<pulumi.Input<string>[] | undefined>;
48
57
  /**
49
- * Name of the project.
58
+ * Name of the project. An existing project with this name is adopted.
50
59
  */
51
60
  name: pulumi.Input<string>;
52
61
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;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;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,SAAwB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAgC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE5D;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAoBnF;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAChE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
package/project.js CHANGED
@@ -29,7 +29,7 @@ exports.Project = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * A Coolify project with its environments.
32
+ * A Coolify project with its environments. An existing project with the same name is adopted on create.
33
33
  */
34
34
  class Project extends pulumi.CustomResource {
35
35
  /**
package/project.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,uBAAuB,CAAC;IAE9D;;;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;IAmBD;;;;;;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,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;aAAM;YACH,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAtEL,0BAuEC"}
package/provider.d.ts CHANGED
@@ -9,11 +9,11 @@ export declare class Provider extends pulumi.ProviderResource {
9
9
  */
10
10
  static isInstance(obj: any): obj is Provider;
11
11
  /**
12
- * Coolify read/write API token (Coolify > Security > API tokens).
12
+ * Coolify read/write API token (Coolify > Security > API tokens). Defaults to the COOLIFY_API_TOKEN environment variable.
13
13
  */
14
- readonly apiToken: pulumi.Output<string | undefined>;
14
+ readonly apiToken: pulumi.Output<string>;
15
15
  /**
16
- * Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
16
+ * Base URL of the Coolify instance without the API path, e.g. https://coolify.example.com. Defaults to the COOLIFY_BASE_URL environment variable.
17
17
  */
18
18
  readonly baseUrl: pulumi.Output<string>;
19
19
  /**
@@ -23,19 +23,19 @@ export declare class Provider extends pulumi.ProviderResource {
23
23
  * @param args The arguments to use to populate this resource's properties.
24
24
  * @param opts A bag of options that control this resource's behavior.
25
25
  */
26
- constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
26
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
27
27
  }
28
28
  /**
29
29
  * The set of arguments for constructing a Provider resource.
30
30
  */
31
31
  export interface ProviderArgs {
32
32
  /**
33
- * Coolify read/write API token (Coolify > Security > API tokens).
33
+ * Coolify read/write API token (Coolify > Security > API tokens). Defaults to the COOLIFY_API_TOKEN environment variable.
34
34
  */
35
35
  apiToken?: pulumi.Input<string | undefined>;
36
36
  /**
37
- * Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
37
+ * Base URL of the Coolify instance without the API path, e.g. https://coolify.example.com. Defaults to the COOLIFY_BASE_URL environment variable.
38
38
  */
39
- baseUrl: pulumi.Input<string>;
39
+ baseUrl?: pulumi.Input<string | undefined>;
40
40
  }
41
41
  //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;IAOnD;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxD;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEvD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,eAAe;CAY/E;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C"}
package/provider.js CHANGED
@@ -55,11 +55,8 @@ class Provider extends pulumi.ProviderResource {
55
55
  let resourceInputs = {};
56
56
  opts = opts || {};
57
57
  {
58
- if (args?.baseUrl === undefined && !opts.urn) {
59
- throw new Error("Missing required property 'baseUrl'");
60
- }
61
- resourceInputs["apiToken"] = args?.apiToken ? pulumi.secret(args.apiToken) : undefined;
62
- resourceInputs["baseUrl"] = args?.baseUrl;
58
+ resourceInputs["apiToken"] = (args?.apiToken ? pulumi.secret(args.apiToken) : undefined) ?? (utilities.getEnv("COOLIFY_API_TOKEN") || "");
59
+ resourceInputs["baseUrl"] = (args?.baseUrl) ?? (utilities.getEnv("COOLIFY_BASE_URL") || "");
63
60
  }
64
61
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
65
62
  const secretOpts = { additionalSecretOutputs: ["apiToken"] };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IACjD,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,SAAS,CAAC;IAEhD;;;OAGG;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3
+ * A Coolify S3-compatible storage destination, e.g. an R2 bucket for backups. An existing storage with the same name is adopted on create.
4
4
  */
5
5
  export declare class S3Storage extends pulumi.CustomResource {
6
6
  /**
@@ -17,15 +17,41 @@ export declare class S3Storage extends pulumi.CustomResource {
17
17
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
18
  */
19
19
  static isInstance(obj: any): obj is S3Storage;
20
+ /**
21
+ * S3 access key.
22
+ */
23
+ readonly accessKey: pulumi.Output<string>;
24
+ /**
25
+ * S3 bucket name.
26
+ */
20
27
  readonly bucket: pulumi.Output<string>;
21
- readonly description: pulumi.Output<string>;
28
+ /**
29
+ * Description of the storage.
30
+ */
31
+ readonly description: pulumi.Output<string | undefined>;
32
+ /**
33
+ * S3 endpoint URL, e.g. https://<account>.eu.r2.cloudflarestorage.com.
34
+ */
22
35
  readonly endpoint: pulumi.Output<string>;
23
36
  /**
24
37
  * Whether Coolify validated the storage as usable.
25
38
  */
26
39
  readonly isUsable: pulumi.Output<boolean>;
40
+ /**
41
+ * Name of the storage. An existing storage with this name is adopted.
42
+ */
27
43
  readonly name: pulumi.Output<string>;
28
- readonly region: pulumi.Output<string>;
44
+ /**
45
+ * S3 region ("auto" for R2).
46
+ */
47
+ readonly region: pulumi.Output<string | undefined>;
48
+ /**
49
+ * S3 secret key.
50
+ */
51
+ readonly secretKey: pulumi.Output<string>;
52
+ /**
53
+ * UUID of the storage in Coolify.
54
+ */
29
55
  readonly uuid: pulumi.Output<string>;
30
56
  /**
31
57
  * Create a S3Storage resource with the given unique name, arguments, and options.
@@ -41,16 +67,31 @@ export declare class S3Storage extends pulumi.CustomResource {
41
67
  */
42
68
  export interface S3StorageArgs {
43
69
  /**
44
- * S3 access key. Never stored in state.
70
+ * S3 access key.
45
71
  */
46
72
  accessKey: pulumi.Input<string>;
73
+ /**
74
+ * S3 bucket name.
75
+ */
47
76
  bucket: pulumi.Input<string>;
77
+ /**
78
+ * Description of the storage.
79
+ */
48
80
  description?: pulumi.Input<string | undefined>;
81
+ /**
82
+ * S3 endpoint URL, e.g. https://<account>.eu.r2.cloudflarestorage.com.
83
+ */
49
84
  endpoint: pulumi.Input<string>;
85
+ /**
86
+ * Name of the storage. An existing storage with this name is adopted.
87
+ */
50
88
  name: pulumi.Input<string>;
89
+ /**
90
+ * S3 region ("auto" for R2).
91
+ */
51
92
  region?: pulumi.Input<string | undefined>;
52
93
  /**
53
- * S3 secret key. Never stored in state.
94
+ * S3 secret key.
54
95
  */
55
96
  secretKey: pulumi.Input<string>;
56
97
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3storage.d.ts","sourceRoot":"","sources":["../s3storage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;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,SAAS;IAO5G;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS;IAOpD;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxD;;OAEG;IACH,SAAgC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD;;OAEG;IACH,SAAgC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE5D;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA4CrF;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
package/s3storage.js CHANGED
@@ -29,7 +29,7 @@ exports.S3Storage = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * A Coolify S3-compatible storage destination, e.g. an R2 bucket for backups.
32
+ * A Coolify S3-compatible storage destination, e.g. an R2 bucket for backups. An existing storage with the same name is adopted on create.
33
33
  */
34
34
  class S3Storage extends pulumi.CustomResource {
35
35
  /**
@@ -92,15 +92,19 @@ class S3Storage extends pulumi.CustomResource {
92
92
  resourceInputs["uuid"] = undefined /*out*/;
93
93
  }
94
94
  else {
95
+ resourceInputs["accessKey"] = undefined /*out*/;
95
96
  resourceInputs["bucket"] = undefined /*out*/;
96
97
  resourceInputs["description"] = undefined /*out*/;
97
98
  resourceInputs["endpoint"] = undefined /*out*/;
98
99
  resourceInputs["isUsable"] = undefined /*out*/;
99
100
  resourceInputs["name"] = undefined /*out*/;
100
101
  resourceInputs["region"] = undefined /*out*/;
102
+ resourceInputs["secretKey"] = undefined /*out*/;
101
103
  resourceInputs["uuid"] = undefined /*out*/;
102
104
  }
103
105
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
106
+ const secretOpts = { additionalSecretOutputs: ["accessKey", "secretKey"] };
107
+ opts = pulumi.mergeOptions(opts, secretOpts);
104
108
  super(S3Storage.__pulumiType, name, resourceInputs, opts);
105
109
  }
106
110
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3storage.js","sourceRoot":"","sources":["../s3storage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,SAAS,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,yBAAyB,CAAC;IAEhE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IA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C3E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAlHL,8BAmHC"}
@@ -0,0 +1,94 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * A scheduled task (cron job) on a Coolify application. An existing task with the same name on the application is adopted on create.
4
+ */
5
+ export declare class ScheduledTask extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing ScheduledTask resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ScheduledTask;
15
+ /**
16
+ * Returns true if the given object is an instance of ScheduledTask. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj: any): obj is ScheduledTask;
20
+ /**
21
+ * UUID of the Coolify application the task runs on (the uuid output of an Application resource).
22
+ */
23
+ readonly applicationUuid: pulumi.Output<string>;
24
+ /**
25
+ * Command to execute.
26
+ */
27
+ readonly command: pulumi.Output<string>;
28
+ /**
29
+ * Container to run the command in. Defaults to the application's container.
30
+ */
31
+ readonly container: pulumi.Output<string | undefined>;
32
+ /**
33
+ * Whether the task is enabled.
34
+ */
35
+ readonly enabled: pulumi.Output<boolean>;
36
+ /**
37
+ * Cron expression or Coolify shorthand such as "daily", "hourly" or "@every 5m".
38
+ */
39
+ readonly frequency: pulumi.Output<string>;
40
+ /**
41
+ * Name of the task. An existing task with this name on the application is adopted.
42
+ */
43
+ readonly name: pulumi.Output<string>;
44
+ /**
45
+ * Timeout in seconds. Leave unset to keep Coolify's default.
46
+ */
47
+ readonly timeout: pulumi.Output<number | undefined>;
48
+ /**
49
+ * UUID of the task in Coolify.
50
+ */
51
+ readonly uuid: pulumi.Output<string>;
52
+ /**
53
+ * Create a ScheduledTask resource with the given unique name, arguments, and options.
54
+ *
55
+ * @param name The _unique_ name of the resource.
56
+ * @param args The arguments to use to populate this resource's properties.
57
+ * @param opts A bag of options that control this resource's behavior.
58
+ */
59
+ constructor(name: string, args: ScheduledTaskArgs, opts?: pulumi.CustomResourceOptions);
60
+ }
61
+ /**
62
+ * The set of arguments for constructing a ScheduledTask resource.
63
+ */
64
+ export interface ScheduledTaskArgs {
65
+ /**
66
+ * UUID of the Coolify application the task runs on (the uuid output of an Application resource).
67
+ */
68
+ applicationUuid: pulumi.Input<string>;
69
+ /**
70
+ * Command to execute.
71
+ */
72
+ command: pulumi.Input<string>;
73
+ /**
74
+ * Container to run the command in. Defaults to the application's container.
75
+ */
76
+ container?: pulumi.Input<string | undefined>;
77
+ /**
78
+ * Whether the task is enabled.
79
+ */
80
+ enabled?: pulumi.Input<boolean | undefined>;
81
+ /**
82
+ * Cron expression or Coolify shorthand such as "daily", "hourly" or "@every 5m".
83
+ */
84
+ frequency: pulumi.Input<string>;
85
+ /**
86
+ * Name of the task. An existing task with this name on the application is adopted.
87
+ */
88
+ name: pulumi.Input<string>;
89
+ /**
90
+ * Timeout in seconds. Leave unset to keep Coolify's default.
91
+ */
92
+ timeout?: pulumi.Input<number | undefined>;
93
+ }
94
+ //# sourceMappingURL=scheduledTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduledTask.d.ts","sourceRoot":"","sources":["../scheduledTask.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,qBAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;OAOG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,C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