@incident-io/pulumi 0.1.2 → 0.3.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 (152) hide show
  1. package/alertRoute.d.ts +12 -0
  2. package/alertRoute.d.ts.map +1 -1
  3. package/alertRoute.js +2 -0
  4. package/alertRoute.js.map +1 -1
  5. package/alertSource.d.ts +15 -3
  6. package/alertSource.d.ts.map +1 -1
  7. package/alertSource.js +2 -0
  8. package/alertSource.js.map +1 -1
  9. package/alertSourceBeta.d.ts +15 -3
  10. package/alertSourceBeta.d.ts.map +1 -1
  11. package/alertSourceBeta.js +2 -0
  12. package/alertSourceBeta.js.map +1 -1
  13. package/announcementRule.d.ts +247 -0
  14. package/announcementRule.d.ts.map +1 -0
  15. package/announcementRule.js +175 -0
  16. package/announcementRule.js.map +1 -0
  17. package/announcementTemplate.d.ts +157 -0
  18. package/announcementTemplate.d.ts.map +1 -0
  19. package/announcementTemplate.js +148 -0
  20. package/announcementTemplate.js.map +1 -0
  21. package/apiKey.d.ts +12 -0
  22. package/apiKey.d.ts.map +1 -1
  23. package/apiKey.js +2 -0
  24. package/apiKey.js.map +1 -1
  25. package/catalogType.d.ts +12 -0
  26. package/catalogType.d.ts.map +1 -1
  27. package/catalogType.js +2 -0
  28. package/catalogType.js.map +1 -1
  29. package/config/vars.d.ts +1 -1
  30. package/escalationPath.d.ts +69 -15
  31. package/escalationPath.d.ts.map +1 -1
  32. package/escalationPath.js +8 -6
  33. package/escalationPath.js.map +1 -1
  34. package/escalationPathBeta.d.ts +69 -15
  35. package/escalationPathBeta.d.ts.map +1 -1
  36. package/escalationPathBeta.js +8 -6
  37. package/escalationPathBeta.js.map +1 -1
  38. package/escalationPathTemplate.d.ts +318 -0
  39. package/escalationPathTemplate.d.ts.map +1 -0
  40. package/escalationPathTemplate.js +253 -0
  41. package/escalationPathTemplate.js.map +1 -0
  42. package/getAlertSource.d.ts +5 -1
  43. package/getAlertSource.d.ts.map +1 -1
  44. package/getAlertSource.js.map +1 -1
  45. package/getAnnouncementRule.d.ts +138 -0
  46. package/getAnnouncementRule.d.ts.map +1 -0
  47. package/getAnnouncementRule.js +99 -0
  48. package/getAnnouncementRule.js.map +1 -0
  49. package/getAnnouncementTemplate.d.ts +148 -0
  50. package/getAnnouncementTemplate.d.ts.map +1 -0
  51. package/getAnnouncementTemplate.js +137 -0
  52. package/getAnnouncementTemplate.js.map +1 -0
  53. package/getCatalogType.d.ts +4 -0
  54. package/getCatalogType.d.ts.map +1 -1
  55. package/getCatalogType.js.map +1 -1
  56. package/getEscalationPath.d.ts +19 -1
  57. package/getEscalationPath.d.ts.map +1 -1
  58. package/getEscalationPath.js.map +1 -1
  59. package/getEscalationPathBeta.d.ts +19 -1
  60. package/getEscalationPathBeta.d.ts.map +1 -1
  61. package/getEscalationPathBeta.js.map +1 -1
  62. package/getIncidentForm.d.ts +96 -0
  63. package/getIncidentForm.d.ts.map +1 -0
  64. package/getIncidentForm.js +89 -0
  65. package/getIncidentForm.js.map +1 -0
  66. package/getIncidentTemplate.d.ts +4 -0
  67. package/getIncidentTemplate.d.ts.map +1 -1
  68. package/getIncidentTemplate.js.map +1 -1
  69. package/getPayConfig.d.ts +130 -0
  70. package/getPayConfig.d.ts.map +1 -0
  71. package/getPayConfig.js +99 -0
  72. package/getPayConfig.js.map +1 -0
  73. package/getPolicy.d.ts +1 -1
  74. package/getScheduleSyncRule.d.ts +4 -0
  75. package/getScheduleSyncRule.d.ts.map +1 -1
  76. package/getScheduleSyncRule.js.map +1 -1
  77. package/getStatusPage.d.ts +95 -0
  78. package/getStatusPage.d.ts.map +1 -0
  79. package/getStatusPage.js +93 -0
  80. package/getStatusPage.js.map +1 -0
  81. package/getStatusPageComponent.d.ts +75 -0
  82. package/getStatusPageComponent.d.ts.map +1 -0
  83. package/getStatusPageComponent.js +81 -0
  84. package/getStatusPageComponent.js.map +1 -0
  85. package/getUser.d.ts +24 -6
  86. package/getUser.d.ts.map +1 -1
  87. package/getUser.js.map +1 -1
  88. package/getWorkflow.d.ts +1 -0
  89. package/getWorkflow.d.ts.map +1 -1
  90. package/getWorkflow.js.map +1 -1
  91. package/incidentForm.d.ts +424 -0
  92. package/incidentForm.d.ts.map +1 -0
  93. package/incidentForm.js +408 -0
  94. package/incidentForm.js.map +1 -0
  95. package/incidentTemplate.d.ts +12 -0
  96. package/incidentTemplate.d.ts.map +1 -1
  97. package/incidentTemplate.js +2 -0
  98. package/incidentTemplate.js.map +1 -1
  99. package/index.d.ts +42 -0
  100. package/index.d.ts.map +1 -1
  101. package/index.js +61 -2
  102. package/index.js.map +1 -1
  103. package/package.json +2 -2
  104. package/payConfig.d.ts +258 -0
  105. package/payConfig.d.ts.map +1 -0
  106. package/payConfig.js +213 -0
  107. package/payConfig.js.map +1 -0
  108. package/policy.d.ts +73 -17
  109. package/policy.d.ts.map +1 -1
  110. package/policy.js +42 -6
  111. package/policy.js.map +1 -1
  112. package/provider.d.ts +1 -1
  113. package/schedule.d.ts +12 -0
  114. package/schedule.d.ts.map +1 -1
  115. package/schedule.js +2 -0
  116. package/schedule.js.map +1 -1
  117. package/scheduleBeta.d.ts +12 -0
  118. package/scheduleBeta.d.ts.map +1 -1
  119. package/scheduleBeta.js +2 -0
  120. package/scheduleBeta.js.map +1 -1
  121. package/scheduleSyncRule.d.ts +12 -0
  122. package/scheduleSyncRule.d.ts.map +1 -1
  123. package/scheduleSyncRule.js +2 -0
  124. package/scheduleSyncRule.js.map +1 -1
  125. package/scheduleSyncTarget.d.ts +12 -0
  126. package/scheduleSyncTarget.d.ts.map +1 -1
  127. package/scheduleSyncTarget.js +2 -0
  128. package/scheduleSyncTarget.js.map +1 -1
  129. package/secret.d.ts +12 -0
  130. package/secret.d.ts.map +1 -1
  131. package/secret.js +2 -0
  132. package/secret.js.map +1 -1
  133. package/statusPageComponent.d.ts +120 -0
  134. package/statusPageComponent.d.ts.map +1 -0
  135. package/statusPageComponent.js +123 -0
  136. package/statusPageComponent.js.map +1 -0
  137. package/statusPageStructure.d.ts +151 -0
  138. package/statusPageStructure.d.ts.map +1 -0
  139. package/statusPageStructure.js +148 -0
  140. package/statusPageStructure.js.map +1 -0
  141. package/teamGroupingPreference.d.ts +164 -0
  142. package/teamGroupingPreference.d.ts.map +1 -0
  143. package/teamGroupingPreference.js +165 -0
  144. package/teamGroupingPreference.js.map +1 -0
  145. package/types/input.d.ts +5722 -4067
  146. package/types/input.d.ts.map +1 -1
  147. package/types/output.d.ts +4932 -2641
  148. package/types/output.d.ts.map +1 -1
  149. package/workflow.d.ts +12 -0
  150. package/workflow.d.ts.map +1 -1
  151. package/workflow.js +2 -0
  152. package/workflow.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"catalogType.js","sourceRoot":"","sources":["../catalogType.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,wCAAwC,CAAC;IAE/E;;;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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;Q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,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA3GL,kCA4GC"}
