@incident-io/pulumi 0.1.0-alpha.1

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 (279) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +69 -0
  3. package/alertAttribute.d.ts +230 -0
  4. package/alertAttribute.d.ts.map +1 -0
  5. package/alertAttribute.js +219 -0
  6. package/alertAttribute.js.map +1 -0
  7. package/alertRoute.d.ts +511 -0
  8. package/alertRoute.d.ts.map +1 -0
  9. package/alertRoute.js +432 -0
  10. package/alertRoute.js.map +1 -0
  11. package/alertSource.d.ts +347 -0
  12. package/alertSource.d.ts.map +1 -0
  13. package/alertSource.js +241 -0
  14. package/alertSource.js.map +1 -0
  15. package/alertSourceAttribute.d.ts +180 -0
  16. package/alertSourceAttribute.d.ts.map +1 -0
  17. package/alertSourceAttribute.js +107 -0
  18. package/alertSourceAttribute.js.map +1 -0
  19. package/alertSourceAttributeBeta.d.ts +188 -0
  20. package/alertSourceAttributeBeta.d.ts.map +1 -0
  21. package/alertSourceAttributeBeta.js +115 -0
  22. package/alertSourceAttributeBeta.js.map +1 -0
  23. package/alertSourceBeta.d.ts +244 -0
  24. package/alertSourceBeta.d.ts.map +1 -0
  25. package/alertSourceBeta.js +138 -0
  26. package/alertSourceBeta.js.map +1 -0
  27. package/apiKey.d.ts +276 -0
  28. package/apiKey.d.ts.map +1 -0
  29. package/apiKey.js +211 -0
  30. package/apiKey.js.map +1 -0
  31. package/catalogEntries.d.ts +241 -0
  32. package/catalogEntries.d.ts.map +1 -0
  33. package/catalogEntries.js +242 -0
  34. package/catalogEntries.js.map +1 -0
  35. package/catalogEntry.d.ts +183 -0
  36. package/catalogEntry.d.ts.map +1 -0
  37. package/catalogEntry.js +159 -0
  38. package/catalogEntry.js.map +1 -0
  39. package/catalogType.d.ts +169 -0
  40. package/catalogType.d.ts.map +1 -0
  41. package/catalogType.js +132 -0
  42. package/catalogType.js.map +1 -0
  43. package/catalogTypeAttribute.d.ts +190 -0
  44. package/catalogTypeAttribute.d.ts.map +1 -0
  45. package/catalogTypeAttribute.js +153 -0
  46. package/catalogTypeAttribute.js.map +1 -0
  47. package/config/index.d.ts +2 -0
  48. package/config/index.d.ts.map +1 -0
  49. package/config/index.js +21 -0
  50. package/config/index.js.map +1 -0
  51. package/config/vars.d.ts +13 -0
  52. package/config/vars.d.ts.map +1 -0
  53. package/config/vars.js +49 -0
  54. package/config/vars.js.map +1 -0
  55. package/customField.d.ts +260 -0
  56. package/customField.d.ts.map +1 -0
  57. package/customField.js +226 -0
  58. package/customField.js.map +1 -0
  59. package/customFieldOption.d.ts +107 -0
  60. package/customFieldOption.d.ts.map +1 -0
  61. package/customFieldOption.js +116 -0
  62. package/customFieldOption.js.map +1 -0
  63. package/escalationPath.d.ts +257 -0
  64. package/escalationPath.d.ts.map +1 -0
  65. package/escalationPath.js +228 -0
  66. package/escalationPath.js.map +1 -0
  67. package/escalationPathBeta.d.ts +134 -0
  68. package/escalationPathBeta.d.ts.map +1 -0
  69. package/escalationPathBeta.js +105 -0
  70. package/escalationPathBeta.js.map +1 -0
  71. package/getAlertAttribute.d.ts +81 -0
  72. package/getAlertAttribute.d.ts.map +1 -0
  73. package/getAlertAttribute.js +75 -0
  74. package/getAlertAttribute.js.map +1 -0
  75. package/getAlertSource.d.ts +169 -0
  76. package/getAlertSource.d.ts.map +1 -0
  77. package/getAlertSource.js +103 -0
  78. package/getAlertSource.js.map +1 -0
  79. package/getAlertSourceAttribute.d.ts +131 -0
  80. package/getAlertSourceAttribute.d.ts.map +1 -0
  81. package/getAlertSourceAttribute.js +85 -0
  82. package/getAlertSourceAttribute.js.map +1 -0
  83. package/getAlertSourceAttributeBeta.d.ts +131 -0
  84. package/getAlertSourceAttributeBeta.d.ts.map +1 -0
  85. package/getAlertSourceAttributeBeta.js +85 -0
  86. package/getAlertSourceAttributeBeta.js.map +1 -0
  87. package/getApiKey.d.ts +167 -0
  88. package/getApiKey.d.ts.map +1 -0
  89. package/getApiKey.js +145 -0
  90. package/getApiKey.js.map +1 -0
  91. package/getCatalogEntry.d.ts +77 -0
  92. package/getCatalogEntry.d.ts.map +1 -0
  93. package/getCatalogEntry.js +59 -0
  94. package/getCatalogEntry.js.map +1 -0
  95. package/getCatalogType.d.ts +163 -0
  96. package/getCatalogType.d.ts.map +1 -0
  97. package/getCatalogType.js +135 -0
  98. package/getCatalogType.js.map +1 -0
  99. package/getCatalogTypeAttribute.d.ts +73 -0
  100. package/getCatalogTypeAttribute.d.ts.map +1 -0
  101. package/getCatalogTypeAttribute.js +53 -0
  102. package/getCatalogTypeAttribute.js.map +1 -0
  103. package/getCustomField.d.ts +67 -0
  104. package/getCustomField.d.ts.map +1 -0
  105. package/getCustomField.js +51 -0
  106. package/getCustomField.js.map +1 -0
  107. package/getCustomFieldOption.d.ts +65 -0
  108. package/getCustomFieldOption.d.ts.map +1 -0
  109. package/getCustomFieldOption.js +55 -0
  110. package/getCustomFieldOption.js.map +1 -0
  111. package/getEscalationPath.d.ts +100 -0
  112. package/getEscalationPath.d.ts.map +1 -0
  113. package/getEscalationPath.js +83 -0
  114. package/getEscalationPath.js.map +1 -0
  115. package/getEscalationPathBeta.d.ts +100 -0
  116. package/getEscalationPathBeta.d.ts.map +1 -0
  117. package/getEscalationPathBeta.js +83 -0
  118. package/getEscalationPathBeta.js.map +1 -0
  119. package/getIncidentRole.d.ts +111 -0
  120. package/getIncidentRole.d.ts.map +1 -0
  121. package/getIncidentRole.js +105 -0
  122. package/getIncidentRole.js.map +1 -0
  123. package/getIncidentTemplate.d.ts +98 -0
  124. package/getIncidentTemplate.d.ts.map +1 -0
  125. package/getIncidentTemplate.js +95 -0
  126. package/getIncidentTemplate.js.map +1 -0
  127. package/getIncidentTimestamp.d.ts +107 -0
  128. package/getIncidentTimestamp.d.ts.map +1 -0
  129. package/getIncidentTimestamp.js +109 -0
  130. package/getIncidentTimestamp.js.map +1 -0
  131. package/getIncidentType.d.ts +121 -0
  132. package/getIncidentType.d.ts.map +1 -0
  133. package/getIncidentType.js +107 -0
  134. package/getIncidentType.js.map +1 -0
  135. package/getIpAllowlist.d.ts +62 -0
  136. package/getIpAllowlist.d.ts.map +1 -0
  137. package/getIpAllowlist.js +77 -0
  138. package/getIpAllowlist.js.map +1 -0
  139. package/getPolicy.d.ts +97 -0
  140. package/getPolicy.d.ts.map +1 -0
  141. package/getPolicy.js +91 -0
  142. package/getPolicy.js.map +1 -0
  143. package/getRichText.d.ts +111 -0
  144. package/getRichText.d.ts.map +1 -0
  145. package/getRichText.js +107 -0
  146. package/getRichText.js.map +1 -0
  147. package/getSchedule.d.ts +89 -0
  148. package/getSchedule.d.ts.map +1 -0
  149. package/getSchedule.js +87 -0
  150. package/getSchedule.js.map +1 -0
  151. package/getScheduleBeta.d.ts +85 -0
  152. package/getScheduleBeta.d.ts.map +1 -0
  153. package/getScheduleBeta.js +83 -0
  154. package/getScheduleBeta.js.map +1 -0
  155. package/getScheduleReplica.d.ts +116 -0
  156. package/getScheduleReplica.d.ts.map +1 -0
  157. package/getScheduleReplica.js +79 -0
  158. package/getScheduleReplica.js.map +1 -0
  159. package/getScheduleRotation.d.ts +166 -0
  160. package/getScheduleRotation.d.ts.map +1 -0
  161. package/getScheduleRotation.js +127 -0
  162. package/getScheduleRotation.js.map +1 -0
  163. package/getScheduleRotationBeta.d.ts +122 -0
  164. package/getScheduleRotationBeta.d.ts.map +1 -0
  165. package/getScheduleRotationBeta.js +83 -0
  166. package/getScheduleRotationBeta.js.map +1 -0
  167. package/getScheduleSyncRule.d.ts +91 -0
  168. package/getScheduleSyncRule.d.ts.map +1 -0
  169. package/getScheduleSyncRule.js +79 -0
  170. package/getScheduleSyncRule.js.map +1 -0
  171. package/getScheduleSyncTarget.d.ts +100 -0
  172. package/getScheduleSyncTarget.d.ts.map +1 -0
  173. package/getScheduleSyncTarget.js +93 -0
  174. package/getScheduleSyncTarget.js.map +1 -0
  175. package/getSecret.d.ts +115 -0
  176. package/getSecret.d.ts.map +1 -0
  177. package/getSecret.js +97 -0
  178. package/getSecret.js.map +1 -0
  179. package/getSeverity.d.ts +117 -0
  180. package/getSeverity.d.ts.map +1 -0
  181. package/getSeverity.js +115 -0
  182. package/getSeverity.js.map +1 -0
  183. package/getStatus.d.ts +125 -0
  184. package/getStatus.d.ts.map +1 -0
  185. package/getStatus.js +119 -0
  186. package/getStatus.js.map +1 -0
  187. package/getUser.d.ts +52 -0
  188. package/getUser.d.ts.map +1 -0
  189. package/getUser.js +61 -0
  190. package/getUser.js.map +1 -0
  191. package/getWorkflow.d.ts +103 -0
  192. package/getWorkflow.d.ts.map +1 -0
  193. package/getWorkflow.js +77 -0
  194. package/getWorkflow.js.map +1 -0
  195. package/incidentRole.d.ts +109 -0
  196. package/incidentRole.d.ts.map +1 -0
  197. package/incidentRole.js +111 -0
  198. package/incidentRole.js.map +1 -0
  199. package/incidentTemplate.d.ts +200 -0
  200. package/incidentTemplate.d.ts.map +1 -0
  201. package/incidentTemplate.js +207 -0
  202. package/incidentTemplate.js.map +1 -0
  203. package/index.d.ts +188 -0
  204. package/index.d.ts.map +1 -0
  205. package/index.js +303 -0
  206. package/index.js.map +1 -0
  207. package/maintenanceWindow.d.ts +255 -0
  208. package/maintenanceWindow.d.ts.map +1 -0
  209. package/maintenanceWindow.js +148 -0
  210. package/maintenanceWindow.js.map +1 -0
  211. package/package.json +33 -0
  212. package/policy.d.ts +476 -0
  213. package/policy.d.ts.map +1 -0
  214. package/policy.js +387 -0
  215. package/policy.js.map +1 -0
  216. package/provider.d.ts +62 -0
  217. package/provider.d.ts.map +1 -0
  218. package/provider.js +80 -0
  219. package/provider.js.map +1 -0
  220. package/schedule.d.ts +120 -0
  221. package/schedule.d.ts.map +1 -0
  222. package/schedule.js +114 -0
  223. package/schedule.js.map +1 -0
  224. package/scheduleBeta.d.ts +104 -0
  225. package/scheduleBeta.d.ts.map +1 -0
  226. package/scheduleBeta.js +98 -0
  227. package/scheduleBeta.js.map +1 -0
  228. package/scheduleReplica.d.ts +178 -0
  229. package/scheduleReplica.d.ts.map +1 -0
  230. package/scheduleReplica.js +134 -0
  231. package/scheduleReplica.js.map +1 -0
  232. package/scheduleRotation.d.ts +287 -0
  233. package/scheduleRotation.d.ts.map +1 -0
  234. package/scheduleRotation.js +224 -0
  235. package/scheduleRotation.js.map +1 -0
  236. package/scheduleRotationBeta.d.ts +184 -0
  237. package/scheduleRotationBeta.d.ts.map +1 -0
  238. package/scheduleRotationBeta.js +121 -0
  239. package/scheduleRotationBeta.js.map +1 -0
  240. package/scheduleSyncRule.d.ts +154 -0
  241. package/scheduleSyncRule.d.ts.map +1 -0
  242. package/scheduleSyncRule.js +146 -0
  243. package/scheduleSyncRule.js.map +1 -0
  244. package/scheduleSyncTarget.d.ts +108 -0
  245. package/scheduleSyncTarget.d.ts.map +1 -0
  246. package/scheduleSyncTarget.js +106 -0
  247. package/scheduleSyncTarget.js.map +1 -0
  248. package/secret.d.ts +276 -0
  249. package/secret.d.ts.map +1 -0
  250. package/secret.js +234 -0
  251. package/secret.js.map +1 -0
  252. package/severity.d.ts +96 -0
  253. package/severity.d.ts.map +1 -0
  254. package/severity.js +102 -0
  255. package/severity.js.map +1 -0
  256. package/status.d.ts +121 -0
  257. package/status.d.ts.map +1 -0
  258. package/status.js +120 -0
  259. package/status.js.map +1 -0
  260. package/types/index.d.ts +4 -0
  261. package/types/index.d.ts.map +1 -0
  262. package/types/index.js +34 -0
  263. package/types/index.js.map +1 -0
  264. package/types/input.d.ts +23630 -0
  265. package/types/input.d.ts.map +1 -0
  266. package/types/input.js +5 -0
  267. package/types/input.js.map +1 -0
  268. package/types/output.d.ts +19726 -0
  269. package/types/output.d.ts.map +1 -0
  270. package/types/output.js +5 -0
  271. package/types/output.js.map +1 -0
  272. package/utilities.d.ts +5 -0
  273. package/utilities.d.ts.map +1 -0
  274. package/utilities.js +114 -0
  275. package/utilities.js.map +1 -0
  276. package/workflow.d.ts +736 -0
  277. package/workflow.d.ts.map +1 -0
  278. package/workflow.js +608 -0
  279. package/workflow.js.map +1 -0
