@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 @@
1
+ {"version":3,"file":"getScheduleRotation.js","sourceRoot":"","sources":["../getScheduleRotation.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AAqED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAAiC;IAC5G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wDAAwD,EAAE;QACzF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8DAOC"}
@@ -0,0 +1,122 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * `incident.ScheduleRotationBeta` was renamed to `incident.ScheduleRotation` in v7.0.
5
+ *
6
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
7
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
8
+ * be removed in v8.0.
9
+ *
10
+ * To move onto the new name:
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * ```
15
+ *
16
+ * Both names are the same resource, backed by the same schema and the same API, so the move
17
+ * carries your state across and the plan after it is empty. See `incident.ScheduleRotation` for the
18
+ * documentation.
19
+ */
20
+ export declare function getScheduleRotationBeta(args: GetScheduleRotationBetaArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleRotationBetaResult>;
21
+ /**
22
+ * A collection of arguments for invoking getScheduleRotationBeta.
23
+ */
24
+ export interface GetScheduleRotationBetaArgs {
25
+ /**
26
+ * Look up the rotation by ID.
27
+ */
28
+ id?: string;
29
+ /**
30
+ * Look up the rotation by name, which is unique within the schedule.
31
+ */
32
+ name?: string;
33
+ /**
34
+ * ID of the schedule this rotation belongs to
35
+ */
36
+ scheduleId: string;
37
+ }
38
+ /**
39
+ * A collection of values returned by getScheduleRotationBeta.
40
+ */
41
+ export interface GetScheduleRotationBetaResult {
42
+ /**
43
+ * How many shifts run at the same time, which is how many people are on call at once
44
+ */
45
+ readonly concurrentShifts: number;
46
+ /**
47
+ * When this shape of the rotation took over. Unset when the rotation has only ever had one.
48
+ */
49
+ readonly effectiveFrom: string;
50
+ /**
51
+ * 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.
52
+ */
53
+ readonly firstIntervalStartsAt: string;
54
+ /**
55
+ * The cadence shifts hand over on, applied in turn
56
+ */
57
+ readonly handovers: outputs.GetScheduleRotationBetaHandover[];
58
+ /**
59
+ * Look up the rotation by ID.
60
+ */
61
+ readonly id: string;
62
+ /**
63
+ * Look up the rotation by name, which is unique within the schedule.
64
+ */
65
+ readonly name: string;
66
+ /**
67
+ * Where this rotation sits in the schedule's running order, lowest first. Unset when it has never been ordered.
68
+ */
69
+ readonly rank: number;
70
+ /**
71
+ * ID of the schedule this rotation belongs to
72
+ */
73
+ readonly scheduleId: string;
74
+ /**
75
+ * How users are allocated across shifts of differing length. Possible values are: `fair`, `sequential`.
76
+ */
77
+ readonly schedulingMode: string;
78
+ /**
79
+ * IDs of the people in the rotation, in the order they take shifts.
80
+ */
81
+ readonly users: string[];
82
+ /**
83
+ * Weekday intervals the rotation is on call for, if it's restricted to any.
84
+ */
85
+ readonly workingIntervals: outputs.GetScheduleRotationBetaWorkingInterval[];
86
+ }
87
+ /**
88
+ * `incident.ScheduleRotationBeta` was renamed to `incident.ScheduleRotation` in v7.0.
89
+ *
90
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
91
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
92
+ * be removed in v8.0.
93
+ *
94
+ * To move onto the new name:
95
+ *
96
+ * ```typescript
97
+ * import * as pulumi from "@pulumi/pulumi";
98
+ * ```
99
+ *
100
+ * Both names are the same resource, backed by the same schema and the same API, so the move
101
+ * carries your state across and the plan after it is empty. See `incident.ScheduleRotation` for the
102
+ * documentation.
103
+ */
104
+ export declare function getScheduleRotationBetaOutput(args: GetScheduleRotationBetaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleRotationBetaResult>;
105
+ /**
106
+ * A collection of arguments for invoking getScheduleRotationBeta.
107
+ */
108
+ export interface GetScheduleRotationBetaOutputArgs {
109
+ /**
110
+ * Look up the rotation by ID.
111
+ */
112
+ id?: pulumi.Input<string | undefined>;
113
+ /**
114
+ * Look up the rotation by name, which is unique within the schedule.
115
+ */
116
+ name?: pulumi.Input<string | undefined>;
117
+ /**
118
+ * ID of the schedule this rotation belongs to
119
+ */
120
+ scheduleId: pulumi.Input<string>;
121
+ }
122
+ //# sourceMappingURL=getScheduleRotationBeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleRotationBeta.d.ts","sourceRoot":"","sources":["../getScheduleRotationBeta.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAO9I;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;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,6BAA6B;IAC1C;;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,+BAA+B,EAAE,CAAC;IAC9D;;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,sCAAsC,EAAE,CAAC;CAC/E;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,iCAAiC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAOtK;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;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,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.getScheduleRotationBetaOutput = exports.getScheduleRotationBeta = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * `incident.ScheduleRotationBeta` was renamed to `incident.ScheduleRotation` 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.ScheduleRotation` for the
46
+ * documentation.
47
+ */
48
+ function getScheduleRotationBeta(args, opts) {
49
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
50
+ return pulumi.runtime.invoke("incident:index/getScheduleRotationBeta:getScheduleRotationBeta", {
51
+ "id": args.id,
52
+ "name": args.name,
53
+ "scheduleId": args.scheduleId,
54
+ }, opts);
55
+ }
56
+ exports.getScheduleRotationBeta = getScheduleRotationBeta;
57
+ /**
58
+ * `incident.ScheduleRotationBeta` was renamed to `incident.ScheduleRotation` 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.ScheduleRotation` for the
72
+ * documentation.
73
+ */
74
+ function getScheduleRotationBetaOutput(args, opts) {
75
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
76
+ return pulumi.runtime.invokeOutput("incident:index/getScheduleRotationBeta:getScheduleRotationBeta", {
77
+ "id": args.id,
78
+ "name": args.name,
79
+ "scheduleId": args.scheduleId,
80
+ }, opts);
81
+ }
82
+ exports.getScheduleRotationBetaOutput = getScheduleRotationBetaOutput;
83
+ //# sourceMappingURL=getScheduleRotationBeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleRotationBeta.js","sourceRoot":"","sources":["../getScheduleRotationBeta.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0DAOC;AAqED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,6BAA6B,CAAC,IAAuC,EAAE,IAAiC;IACpH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gEAAgE,EAAE;QACjG,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sEAOC"}
@@ -0,0 +1,91 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Look up an existing schedule sync rule by schedule ID and rule ID.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as incident from "@incident-io/pulumi";
10
+ *
11
+ * // Look up a schedule sync rule by schedule ID and rule ID.
12
+ * const platformOncall = incident.getScheduleSyncRule({
13
+ * scheduleId: platform.id,
14
+ * id: "01MNO456PQR789STU012VWX",
15
+ * });
16
+ * ```
17
+ */
18
+ export declare function getScheduleSyncRule(args: GetScheduleSyncRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleSyncRuleResult>;
19
+ /**
20
+ * A collection of arguments for invoking getScheduleSyncRule.
21
+ */
22
+ export interface GetScheduleSyncRuleArgs {
23
+ /**
24
+ * Unique identifier of the sync rule
25
+ */
26
+ id: string;
27
+ /**
28
+ * The schedule this rule belongs to
29
+ */
30
+ scheduleId: string;
31
+ }
32
+ /**
33
+ * A collection of values returned by getScheduleSyncRule.
34
+ */
35
+ export interface GetScheduleSyncRuleResult {
36
+ /**
37
+ * Unique identifier of the sync rule
38
+ */
39
+ readonly id: string;
40
+ /**
41
+ * IDs of users always kept in the Slack user group, regardless of who is on call. Useful for keeping e.g. a manager in the group so they see mentions without being paged. Scoped to this rule: when several rules feed the same group, we sync the union of their permanent members.
42
+ */
43
+ readonly permanentMemberUserIds: string[];
44
+ /**
45
+ * If set, only members of this rotation sync to the user group. When unset, all rotations on the schedule are synced.
46
+ */
47
+ readonly rotationId: string;
48
+ /**
49
+ * The schedule this rule belongs to
50
+ */
51
+ readonly scheduleId: string;
52
+ /**
53
+ * The sync target ID this rule links to
54
+ */
55
+ readonly scheduleSyncTargetId: string;
56
+ /**
57
+ * Which schedule members sync to the user group. Possible values are: `onCall`, `allUsers`, `nextOnCall`.
58
+ */
59
+ readonly syncType: string;
60
+ }
61
+ /**
62
+ * Look up an existing schedule sync rule by schedule ID and rule ID.
63
+ *
64
+ * ## Example Usage
65
+ *
66
+ * ```typescript
67
+ * import * as pulumi from "@pulumi/pulumi";
68
+ * import * as incident from "@incident-io/pulumi";
69
+ *
70
+ * // Look up a schedule sync rule by schedule ID and rule ID.
71
+ * const platformOncall = incident.getScheduleSyncRule({
72
+ * scheduleId: platform.id,
73
+ * id: "01MNO456PQR789STU012VWX",
74
+ * });
75
+ * ```
76
+ */
77
+ export declare function getScheduleSyncRuleOutput(args: GetScheduleSyncRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleSyncRuleResult>;
78
+ /**
79
+ * A collection of arguments for invoking getScheduleSyncRule.
80
+ */
81
+ export interface GetScheduleSyncRuleOutputArgs {
82
+ /**
83
+ * Unique identifier of the sync rule
84
+ */
85
+ id: pulumi.Input<string>;
86
+ /**
87
+ * The schedule this rule belongs to
88
+ */
89
+ scheduleId: pulumi.Input<string>;
90
+ }
91
+ //# sourceMappingURL=getScheduleSyncRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleSyncRule.d.ts","sourceRoot":"","sources":["../getScheduleSyncRule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAMlI;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,sBAAsB,EAAE,MAAM,EAAE,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AACD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAM1J;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;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.getScheduleSyncRuleOutput = exports.getScheduleSyncRule = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Look up an existing schedule sync rule by schedule ID and rule 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 sync rule by schedule ID and rule ID.
41
+ * const platformOncall = incident.getScheduleSyncRule({
42
+ * scheduleId: platform.id,
43
+ * id: "01MNO456PQR789STU012VWX",
44
+ * });
45
+ * ```
46
+ */
47
+ function getScheduleSyncRule(args, opts) {
48
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
49
+ return pulumi.runtime.invoke("incident:index/getScheduleSyncRule:getScheduleSyncRule", {
50
+ "id": args.id,
51
+ "scheduleId": args.scheduleId,
52
+ }, opts);
53
+ }
54
+ exports.getScheduleSyncRule = getScheduleSyncRule;
55
+ /**
56
+ * Look up an existing schedule sync rule by schedule ID and rule 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 sync rule by schedule ID and rule ID.
65
+ * const platformOncall = incident.getScheduleSyncRule({
66
+ * scheduleId: platform.id,
67
+ * id: "01MNO456PQR789STU012VWX",
68
+ * });
69
+ * ```
70
+ */
71
+ function getScheduleSyncRuleOutput(args, opts) {
72
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
73
+ return pulumi.runtime.invokeOutput("incident:index/getScheduleSyncRule:getScheduleSyncRule", {
74
+ "id": args.id,
75
+ "scheduleId": args.scheduleId,
76
+ }, opts);
77
+ }
78
+ exports.getScheduleSyncRuleOutput = getScheduleSyncRuleOutput;
79
+ //# sourceMappingURL=getScheduleSyncRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleSyncRule.js","sourceRoot":"","sources":["../getScheduleSyncRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kDAMC;AA6CD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAAiC;IAC5G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wDAAwD,EAAE;QACzF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8DAMC"}
@@ -0,0 +1,100 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Manage schedule sync targets (Slack user groups that schedules can sync to).
5
+ *
6
+ * Use this data source to look up an existing schedule sync target, either by `id` or by `slackUserGroupId`.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as incident from "@incident-io/pulumi";
13
+ *
14
+ * // Look up a schedule sync target by ID.
15
+ * const byId = incident.getScheduleSyncTarget({
16
+ * id: "01ABC123DEF456GHI789JKL",
17
+ * });
18
+ * // ...or by the Slack user group it keeps in sync. The group's Slack-assigned
19
+ * // ID starts with 'S'; this is not the @-handle.
20
+ * const bySlackGroup = incident.getScheduleSyncTarget({
21
+ * slackUserGroupId: "S06MNNU5BMK",
22
+ * });
23
+ * ```
24
+ */
25
+ export declare function getScheduleSyncTarget(args?: GetScheduleSyncTargetArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleSyncTargetResult>;
26
+ /**
27
+ * A collection of arguments for invoking getScheduleSyncTarget.
28
+ */
29
+ export interface GetScheduleSyncTargetArgs {
30
+ /**
31
+ * Unique identifier of the sync target
32
+ */
33
+ id?: string;
34
+ /**
35
+ * Slack ID of the user group whose membership is kept in sync. This is the Slack-assigned group ID (starting with 'S'), not the @-handle.
36
+ */
37
+ slackUserGroupId?: string;
38
+ }
39
+ /**
40
+ * A collection of values returned by getScheduleSyncTarget.
41
+ */
42
+ export interface GetScheduleSyncTargetResult {
43
+ /**
44
+ * Whether the incident.io bot should be added to the group as a member. This is needed for some Slack configurations to let us manage the group's membership.
45
+ */
46
+ readonly addBotToGroup: boolean;
47
+ /**
48
+ * Unique identifier of the sync target
49
+ */
50
+ readonly id: string;
51
+ /**
52
+ * Schedules with an active sync rule pointing at this target
53
+ */
54
+ readonly linkedSchedules: outputs.GetScheduleSyncTargetLinkedSchedule[];
55
+ /**
56
+ * Slack team (workspace) ID the user group lives in. On Enterprise Grid this identifies which workspace within the org the group belongs to.
57
+ */
58
+ readonly slackTeamId: string;
59
+ /**
60
+ * Slack ID of the user group whose membership is kept in sync. This is the Slack-assigned group ID (starting with 'S'), not the @-handle.
61
+ */
62
+ readonly slackUserGroupId: string;
63
+ }
64
+ /**
65
+ * Manage schedule sync targets (Slack user groups that schedules can sync to).
66
+ *
67
+ * Use this data source to look up an existing schedule sync target, either by `id` or by `slackUserGroupId`.
68
+ *
69
+ * ## Example Usage
70
+ *
71
+ * ```typescript
72
+ * import * as pulumi from "@pulumi/pulumi";
73
+ * import * as incident from "@incident-io/pulumi";
74
+ *
75
+ * // Look up a schedule sync target by ID.
76
+ * const byId = incident.getScheduleSyncTarget({
77
+ * id: "01ABC123DEF456GHI789JKL",
78
+ * });
79
+ * // ...or by the Slack user group it keeps in sync. The group's Slack-assigned
80
+ * // ID starts with 'S'; this is not the @-handle.
81
+ * const bySlackGroup = incident.getScheduleSyncTarget({
82
+ * slackUserGroupId: "S06MNNU5BMK",
83
+ * });
84
+ * ```
85
+ */
86
+ export declare function getScheduleSyncTargetOutput(args?: GetScheduleSyncTargetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleSyncTargetResult>;
87
+ /**
88
+ * A collection of arguments for invoking getScheduleSyncTarget.
89
+ */
90
+ export interface GetScheduleSyncTargetOutputArgs {
91
+ /**
92
+ * Unique identifier of the sync target
93
+ */
94
+ id?: pulumi.Input<string | undefined>;
95
+ /**
96
+ * Slack ID of the user group whose membership is kept in sync. This is the Slack-assigned group ID (starting with 'S'), not the @-handle.
97
+ */
98
+ slackUserGroupId?: pulumi.Input<string | undefined>;
99
+ }
100
+ //# sourceMappingURL=getScheduleSyncTarget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleSyncTarget.d.ts","sourceRoot":"","sources":["../getScheduleSyncTarget.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAOzI;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,mCAAmC,EAAE,CAAC;IACxE;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACrC;AACD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,CAAC,EAAE,+BAA+B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAOjK;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACvD"}
@@ -0,0 +1,93 @@
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.getScheduleSyncTargetOutput = exports.getScheduleSyncTarget = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Manage schedule sync targets (Slack user groups that schedules can sync to).
33
+ *
34
+ * Use this data source to look up an existing schedule sync target, either by `id` or by `slackUserGroupId`.
35
+ *
36
+ * ## Example Usage
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as incident from "@incident-io/pulumi";
41
+ *
42
+ * // Look up a schedule sync target by ID.
43
+ * const byId = incident.getScheduleSyncTarget({
44
+ * id: "01ABC123DEF456GHI789JKL",
45
+ * });
46
+ * // ...or by the Slack user group it keeps in sync. The group's Slack-assigned
47
+ * // ID starts with 'S'; this is not the @-handle.
48
+ * const bySlackGroup = incident.getScheduleSyncTarget({
49
+ * slackUserGroupId: "S06MNNU5BMK",
50
+ * });
51
+ * ```
52
+ */
53
+ function getScheduleSyncTarget(args, opts) {
54
+ args = args || {};
55
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
56
+ return pulumi.runtime.invoke("incident:index/getScheduleSyncTarget:getScheduleSyncTarget", {
57
+ "id": args.id,
58
+ "slackUserGroupId": args.slackUserGroupId,
59
+ }, opts);
60
+ }
61
+ exports.getScheduleSyncTarget = getScheduleSyncTarget;
62
+ /**
63
+ * Manage schedule sync targets (Slack user groups that schedules can sync to).
64
+ *
65
+ * Use this data source to look up an existing schedule sync target, either by `id` or by `slackUserGroupId`.
66
+ *
67
+ * ## Example Usage
68
+ *
69
+ * ```typescript
70
+ * import * as pulumi from "@pulumi/pulumi";
71
+ * import * as incident from "@incident-io/pulumi";
72
+ *
73
+ * // Look up a schedule sync target by ID.
74
+ * const byId = incident.getScheduleSyncTarget({
75
+ * id: "01ABC123DEF456GHI789JKL",
76
+ * });
77
+ * // ...or by the Slack user group it keeps in sync. The group's Slack-assigned
78
+ * // ID starts with 'S'; this is not the @-handle.
79
+ * const bySlackGroup = incident.getScheduleSyncTarget({
80
+ * slackUserGroupId: "S06MNNU5BMK",
81
+ * });
82
+ * ```
83
+ */
84
+ function getScheduleSyncTargetOutput(args, opts) {
85
+ args = args || {};
86
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
87
+ return pulumi.runtime.invokeOutput("incident:index/getScheduleSyncTarget:getScheduleSyncTarget", {
88
+ "id": args.id,
89
+ "slackUserGroupId": args.slackUserGroupId,
90
+ }, opts);
91
+ }
92
+ exports.getScheduleSyncTargetOutput = getScheduleSyncTargetOutput;
93
+ //# sourceMappingURL=getScheduleSyncTarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleSyncTarget.js","sourceRoot":"","sources":["../getScheduleSyncTarget.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,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,4DAA4D,EAAE;QACvF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC;AAyCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAAiC;IACjH,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,4DAA4D,EAAE;QAC7F,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kEAOC"}