package/config/vars.d.ts CHANGED
@@ -7,7 +7,7 @@ export declare const apiKey: string | undefined;
7
7
  */
8
8
  export declare const endpoint: string | undefined;
9
9
  /**
10
- * Whether importing a resource claims it as managed by Terraform, which is what stops people editing it in the incident.io dashboard. Defaults to `true`. Terraform runs imports during `plan` rather than apply, so this claim is a write to your account during an operation you may expect to be read-only: set this to `false` if plans must leave your account untouched. Creating or updating a resource claims it regardless of this setting, so a resource imported with this off is claimed by the first apply that changes it. It stays editable in the dashboard until then, and indefinitely if its configuration already matches the account and so never produces a change to apply.
10
+ * Whether importing a resource claims it as managed by Terraform, which is what stops people editing it in the incident.io dashboard. Defaults to `true`. Terraform runs imports during `plan` rather than apply, so this claim is a write to your account during an operation you may expect to be read-only: set this to `false` if plans must leave your account untouched. Creating or updating a resource claims it regardless of this setting, unless that resource sets `unlockInDashboard`, so a resource imported with this off is claimed by the first apply that changes it. It stays editable in the dashboard until then, and indefinitely if its configuration already matches the account and so never produces a change to apply.
11
11
  */
12
12
  export declare const markImportedResourcesAsManaged: boolean | undefined;