@@ -0,0 +1,85 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * `incident.ScheduleBeta` was renamed to `incident.Schedule` in v7.0.
4
+ *
5
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
6
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
7
+ * be removed in v8.0.
8
+ *
9
+ * To move onto the new name:
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * ```
14
+ *
15
+ * Both names are the same resource, backed by the same schema and the same API, so the move
16
+ * carries your state across and the plan after it is empty. See `incident.Schedule` for the
17
+ * documentation.
18
+ */
19
+ export declare function getScheduleBeta(args?: GetScheduleBetaArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleBetaResult>;
20
+ /**
21
+ * A collection of arguments for invoking getScheduleBeta.
22
+ */
23
+ export interface GetScheduleBetaArgs {
24
+ /**
25
+ * Look up the schedule by ID.
26
+ */
27
+ id?: string;
28
+ /**
29
+ * Look up the schedule by name. Names aren't unique, so this fails if more than one schedule matches.
30
+ */
31
+ name?: string;
32
+ }
33
+ /**
34
+ * A collection of values returned by getScheduleBeta.
35
+ */
36
+ export interface GetScheduleBetaResult {
37
+ /**
38
+ * Look up the schedule by ID.
39
+ */
40
+ readonly id: string;
41
+ /**
42
+ * Look up the schedule by name. Names aren't unique, so this fails if more than one schedule matches.
43
+ */
44
+ readonly name: string;
45
+ /**
46
+ * IDs of teams that own this schedule
47
+ */
48
+ readonly teamIds: string[];
49
+ /**
50
+ * Timezone the schedule's rotations are anchored to, as an IANA name
51
+ */
52
+ readonly timezone: string;
53
+ }
54
+ /**
55
+ * `incident.ScheduleBeta` was renamed to `incident.Schedule` in v7.0.
56
+ *
57
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
58
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
59
+ * be removed in v8.0.
60
+ *
61
+ * To move onto the new name:
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * ```
66
+ *
67
+ * Both names are the same resource, backed by the same schema and the same API, so the move
68
+ * carries your state across and the plan after it is empty. See `incident.Schedule` for the
69
+ * documentation.
70
+ */
71
+ export declare function getScheduleBetaOutput(args?: GetScheduleBetaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleBetaResult>;
72
+ /**
73
+ * A collection of arguments for invoking getScheduleBeta.
74
+ */
75
+ export interface GetScheduleBetaOutputArgs {
76
+ /**
77
+ * Look up the schedule by ID.
78
+ */
79
+ id?: pulumi.Input<string | undefined>;
80
+ /**
81
+ * Look up the schedule by name. Names aren't unique, so this fails if more than one schedule matches.
82
+ */
83
+ name?: pulumi.Input<string | undefined>;
84
+ }
85
+ //# sourceMappingURL=getScheduleBeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleBeta.d.ts","sourceRoot":"","sources":["../getScheduleBeta.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAOvH;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAO/I;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.getScheduleBetaOutput = exports.getScheduleBeta = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * `incident.ScheduleBeta` was renamed to `incident.Schedule` in v7.0.
33
+ *
34
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
35
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
36
+ * be removed in v8.0.
37
+ *
38
+ * To move onto the new name:
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * ```
43
+ *
44
+ * Both names are the same resource, backed by the same schema and the same API, so the move
45
+ * carries your state across and the plan after it is empty. See `incident.Schedule` for the
46
+ * documentation.
47
+ */
48
+ function getScheduleBeta(args, opts) {
49
+ args = args || {};
50
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
51
+ return pulumi.runtime.invoke("incident:index/getScheduleBeta:getScheduleBeta", {
52
+ "id": args.id,
53
+ "name": args.name,
54
+ }, opts);
55
+ }
56
+ exports.getScheduleBeta = getScheduleBeta;
57
+ /**
58
+ * `incident.ScheduleBeta` was renamed to `incident.Schedule` in v7.0.
59
+ *
60
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
61
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
62
+ * be removed in v8.0.
63
+ *
64
+ * To move onto the new name:
65
+ *
66
+ * ```typescript
67
+ * import * as pulumi from "@pulumi/pulumi";
68
+ * ```
69
+ *
70
+ * Both names are the same resource, backed by the same schema and the same API, so the move
71
+ * carries your state across and the plan after it is empty. See `incident.Schedule` for the
72
+ * documentation.
73
+ */
74
+ function getScheduleBetaOutput(args, opts) {
75
+ args = args || {};
76
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
77
+ return pulumi.runtime.invokeOutput("incident:index/getScheduleBeta:getScheduleBeta", {
78
+ "id": args.id,
79
+ "name": args.name,
80
+ }, opts);
81
+ }
82
+ exports.getScheduleBetaOutput = getScheduleBetaOutput;
83
+ //# sourceMappingURL=getScheduleBeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleBeta.js","sourceRoot":"","sources":["../getScheduleBeta.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AAqCD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAAiC;IACrG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC"}
@@ -0,0 +1,116 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Look up an existing schedule replica by schedule ID and replica ID.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as incident from "@incident-io/pulumi";
11
+ *
12
+ * // Look up a schedule replica by schedule ID and replica ID.
13
+ * const platformPagerduty = incident.getScheduleReplica({
14
+ * scheduleId: platform.id,
15
+ * id: "01MNO456PQR789STU012VWX",
16
+ * });
17
+ * ```
18
+ */
19
+ export declare function getScheduleReplica(args: GetScheduleReplicaArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleReplicaResult>;
20
+ /**
21
+ * A collection of arguments for invoking getScheduleReplica.
22
+ */
23
+ export interface GetScheduleReplicaArgs {
24
+ /**
25
+ * Unique identifier of the schedule replica
26
+ */
27
+ id: string;
28
+ /**
29
+ * The ID of the incident.io schedule that this replica is syncing from
30
+ */
31
+ scheduleId: string;
32
+ }
33
+ /**
34
+ * A collection of values returned by getScheduleReplica.
35
+ */
36
+ export interface GetScheduleReplicaResult {
37
+ /**
38
+ * When this schedule replica was first created
39
+ */
40
+ readonly createdAt: string;
41
+ /**
42
+ * Unique identifier of the schedule replica
43
+ */
44
+ readonly id: string;
45
+ /**
46
+ * The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful.
47
+ */
48
+ readonly lastSyncError: string;
49
+ /**
50
+ * When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced.
51
+ */
52
+ readonly lastSyncedAt: string;
53
+ /**
54
+ * How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90.
55
+ */
56
+ readonly mirrorWindowDays: number;
57
+ /**
58
+ * The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled.
59
+ */
60
+ readonly replicaFallbackUserId: string;
61
+ /**
62
+ * The external provider where this schedule is replicated to. Possible values are: `native`, `pagerduty`, `opsgenie`, `jsm`.
63
+ */
64
+ readonly replicaProvider: string;
65
+ /**
66
+ * The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID.
67
+ */
68
+ readonly replicaProviderId: string;
69
+ /**
70
+ * The ID of the incident.io schedule that this replica is syncing from
71
+ */
72
+ readonly scheduleId: string;
73
+ /**
74
+ * The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider.
75
+ */
76
+ readonly sources: outputs.GetScheduleReplicaSource[];
77
+ /**
78
+ * When this schedule replica was last updated
79
+ */
80
+ readonly updatedAt: string;
81
+ /**
82
+ * The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly.
83
+ */
84
+ readonly userStatuses: outputs.GetScheduleReplicaUserStatus[];
85
+ }
86
+ /**
87
+ * Look up an existing schedule replica by schedule ID and replica ID.
88
+ *
89
+ * ## Example Usage
90
+ *
91
+ * ```typescript
92
+ * import * as pulumi from "@pulumi/pulumi";
93
+ * import * as incident from "@incident-io/pulumi";
94
+ *
95
+ * // Look up a schedule replica by schedule ID and replica ID.
96
+ * const platformPagerduty = incident.getScheduleReplica({
97
+ * scheduleId: platform.id,
98
+ * id: "01MNO456PQR789STU012VWX",
99
+ * });
100
+ * ```
101
+ */
102
+ export declare function getScheduleReplicaOutput(args: GetScheduleReplicaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleReplicaResult>;
103
+ /**
104
+ * A collection of arguments for invoking getScheduleReplica.
105
+ */
106
+ export interface GetScheduleReplicaOutputArgs {
107
+ /**
108
+ * Unique identifier of the schedule replica
109
+ */
110
+ id: pulumi.Input<string>;
111
+ /**
112
+ * The ID of the incident.io schedule that this replica is syncing from
113
+ */
114
+ scheduleId: pulumi.Input<string>;
115
+ }
116
+ //# sourceMappingURL=getScheduleReplica.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleReplica.d.ts","sourceRoot":"","sources":["../getScheduleReplica.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAM/H;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,wBAAwB,EAAE,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,4BAA4B,EAAE,CAAC;CACjE;AACD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,4BAA4B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAMvJ;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.getScheduleReplicaOutput = exports.getScheduleReplica = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Look up an existing schedule replica by schedule ID and replica ID.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as incident from "@incident-io/pulumi";
39
+ *
40
+ * // Look up a schedule replica by schedule ID and replica ID.
41
+ * const platformPagerduty = incident.getScheduleReplica({
42
+ * scheduleId: platform.id,
43
+ * id: "01MNO456PQR789STU012VWX",
44
+ * });
45
+ * ```
46
+ */
47
+ function getScheduleReplica(args, opts) {
48
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
49
+ return pulumi.runtime.invoke("incident:index/getScheduleReplica:getScheduleReplica", {
50
+ "id": args.id,
51
+ "scheduleId": args.scheduleId,
52
+ }, opts);
53
+ }
54
+ exports.getScheduleReplica = getScheduleReplica;
55
+ /**
56
+ * Look up an existing schedule replica by schedule ID and replica ID.
57
+ *
58
+ * ## Example Usage
59
+ *
60
+ * ```typescript
61
+ * import * as pulumi from "@pulumi/pulumi";
62
+ * import * as incident from "@incident-io/pulumi";
63
+ *
64
+ * // Look up a schedule replica by schedule ID and replica ID.
65
+ * const platformPagerduty = incident.getScheduleReplica({
66
+ * scheduleId: platform.id,
67
+ * id: "01MNO456PQR789STU012VWX",
68
+ * });
69
+ * ```
70
+ */
71
+ function getScheduleReplicaOutput(args, opts) {
72
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
73
+ return pulumi.runtime.invokeOutput("incident:index/getScheduleReplica:getScheduleReplica", {
74
+ "id": args.id,
75
+ "scheduleId": args.scheduleId,
76
+ }, opts);
77
+ }
78
+ exports.getScheduleReplicaOutput = getScheduleReplicaOutput;
79
+ //# sourceMappingURL=getScheduleReplica.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleReplica.js","sourceRoot":"","sources":["../getScheduleReplica.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC;AAqED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAAiC;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sDAAsD,EAAE;QACvF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4DAMC"}
@@ -0,0 +1,166 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Look up a rotation on a schedule by `id` or `name`. Exactly one lookup field should be set.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as incident from "@incident-io/pulumi";
11
+ *
12
+ * // Look up a rotation by name. Names are unique within a schedule, so this is
13
+ * // unambiguous.
14
+ * const primary = incident.getScheduleRotation({
15
+ * scheduleId: platformIncidentSchedule.id,
16
+ * name: "Primary",
17
+ * });
18
+ * // ...or by ID.
19
+ * const primaryById = incident.getScheduleRotation({
20
+ * scheduleId: platformIncidentSchedule.id,
21
+ * id: "01MNO456PQR789STU012VWX",
22
+ * });
23
+ * // Useful for pointing an escalation path at one rotation rather than the whole
24
+ * // schedule, when the rotation itself isn't managed here.
25
+ * const platform = new incident.EscalationPath("platform", {
26
+ * name: "Platform",
27
+ * path: [{
28
+ * type: "level",
29
+ * level: {
30
+ * targets: [{
31
+ * type: "schedule",
32
+ * id: platformIncidentSchedule.id,
33
+ * urgency: "high",
34
+ * scheduleMode: "all_users_for_rota",
35
+ * selectedRotaId: primary.then(primary => primary.id),
36
+ * }],
37
+ * },
38
+ * }],
39
+ * });
40
+ * ```
41
+ */
42
+ export declare function getScheduleRotation(args: GetScheduleRotationArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleRotationResult>;
43
+ /**
44
+ * A collection of arguments for invoking getScheduleRotation.
45
+ */
46
+ export interface GetScheduleRotationArgs {
47
+ /**
48
+ * Look up the rotation by ID.
49
+ */
50
+ id?: string;
51
+ /**
52
+ * Look up the rotation by name, which is unique within the schedule.
53
+ */
54
+ name?: string;
55
+ /**
56
+ * ID of the schedule this rotation belongs to
57
+ */
58
+ scheduleId: string;
59
+ }
60
+ /**
61
+ * A collection of values returned by getScheduleRotation.
62
+ */
63
+ export interface GetScheduleRotationResult {
64
+ /**
65
+ * How many shifts run at the same time, which is how many people are on call at once
66
+ */
67
+ readonly concurrentShifts: number;
68
+ /**
69
+ * When this shape of the rotation took over. Unset when the rotation has only ever had one.
70
+ */
71
+ readonly effectiveFrom: string;
72
+ /**
73
+ * When the first handover interval starts being counted from, which fixes the time of day and day of week shifts change hands. The dashboard calls this the handover time.
74
+ */
75
+ readonly firstIntervalStartsAt: string;
76
+ /**
77
+ * The cadence shifts hand over on, applied in turn
78
+ */
79
+ readonly handovers: outputs.GetScheduleRotationHandover[];
80
+ /**
81
+ * Look up the rotation by ID.
82
+ */
83
+ readonly id: string;
84
+ /**
85
+ * Look up the rotation by name, which is unique within the schedule.
86
+ */
87
+ readonly name: string;
88
+ /**
89
+ * Where this rotation sits in the schedule's running order, lowest first. Unset when it has never been ordered.
90
+ */
91
+ readonly rank: number;
92
+ /**
93
+ * ID of the schedule this rotation belongs to
94
+ */
95
+ readonly scheduleId: string;
96
+ /**
97
+ * How users are allocated across shifts of differing length. Possible values are: `fair`, `sequential`.
98
+ */
99
+ readonly schedulingMode: string;
100
+ /**
101
+ * IDs of the people in the rotation, in the order they take shifts.
102
+ */
103
+ readonly users: string[];
104
+ /**
105
+ * Weekday intervals the rotation is on call for, if it's restricted to any.
106
+ */
107
+ readonly workingIntervals: outputs.GetScheduleRotationWorkingInterval[];
108
+ }
109
+ /**
110
+ * Look up a rotation on a schedule by `id` or `name`. Exactly one lookup field should be set.
111
+ *
112
+ * ## Example Usage
113
+ *
114
+ * ```typescript
115
+ * import * as pulumi from "@pulumi/pulumi";
116
+ * import * as incident from "@incident-io/pulumi";
117
+ *
118
+ * // Look up a rotation by name. Names are unique within a schedule, so this is
119
+ * // unambiguous.
120
+ * const primary = incident.getScheduleRotation({
121
+ * scheduleId: platformIncidentSchedule.id,
122
+ * name: "Primary",
123
+ * });
124
+ * // ...or by ID.
125
+ * const primaryById = incident.getScheduleRotation({
126
+ * scheduleId: platformIncidentSchedule.id,
127
+ * id: "01MNO456PQR789STU012VWX",
128
+ * });
129
+ * // Useful for pointing an escalation path at one rotation rather than the whole
130
+ * // schedule, when the rotation itself isn't managed here.
131
+ * const platform = new incident.EscalationPath("platform", {
132
+ * name: "Platform",
133
+ * path: [{
134
+ * type: "level",
135
+ * level: {
136
+ * targets: [{
137
+ * type: "schedule",
138
+ * id: platformIncidentSchedule.id,
139
+ * urgency: "high",
140
+ * scheduleMode: "all_users_for_rota",
141
+ * selectedRotaId: primary.then(primary => primary.id),
142
+ * }],
143
+ * },
144
+ * }],
145
+ * });
146
+ * ```
147
+ */
148
+ export declare function getScheduleRotationOutput(args: GetScheduleRotationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleRotationResult>;
149
+ /**
150
+ * A collection of arguments for invoking getScheduleRotation.
151
+ */
152
+ export interface GetScheduleRotationOutputArgs {
153
+ /**
154
+ * Look up the rotation by ID.
155
+ */
156
+ id?: pulumi.Input<string | undefined>;
157
+ /**
158
+ * Look up the rotation by name, which is unique within the schedule.
159
+ */
160
+ name?: pulumi.Input<string | undefined>;
161
+ /**
162
+ * ID of the schedule this rotation belongs to
163
+ */
164
+ scheduleId: pulumi.Input<string>;
165
+ }
166
+ //# sourceMappingURL=getScheduleRotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleRotation.d.ts","sourceRoot":"","sources":["../getScheduleRotation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAOlI;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAC1D;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC,kCAAkC,EAAE,CAAC;CAC3E;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAO1J;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.getScheduleRotationOutput = exports.getScheduleRotation = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Look up a rotation on a schedule by `id` or `name`. Exactly one lookup field should be set.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as incident from "@incident-io/pulumi";
39
+ *
40
+ * // Look up a rotation by name. Names are unique within a schedule, so this is
41
+ * // unambiguous.
42
+ * const primary = incident.getScheduleRotation({
43
+ * scheduleId: platformIncidentSchedule.id,
44
+ * name: "Primary",
45
+ * });
46
+ * // ...or by ID.
47
+ * const primaryById = incident.getScheduleRotation({
48
+ * scheduleId: platformIncidentSchedule.id,
49
+ * id: "01MNO456PQR789STU012VWX",
50
+ * });
51
+ * // Useful for pointing an escalation path at one rotation rather than the whole
52
+ * // schedule, when the rotation itself isn't managed here.
53
+ * const platform = new incident.EscalationPath("platform", {
54
+ * name: "Platform",
55
+ * path: [{
56
+ * type: "level",
57
+ * level: {
58
+ * targets: [{
59
+ * type: "schedule",
60
+ * id: platformIncidentSchedule.id,
61
+ * urgency: "high",
62
+ * scheduleMode: "all_users_for_rota",
63
+ * selectedRotaId: primary.then(primary => primary.id),
64
+ * }],
65
+ * },
66
+ * }],
67
+ * });
68
+ * ```
69
+ */
70
+ function getScheduleRotation(args, opts) {
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
72
+ return pulumi.runtime.invoke("incident:index/getScheduleRotation:getScheduleRotation", {
73
+ "id": args.id,
74
+ "name": args.name,
75
+ "scheduleId": args.scheduleId,
76
+ }, opts);
77
+ }
78
+ exports.getScheduleRotation = getScheduleRotation;
79
+ /**
80
+ * Look up a rotation on a schedule by `id` or `name`. Exactly one lookup field should be set.
81
+ *
82
+ * ## Example Usage
83
+ *
84
+ * ```typescript
85
+ * import * as pulumi from "@pulumi/pulumi";
86
+ * import * as incident from "@incident-io/pulumi";
87
+ *
88
+ * // Look up a rotation by name. Names are unique within a schedule, so this is
89
+ * // unambiguous.
90
+ * const primary = incident.getScheduleRotation({
91
+ * scheduleId: platformIncidentSchedule.id,
92
+ * name: "Primary",
93
+ * });
94
+ * // ...or by ID.
95
+ * const primaryById = incident.getScheduleRotation({
96
+ * scheduleId: platformIncidentSchedule.id,
97
+ * id: "01MNO456PQR789STU012VWX",
98
+ * });
99
+ * // Useful for pointing an escalation path at one rotation rather than the whole
100
+ * // schedule, when the rotation itself isn't managed here.
101
+ * const platform = new incident.EscalationPath("platform", {
102
+ * name: "Platform",
103
+ * path: [{
104
+ * type: "level",
105
+ * level: {
106
+ * targets: [{
107
+ * type: "schedule",
108
+ * id: platformIncidentSchedule.id,
109
+ * urgency: "high",
110
+ * scheduleMode: "all_users_for_rota",
111
+ * selectedRotaId: primary.then(primary => primary.id),
112
+ * }],
113
+ * },
114
+ * }],
115
+ * });
116
+ * ```
117
+ */
118
+ function getScheduleRotationOutput(args, opts) {
119
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
120
+ return pulumi.runtime.invokeOutput("incident:index/getScheduleRotation:getScheduleRotation", {
121
+ "id": args.id,
122
+ "name": args.name,
123
+ "scheduleId": args.scheduleId,
124
+ }, opts);
125
+ }
126
+ exports.getScheduleRotationOutput = getScheduleRotationOutput;
127
+ //# sourceMappingURL=getScheduleRotation.js.map