13
13
  //# sourceMappingURL=vars.d.ts.map
@@ -157,30 +157,48 @@ export declare class EscalationPath extends pulumi.CustomResource {
157
157
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
158
158
  */
159
159
  static isInstance(obj: any): obj is EscalationPath;
160
+ /**
161
+ * Whether this path carries its own nodes, or is built from an escalation path template. Possible values are: `standalone`, `templated`. Leave it out for a standalone path. A path is one kind for life, so changing this replaces it.
162
+ */
163
+ readonly kind: pulumi.Output<string>;
160
164
  /**
161
165
  * The name of this escalation path, for the user's reference.
162
166
  */
163
167
  readonly name: pulumi.Output<string>;
168
+ /**
169
+ * For a templated path, a value for each of the template's `params`, keyed by the param's `name`. Bindings are values, not references: a schedule param takes `valueLiteral = <schedule id>`.
170
+ */
171
+ readonly paramBindings: pulumi.Output<{
172
+ [key: string]: outputs.EscalationPathParamBindings;
173
+ } | undefined>;
164
174
  /**
165
175
  * Controls if an escalation will repeat after acknowledgement, when the alert is unresolved. When configured, it will repeat after the specified delay.
166
176
  */
167
177
  readonly repeatConfig: pulumi.Output<outputs.EscalationPathRepeatConfig | undefined>;
168
178
  /**
169
- * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key.
179
+ * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key. Required unless `kind` is `templated`.
170
180
  */
171
181
  readonly sequences: pulumi.Output<{
172
182
  [key: string]: outputs.EscalationPathSequences;
173
- }>;
183
+ } | undefined>;
174
184
  /**
175
- * The key of the sequence this escalation path begins with.
185
+ * The key of the sequence this escalation path begins with. Required unless `kind` is `templated`.
176
186
  */
177
- readonly start: pulumi.Output<string>;
187
+ readonly start: pulumi.Output<string | undefined>;
178
188
  /**
179
189
  * IDs of the teams that own this escalation path. This will automatically sync escalation paths with the right teams in Catalog. If you have an escalation paths attribute on your Teams, this attribute is required.
180
190
  */
181
191
  readonly teamIds: pulumi.Output<string[] | undefined>;
182
192
  /**
183
- * The working hours for this escalation path.
193
+ * The `incident.EscalationPathTemplate` to build this path from, required when `kind` is `templated`. A templated path takes its nodes, working hours and repeat config from the template, so set `paramBindings` in place of `start` and `sequences`. Switching to a different template is an in-place update.
194
+ */
195
+ readonly templateId: pulumi.Output<string | undefined>;
196
+ /**
197
+ * Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
198
+ */
199
+ readonly unlockInDashboard: pulumi.Output<boolean | undefined>;
200
+ /**
201
+ * The working hours for this escalation path. Absent for a templated path, which takes them from its template.
184
202
  */
185
203
  readonly workingHours: pulumi.Output<outputs.EscalationPathWorkingHour[] | undefined>;
186
204
  /**
@@ -190,28 +208,38 @@ export declare class EscalationPath extends pulumi.CustomResource {
190
208
  * @param args The arguments to use to populate this resource's properties.
191
209
  * @param opts A bag of options that control this resource's behavior.
192
210
  */
193
- constructor(name: string, args: EscalationPathArgs, opts?: pulumi.CustomResourceOptions);
211
+ constructor(name: string, args?: EscalationPathArgs, opts?: pulumi.CustomResourceOptions);
194
212
  }
195
213
  /**
196
214
  * Input properties used for looking up and filtering EscalationPath resources.
197
215
  */
198
216
  export interface EscalationPathState {
217
+ /**
218
+ * Whether this path carries its own nodes, or is built from an escalation path template. Possible values are: `standalone`, `templated`. Leave it out for a standalone path. A path is one kind for life, so changing this replaces it.
219
+ */
220
+ kind?: pulumi.Input<string | undefined>;
199
221
  /**
200
222
  * The name of this escalation path, for the user's reference.
201
223
  */
202
224
  name?: pulumi.Input<string | undefined>;
225
+ /**
226
+ * For a templated path, a value for each of the template's `params`, keyed by the param's `name`. Bindings are values, not references: a schedule param takes `valueLiteral = <schedule id>`.
227
+ */
228
+ paramBindings?: pulumi.Input<{
229
+ [key: string]: pulumi.Input<inputs.EscalationPathParamBindings>;
230
+ } | undefined>;
203
231
  /**
204
232
  * Controls if an escalation will repeat after acknowledgement, when the alert is unresolved. When configured, it will repeat after the specified delay.
205
233
  */
206
234
  repeatConfig?: pulumi.Input<inputs.EscalationPathRepeatConfig | undefined>;
207
235
  /**
208
- * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key.
236
+ * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key. Required unless `kind` is `templated`.
209
237
  */
210
238
  sequences?: pulumi.Input<{
211
239
  [key: string]: pulumi.Input<inputs.EscalationPathSequences>;
212
240
  } | undefined>;
213
241
  /**
214
- * The key of the sequence this escalation path begins with.
242
+ * The key of the sequence this escalation path begins with. Required unless `kind` is `templated`.
215
243
  */
216
244
  start?: pulumi.Input<string | undefined>;
217
245
  /**
@@ -219,7 +247,15 @@ export interface EscalationPathState {
219
247
  */
220
248
  teamIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
221
249
  /**
222
- * The working hours for this escalation path.
250
+ * The `incident.EscalationPathTemplate` to build this path from, required when `kind` is `templated`. A templated path takes its nodes, working hours and repeat config from the template, so set `paramBindings` in place of `start` and `sequences`. Switching to a different template is an in-place update.
251
+ */
252
+ templateId?: pulumi.Input<string | undefined>;
253
+ /**
254
+ * Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
255
+ */
256
+ unlockInDashboard?: pulumi.Input<boolean | undefined>;
257
+ /**
258
+ * The working hours for this escalation path. Absent for a templated path, which takes them from its template.
223
259
  */
224
260
  workingHours?: pulumi.Input<pulumi.Input<inputs.EscalationPathWorkingHour>[] | undefined>;
225
261
  }
@@ -227,30 +263,48 @@ export interface EscalationPathState {
227
263
  * The set of arguments for constructing a EscalationPath resource.
228
264
  */
229
265
  export interface EscalationPathArgs {
266
+ /**
267
+ * Whether this path carries its own nodes, or is built from an escalation path template. Possible values are: `standalone`, `templated`. Leave it out for a standalone path. A path is one kind for life, so changing this replaces it.
268
+ */
269
+ kind?: pulumi.Input<string | undefined>;
230
270
  /**
231
271
  * The name of this escalation path, for the user's reference.
232
272
  */
233
273
  name?: pulumi.Input<string | undefined>;
274
+ /**
275
+ * For a templated path, a value for each of the template's `params`, keyed by the param's `name`. Bindings are values, not references: a schedule param takes `valueLiteral = <schedule id>`.
276
+ */
277
+ paramBindings?: pulumi.Input<{
278
+ [key: string]: pulumi.Input<inputs.EscalationPathParamBindings>;
279
+ } | undefined>;
234
280
  /**
235
281
  * Controls if an escalation will repeat after acknowledgement, when the alert is unresolved. When configured, it will repeat after the specified delay.
236
282
  */
237
283
  repeatConfig?: pulumi.Input<inputs.EscalationPathRepeatConfig | undefined>;
238
284
  /**
239
- * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key.
285
+ * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key. Required unless `kind` is `templated`.
240
286
  */
241
- sequences: pulumi.Input<{
287
+ sequences?: pulumi.Input<{
242
288
  [key: string]: pulumi.Input<inputs.EscalationPathSequences>;
243
- }>;
289
+ } | undefined>;
244
290
  /**
245
- * The key of the sequence this escalation path begins with.
291
+ * The key of the sequence this escalation path begins with. Required unless `kind` is `templated`.
246
292
  */
247
- start: pulumi.Input<string>;
293
+ start?: pulumi.Input<string | undefined>;
248
294
  /**
249
295
  * IDs of the teams that own this escalation path. This will automatically sync escalation paths with the right teams in Catalog. If you have an escalation paths attribute on your Teams, this attribute is required.
250
296
  */
251
297
  teamIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
252
298
  /**
253
- * The working hours for this escalation path.
299
+ * The `incident.EscalationPathTemplate` to build this path from, required when `kind` is `templated`. A templated path takes its nodes, working hours and repeat config from the template, so set `paramBindings` in place of `start` and `sequences`. Switching to a different template is an in-place update.
300
+ */
301
+ templateId?: pulumi.Input<string | undefined>;
302
+ /**
303
+ * Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
304
+ */
305
+ unlockInDashboard?: pulumi.Input<boolean | undefined>;
306
+ /**
307
+ * The working hours for this escalation path. Absent for a templated path, which takes them from its template.
254
308
  */
255
309
  workingHours?: pulumi.Input<pulumi.Input<inputs.EscalationPathWorkingHour>[] | undefined>;
256
310
  }
@@ -1 +1 @@
1
- {"version":3,"file":"escalationPath.d.ts","sourceRoot":"","sources":["../escalationPath.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2IG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GA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KAAC,GAAG,SAAS,CAAC,CAAC;IACpG;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,yBAAyB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC7F"}
package/escalationPath.js CHANGED
@@ -198,26 +198,28 @@ class EscalationPath extends pulumi.CustomResource {
198
198
  opts = opts || {};
199
199
  if (opts.id) {
200
200
  const state = argsOrState;
201
+ resourceInputs["kind"] = state?.kind;
201
202
  resourceInputs["name"] = state?.name;
203
+ resourceInputs["paramBindings"] = state?.paramBindings;
202
204
  resourceInputs["repeatConfig"] = state?.repeatConfig;
203
205
  resourceInputs["sequences"] = state?.sequences;
204
206
  resourceInputs["start"] = state?.start;
205
207
  resourceInputs["teamIds"] = state?.teamIds;
208
+ resourceInputs["templateId"] = state?.templateId;
209
+ resourceInputs["unlockInDashboard"] = state?.unlockInDashboard;
206
210
  resourceInputs["workingHours"] = state?.workingHours;
207
211
  }
208
212
  else {
209
213
  const args = argsOrState;
210
- if (args?.sequences === undefined && !opts.urn) {
211
- throw new Error("Missing required property 'sequences'");
212
- }
213
- if (args?.start === undefined && !opts.urn) {
214
- throw new Error("Missing required property 'start'");
215
- }
214
+ resourceInputs["kind"] = args?.kind;
216
215
  resourceInputs["name"] = args?.name;
216
+ resourceInputs["paramBindings"] = args?.paramBindings;
217
217
  resourceInputs["repeatConfig"] = args?.repeatConfig;
218
218
  resourceInputs["sequences"] = args?.sequences;
219
219
  resourceInputs["start"] = args?.start;
220
220
  resourceInputs["teamIds"] = args?.teamIds;
221
+ resourceInputs["templateId"] = args?.templateId;
222
+ resourceInputs["unlockInDashboard"] = args?.unlockInDashboard;
221
223
  resourceInputs["workingHours"] = args?.workingHours;
222
224
  }
223
225
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"escalationPath.js","sourceRoot":"","sources":["../escalationPath.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2IG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8CAA8C,CAAC;IAErF;;;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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAmCD,YAAY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AAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA3GL,wCA4GC"}
@@ -34,30 +34,48 @@ export declare class EscalationPathBeta extends pulumi.CustomResource {
34
34
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
35
  */
36
36
  static isInstance(obj: any): obj is EscalationPathBeta;
37
+ /**
38
+ * Whether this path carries its own nodes, or is built from an escalation path template. Possible values are: `standalone`, `templated`. Leave it out for a standalone path. A path is one kind for life, so changing this replaces it.
39
+ */
40
+ readonly kind: pulumi.Output<string>;
37
41
  /**
38
42
  * The name of this escalation path, for the user's reference.
39
43
  */
40
44
  readonly name: pulumi.Output<string>;
45
+ /**
46
+ * For a templated path, a value for each of the template's `params`, keyed by the param's `name`. Bindings are values, not references: a schedule param takes `valueLiteral = <schedule id>`.
47
+ */
48
+ readonly paramBindings: pulumi.Output<{
49
+ [key: string]: outputs.EscalationPathBetaParamBindings;
50
+ } | undefined>;
41
51
  /**
42
52
  * Controls if an escalation will repeat after acknowledgement, when the alert is unresolved. When configured, it will repeat after the specified delay.
43
53
  */
44
54
  readonly repeatConfig: pulumi.Output<outputs.EscalationPathBetaRepeatConfig | undefined>;
45
55
  /**
46
- * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key.
56
+ * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key. Required unless `kind` is `templated`.
47
57
  */
48
58
  readonly sequences: pulumi.Output<{
49
59
  [key: string]: outputs.EscalationPathBetaSequences;
50
- }>;
60
+ } | undefined>;
51
61
  /**
52
- * The key of the sequence this escalation path begins with.
62
+ * The key of the sequence this escalation path begins with. Required unless `kind` is `templated`.
53
63
  */
54
- readonly start: pulumi.Output<string>;
64
+ readonly start: pulumi.Output<string | undefined>;
55
65
  /**
56
66
  * IDs of the teams that own this escalation path. This will automatically sync escalation paths with the right teams in Catalog. If you have an escalation paths attribute on your Teams, this attribute is required.
57
67
  */
58
68
  readonly teamIds: pulumi.Output<string[] | undefined>;
59
69
  /**
60
- * The working hours for this escalation path.
70
+ * The `incident.EscalationPathTemplate` to build this path from, required when `kind` is `templated`. A templated path takes its nodes, working hours and repeat config from the template, so set `paramBindings` in place of `start` and `sequences`. Switching to a different template is an in-place update.
71
+ */
72
+ readonly templateId: pulumi.Output<string | undefined>;
73
+ /**
74
+ * Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
75
+ */
76
+ readonly unlockInDashboard: pulumi.Output<boolean | undefined>;
77
+ /**
78
+ * The working hours for this escalation path. Absent for a templated path, which takes them from its template.
61
79
  */
62
80
  readonly workingHours: pulumi.Output<outputs.EscalationPathBetaWorkingHour[] | undefined>;
63
81
  /**
@@ -67,28 +85,38 @@ export declare class EscalationPathBeta extends pulumi.CustomResource {
67
85
  * @param args The arguments to use to populate this resource's properties.
68
86
  * @param opts A bag of options that control this resource's behavior.
69
87
  */
70
- constructor(name: string, args: EscalationPathBetaArgs, opts?: pulumi.CustomResourceOptions);
88
+ constructor(name: string, args?: EscalationPathBetaArgs, opts?: pulumi.CustomResourceOptions);
71
89
  }
72
90
  /**
73
91
  * Input properties used for looking up and filtering EscalationPathBeta resources.
74
92
  */
75
93
  export interface EscalationPathBetaState {
94
+ /**
95
+ * Whether this path carries its own nodes, or is built from an escalation path template. Possible values are: `standalone`, `templated`. Leave it out for a standalone path. A path is one kind for life, so changing this replaces it.
96
+ */
97
+ kind?: pulumi.Input<string | undefined>;
76
98
  /**
77
99
  * The name of this escalation path, for the user's reference.
78
100
  */
79
101
  name?: pulumi.Input<string | undefined>;
102
+ /**
103
+ * For a templated path, a value for each of the template's `params`, keyed by the param's `name`. Bindings are values, not references: a schedule param takes `valueLiteral = <schedule id>`.
104
+ */
105
+ paramBindings?: pulumi.Input<{
106
+ [key: string]: pulumi.Input<inputs.EscalationPathBetaParamBindings>;
107
+ } | undefined>;
80
108
  /**
81
109
  * Controls if an escalation will repeat after acknowledgement, when the alert is unresolved. When configured, it will repeat after the specified delay.
82
110
  */
83
111
  repeatConfig?: pulumi.Input<inputs.EscalationPathBetaRepeatConfig | undefined>;
84
112
  /**
85
- * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key.
113
+ * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key. Required unless `kind` is `templated`.
86
114
  */
87
115
  sequences?: pulumi.Input<{
88
116
  [key: string]: pulumi.Input<inputs.EscalationPathBetaSequences>;
89
117
  } | undefined>;
90
118
  /**
91
- * The key of the sequence this escalation path begins with.
119
+ * The key of the sequence this escalation path begins with. Required unless `kind` is `templated`.
92
120
  */
93
121
  start?: pulumi.Input<string | undefined>;
94
122
  /**
@@ -96,7 +124,15 @@ export interface EscalationPathBetaState {
96
124
  */
97
125
  teamIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
98
126
  /**
99
- * The working hours for this escalation path.
127
+ * The `incident.EscalationPathTemplate` to build this path from, required when `kind` is `templated`. A templated path takes its nodes, working hours and repeat config from the template, so set `paramBindings` in place of `start` and `sequences`. Switching to a different template is an in-place update.
128
+ */
129
+ templateId?: pulumi.Input<string | undefined>;
130
+ /**
131
+ * Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
132
+ */
133
+ unlockInDashboard?: pulumi.Input<boolean | undefined>;
134
+ /**
135
+ * The working hours for this escalation path. Absent for a templated path, which takes them from its template.
100
136
  */
101
137
  workingHours?: pulumi.Input<pulumi.Input<inputs.EscalationPathBetaWorkingHour>[] | undefined>;
102
138
  }
@@ -104,30 +140,48 @@ export interface EscalationPathBetaState {
104
140
  * The set of arguments for constructing a EscalationPathBeta resource.
105
141
  */
106
142
  export interface EscalationPathBetaArgs {
143
+ /**
144
+ * Whether this path carries its own nodes, or is built from an escalation path template. Possible values are: `standalone`, `templated`. Leave it out for a standalone path. A path is one kind for life, so changing this replaces it.
145
+ */
146
+ kind?: pulumi.Input<string | undefined>;
107
147
  /**
108
148
  * The name of this escalation path, for the user's reference.
109
149
  */
110
150
  name?: pulumi.Input<string | undefined>;
151
+ /**
152
+ * For a templated path, a value for each of the template's `params`, keyed by the param's `name`. Bindings are values, not references: a schedule param takes `valueLiteral = <schedule id>`.
153
+ */
154
+ paramBindings?: pulumi.Input<{
155
+ [key: string]: pulumi.Input<inputs.EscalationPathBetaParamBindings>;
156
+ } | undefined>;
111
157
  /**
112
158
  * Controls if an escalation will repeat after acknowledgement, when the alert is unresolved. When configured, it will repeat after the specified delay.
113
159
  */
114
160
  repeatConfig?: pulumi.Input<inputs.EscalationPathBetaRepeatConfig | undefined>;
115
161
  /**
116
- * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key.
162
+ * Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key. Required unless `kind` is `templated`.
117
163
  */
118
- sequences: pulumi.Input<{
164
+ sequences?: pulumi.Input<{
119
165
  [key: string]: pulumi.Input<inputs.EscalationPathBetaSequences>;
120
- }>;
166
+ } | undefined>;
121
167
  /**
122
- * The key of the sequence this escalation path begins with.
168
+ * The key of the sequence this escalation path begins with. Required unless `kind` is `templated`.
123
169
  */
124
- start: pulumi.Input<string>;
170
+ start?: pulumi.Input<string | undefined>;
125
171
  /**
126
172
  * IDs of the teams that own this escalation path. This will automatically sync escalation paths with the right teams in Catalog. If you have an escalation paths attribute on your Teams, this attribute is required.
127
173
  */
128
174
  teamIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
129
175
  /**
130
- * The working hours for this escalation path.
176
+ * The `incident.EscalationPathTemplate` to build this path from, required when `kind` is `templated`. A templated path takes its nodes, working hours and repeat config from the template, so set `paramBindings` in place of `start` and `sequences`. Switching to a different template is an in-place update.
177
+ */
178
+ templateId?: pulumi.Input<string | undefined>;
179
+ /**
180
+ * Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
181
+ */
182
+ unlockInDashboard?: pulumi.Input<boolean | undefined>;
183
+ /**
184
+ * The working hours for this escalation path. Absent for a templated path, which takes them from its template.
131
185
  */
132
186
  workingHours?: pulumi.Input<pulumi.Input<inputs.EscalationPathBetaWorkingHour>[] | undefined>;
133
187
  }
@@ -1 +1 @@
1
- {"version":3,"file":"escalationPathBeta.d.ts","sourceRoot":"","sources":["../escalationPathBeta.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;GAgBG;AACH,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CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACxG;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACjG"}
@@ -75,26 +75,28 @@ class EscalationPathBeta extends pulumi.CustomResource {
75
75
  opts = opts || {};
76
76
  if (opts.id) {
77
77
  const state = argsOrState;
78
+ resourceInputs["kind"] = state?.kind;
78
79
  resourceInputs["name"] = state?.name;
80
+ resourceInputs["paramBindings"] = state?.paramBindings;
79
81
  resourceInputs["repeatConfig"] = state?.repeatConfig;
80
82
  resourceInputs["sequences"] = state?.sequences;
81
83
  resourceInputs["start"] = state?.start;
82
84
  resourceInputs["teamIds"] = state?.teamIds;
85
+ resourceInputs["templateId"] = state?.templateId;
86
+ resourceInputs["unlockInDashboard"] = state?.unlockInDashboard;
83
87
  resourceInputs["workingHours"] = state?.workingHours;
84
88
  }
85
89
  else {
86
90
  const args = argsOrState;
87
- if (args?.sequences === undefined && !opts.urn) {
88
- throw new Error("Missing required property 'sequences'");
89
- }
90
- if (args?.start === undefined && !opts.urn) {
91
- throw new Error("Missing required property 'start'");
92
- }
91
+ resourceInputs["kind"] = args?.kind;
93
92
  resourceInputs["name"] = args?.name;
93
+ resourceInputs["paramBindings"] = args?.paramBindings;
94
94
  resourceInputs["repeatConfig"] = args?.repeatConfig;
95
95
  resourceInputs["sequences"] = args?.sequences;
96
96
  resourceInputs["start"] = args?.start;
97
97
  resourceInputs["teamIds"] = args?.teamIds;
98
+ resourceInputs["templateId"] = args?.templateId;
99
+ resourceInputs["unlockInDashboard"] = args?.unlockInDashboard;
98
100
  resourceInputs["workingHours"] = args?.workingHours;
99
101
  }
100
102
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"escalationPathBeta.js","sourceRoot":"","sources":["../escalationPathBeta.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,sDAAsD,CAAC;IAE7F;;;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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACz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