@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
package/getStatus.js ADDED
@@ -0,0 +1,119 @@
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.getStatusOutput = exports.getStatus = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Manage incident statuses.
33
+ *
34
+ * Each incident has a status, picked from one of the statuses configured in your
35
+ * organisations settings.
36
+ *
37
+ * Statuses help communicate where an incident is in its lifecycle. You can use
38
+ * statuses when filtering incidents in the dashboard, and in workflows and announcement
39
+ * rules.
40
+ *
41
+ * Use this data source to look up an existing incident status, either by `id` or by `name`. This is useful for referencing statuses that incident.io manages for you, such as Triage or Closed, which can't be created as an `incident.Status` resource.
42
+ *
43
+ * ## Example Usage
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as incident from "@incident-io/pulumi";
48
+ *
49
+ * // Look up a status that incident.io manages for you, by name.
50
+ * const triage = incident.getStatus({
51
+ * name: "Triage",
52
+ * });
53
+ * // Create an additional status called "Clean-up". Only the live and learning categories
54
+ * // can be added to: incident.io manages the rest, so they can't be customised.
55
+ * const cleanUpStatus = new incident.Status("clean_up", {
56
+ * name: "Clean-up",
57
+ * description: "Not yet fully finished, but isn't a live incident anymore.",
58
+ * category: "live",
59
+ * });
60
+ * // Reference the status by its ID.
61
+ * const cleanUp = incident.getStatusOutput({
62
+ * id: cleanUpStatus.id,
63
+ * });
64
+ * ```
65
+ */
66
+ function getStatus(args, opts) {
67
+ args = args || {};
68
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
69
+ return pulumi.runtime.invoke("incident:index/getStatus:getStatus", {
70
+ "id": args.id,
71
+ "name": args.name,
72
+ }, opts);
73
+ }
74
+ exports.getStatus = getStatus;
75
+ /**
76
+ * Manage incident statuses.
77
+ *
78
+ * Each incident has a status, picked from one of the statuses configured in your
79
+ * organisations settings.
80
+ *
81
+ * Statuses help communicate where an incident is in its lifecycle. You can use
82
+ * statuses when filtering incidents in the dashboard, and in workflows and announcement
83
+ * rules.
84
+ *
85
+ * Use this data source to look up an existing incident status, either by `id` or by `name`. This is useful for referencing statuses that incident.io manages for you, such as Triage or Closed, which can't be created as an `incident.Status` resource.
86
+ *
87
+ * ## Example Usage
88
+ *
89
+ * ```typescript
90
+ * import * as pulumi from "@pulumi/pulumi";
91
+ * import * as incident from "@incident-io/pulumi";
92
+ *
93
+ * // Look up a status that incident.io manages for you, by name.
94
+ * const triage = incident.getStatus({
95
+ * name: "Triage",
96
+ * });
97
+ * // Create an additional status called "Clean-up". Only the live and learning categories
98
+ * // can be added to: incident.io manages the rest, so they can't be customised.
99
+ * const cleanUpStatus = new incident.Status("clean_up", {
100
+ * name: "Clean-up",
101
+ * description: "Not yet fully finished, but isn't a live incident anymore.",
102
+ * category: "live",
103
+ * });
104
+ * // Reference the status by its ID.
105
+ * const cleanUp = incident.getStatusOutput({
106
+ * id: cleanUpStatus.id,
107
+ * });
108
+ * ```
109
+ */
110
+ function getStatusOutput(args, opts) {
111
+ args = args || {};
112
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
113
+ return pulumi.runtime.invokeOutput("incident:index/getStatus:getStatus", {
114
+ "id": args.id,
115
+ "name": args.name,
116
+ }, opts);
117
+ }
118
+ exports.getStatusOutput = getStatusOutput;
119
+ //# sourceMappingURL=getStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../getStatus.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,oCAAoC,EAAE;QAC/D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AAyCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,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,oCAAoC,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC"}
package/getUser.d.ts ADDED
@@ -0,0 +1,52 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * View users.
4
+ *
5
+ * Users all have a single base role, and can be assigned multiple custom roles. They can be managed via your Slack workspace or SAML provider.
6
+ */
7
+ export declare function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
8
+ /**
9
+ * A collection of arguments for invoking getUser.
10
+ */
11
+ export interface GetUserArgs {
12
+ email?: string;
13
+ /**
14
+ * The ID of this resource.
15
+ */
16
+ id?: string;
17
+ slackUserId?: string;
18
+ }
19
+ /**
20
+ * A collection of values returned by getUser.
21
+ */
22
+ export interface GetUserResult {
23
+ readonly email?: string;
24
+ /**
25
+ * The ID of this resource.
26
+ */
27
+ readonly id?: string;
28
+ /**
29
+ * Whether the user is active. False if the user has been deactivated (e.g. offboarded) or is not yet active.
30
+ */
31
+ readonly isActive: boolean;
32
+ readonly name: string;
33
+ readonly slackUserId?: string;
34
+ }
35
+ /**
36
+ * View users.
37
+ *
38
+ * Users all have a single base role, and can be assigned multiple custom roles. They can be managed via your Slack workspace or SAML provider.
39
+ */
40
+ export declare function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUserResult>;
41
+ /**
42
+ * A collection of arguments for invoking getUser.
43
+ */
44
+ export interface GetUserOutputArgs {
45
+ email?: pulumi.Input<string | undefined>;
46
+ /**
47
+ * The ID of this resource.
48
+ */
49
+ id?: pulumi.Input<string | undefined>;
50
+ slackUserId?: pulumi.Input<string | undefined>;
51
+ }
52
+ //# sourceMappingURL=getUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAQ/F;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CACjC;AACD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAQvH;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD"}
package/getUser.js ADDED
@@ -0,0 +1,61 @@
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.getUserOutput = exports.getUser = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * View users.
33
+ *
34
+ * Users all have a single base role, and can be assigned multiple custom roles. They can be managed via your Slack workspace or SAML provider.
35
+ */
36
+ function getUser(args, opts) {
37
+ args = args || {};
38
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
39
+ return pulumi.runtime.invoke("incident:index/getUser:getUser", {
40
+ "email": args.email,
41
+ "id": args.id,
42
+ "slackUserId": args.slackUserId,
43
+ }, opts);
44
+ }
45
+ exports.getUser = getUser;
46
+ /**
47
+ * View users.
48
+ *
49
+ * Users all have a single base role, and can be assigned multiple custom roles. They can be managed via your Slack workspace or SAML provider.
50
+ */
51
+ function getUserOutput(args, opts) {
52
+ args = args || {};
53
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
54
+ return pulumi.runtime.invokeOutput("incident:index/getUser:getUser", {
55
+ "email": args.email,
56
+ "id": args.id,
57
+ "slackUserId": args.slackUserId,
58
+ }, opts);
59
+ }
60
+ exports.getUserOutput = getUserOutput;
61
+ //# sourceMappingURL=getUser.js.map
package/getUser.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;GAIG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,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,gCAAgC,EAAE;QAC3D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AA8BD;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAAiC;IACrF,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,gCAAgC,EAAE;QACjE,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC"}
@@ -0,0 +1,103 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Use this data source to retrieve the full configuration of an existing workflow by 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
+ * // Reference an existing workflow by its ID, to read back its full configuration.
13
+ * const autoassignIncidentLead = incident.getWorkflow({
14
+ * id: "01HY0QGB4M1XKGQGKQD0N9MHKG",
15
+ * });
16
+ * export const autoassignIncidentLeadSteps = autoassignIncidentLead.then(autoassignIncidentLead => autoassignIncidentLead.steps);
17
+ * ```
18
+ */
19
+ export declare function getWorkflow(args: GetWorkflowArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkflowResult>;
20
+ /**
21
+ * A collection of arguments for invoking getWorkflow.
22
+ */
23
+ export interface GetWorkflowArgs {
24
+ /**
25
+ * Unique identifier for the workflow
26
+ */
27
+ id: string;
28
+ }
29
+ /**
30
+ * A collection of values returned by getWorkflow.
31
+ */
32
+ export interface GetWorkflowResult {
33
+ /**
34
+ * The condition groups to apply in this filter. Only one group needs to be satisfied for the filter to pass.
35
+ */
36
+ readonly conditionGroups: outputs.GetWorkflowConditionGroup[];
37
+ /**
38
+ * Whether to continue executing the workflow if a step fails
39
+ */
40
+ readonly continueOnStepError: boolean;
41
+ /**
42
+ * Configuration controlling workflow delay behaviour
43
+ */
44
+ readonly delay: outputs.GetWorkflowDelay;
45
+ /**
46
+ * Expressions that make variables available in the scope
47
+ */
48
+ readonly expressions: outputs.GetWorkflowExpression[];
49
+ /**
50
+ * Folder to display the workflow in
51
+ */
52
+ readonly folder: string;
53
+ /**
54
+ * User-configured form fields available in the workflow scope (manual triggers only)
55
+ */
56
+ readonly formFields: outputs.GetWorkflowFormField[];
57
+ /**
58
+ * Unique identifier for the workflow
59
+ */
60
+ readonly id: string;
61
+ readonly includePrivateEscalations: boolean;
62
+ /**
63
+ * @deprecated Use `privateIncidentScope` instead.
64
+ */
65
+ readonly includePrivateIncidents: boolean;
66
+ readonly name: string;
67
+ readonly onceFors: string[];
68
+ readonly owningTeamIds: string[];
69
+ readonly privateIncidentScope: string;
70
+ readonly runsOnIncidentModes: string[];
71
+ readonly runsOnIncidents: string;
72
+ readonly shortform: string;
73
+ readonly state: string;
74
+ readonly steps: outputs.GetWorkflowStep[];
75
+ readonly trigger: string;
76
+ }
77
+ /**
78
+ * Use this data source to retrieve the full configuration of an existing workflow by ID.
79
+ *
80
+ * ## Example Usage
81
+ *
82
+ * ```typescript
83
+ * import * as pulumi from "@pulumi/pulumi";
84
+ * import * as incident from "@incident-io/pulumi";
85
+ *
86
+ * // Reference an existing workflow by its ID, to read back its full configuration.
87
+ * const autoassignIncidentLead = incident.getWorkflow({
88
+ * id: "01HY0QGB4M1XKGQGKQD0N9MHKG",
89
+ * });
90
+ * export const autoassignIncidentLeadSteps = autoassignIncidentLead.then(autoassignIncidentLead => autoassignIncidentLead.steps);
91
+ * ```
92
+ */
93
+ export declare function getWorkflowOutput(args: GetWorkflowOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkflowResult>;
94
+ /**
95
+ * A collection of arguments for invoking getWorkflow.
96
+ */
97
+ export interface GetWorkflowOutputArgs {
98
+ /**
99
+ * Unique identifier for the workflow
100
+ */
101
+ id: pulumi.Input<string>;
102
+ }
103
+ //# sourceMappingURL=getWorkflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWorkflow.d.ts","sourceRoot":"","sources":["../getWorkflow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAA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B;AACD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAKlI;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
package/getWorkflow.js ADDED
@@ -0,0 +1,77 @@
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.getWorkflowOutput = exports.getWorkflow = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Use this data source to retrieve the full configuration of an existing workflow by 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
+ * // Reference an existing workflow by its ID, to read back its full configuration.
41
+ * const autoassignIncidentLead = incident.getWorkflow({
42
+ * id: "01HY0QGB4M1XKGQGKQD0N9MHKG",
43
+ * });
44
+ * export const autoassignIncidentLeadSteps = autoassignIncidentLead.then(autoassignIncidentLead => autoassignIncidentLead.steps);
45
+ * ```
46
+ */
47
+ function getWorkflow(args, opts) {
48
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
49
+ return pulumi.runtime.invoke("incident:index/getWorkflow:getWorkflow", {
50
+ "id": args.id,
51
+ }, opts);
52
+ }
53
+ exports.getWorkflow = getWorkflow;
54
+ /**
55
+ * Use this data source to retrieve the full configuration of an existing workflow by ID.
56
+ *
57
+ * ## Example Usage
58
+ *
59
+ * ```typescript
60
+ * import * as pulumi from "@pulumi/pulumi";
61
+ * import * as incident from "@incident-io/pulumi";
62
+ *
63
+ * // Reference an existing workflow by its ID, to read back its full configuration.
64
+ * const autoassignIncidentLead = incident.getWorkflow({
65
+ * id: "01HY0QGB4M1XKGQGKQD0N9MHKG",
66
+ * });
67
+ * export const autoassignIncidentLeadSteps = autoassignIncidentLead.then(autoassignIncidentLead => autoassignIncidentLead.steps);
68
+ * ```
69
+ */
70
+ function getWorkflowOutput(args, opts) {
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
72
+ return pulumi.runtime.invokeOutput("incident:index/getWorkflow:getWorkflow", {
73
+ "id": args.id,
74
+ }, opts);
75
+ }
76
+ exports.getWorkflowOutput = getWorkflowOutput;
77
+ //# sourceMappingURL=getWorkflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWorkflow.js","sourceRoot":"","sources":["../getWorkflow.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;AA4DD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC"}
@@ -0,0 +1,109 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manage incident roles.
4
+ *
5
+ * During an incident, you can assign responders to one of the incident roles that are
6
+ * configured in your organisation settings.
7
+ *
8
+ * Every organisation will have a special 'lead' role, which signifies the incident lead or
9
+ * commander. This role cannot be deleted, but can be renamed in the incident.io dashboard.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as incident from "@incident-io/pulumi";
16
+ *
17
+ * // Create a communications lead that is not required.
18
+ * const comms = new incident.IncidentRole("comms", {
19
+ * name: "Communications Lead",
20
+ * description: "Responsible for communications on behalf of the response team.",
21
+ * instructions: "Manage internal and external communications on behalf of the response team.",
22
+ * shortform: "comms",
23
+ * });
24
+ * ```
25
+ */
26
+ export declare class IncidentRole extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing IncidentRole resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IncidentRoleState, opts?: pulumi.CustomResourceOptions): IncidentRole;
37
+ /**
38
+ * Returns true if the given object is an instance of IncidentRole. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is IncidentRole;
42
+ /**
43
+ * Describes the purpose of the role
44
+ */
45
+ readonly description: pulumi.Output<string>;
46
+ /**
47
+ * Provided to whoever is nominated for the role. Note that this will be empty for the 'reporter' role.
48
+ */
49
+ readonly instructions: pulumi.Output<string>;
50
+ /**
51
+ * Human readable name of the incident role
52
+ */
53
+ readonly name: pulumi.Output<string>;
54
+ /**
55
+ * Short human readable name for Slack. Note that this will be empty for the 'reporter' role.
56
+ */
57
+ readonly shortform: pulumi.Output<string>;
58
+ /**
59
+ * Create a IncidentRole resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args: IncidentRoleArgs, opts?: pulumi.CustomResourceOptions);
66
+ }
67
+ /**
68
+ * Input properties used for looking up and filtering IncidentRole resources.
69
+ */
70
+ export interface IncidentRoleState {
71
+ /**
72
+ * Describes the purpose of the role
73
+ */
74
+ description?: pulumi.Input<string | undefined>;
75
+ /**
76
+ * Provided to whoever is nominated for the role. Note that this will be empty for the 'reporter' role.
77
+ */
78
+ instructions?: pulumi.Input<string | undefined>;
79
+ /**
80
+ * Human readable name of the incident role
81
+ */
82
+ name?: pulumi.Input<string | undefined>;
83
+ /**
84
+ * Short human readable name for Slack. Note that this will be empty for the 'reporter' role.
85
+ */
86
+ shortform?: pulumi.Input<string | undefined>;
87
+ }
88
+ /**
89
+ * The set of arguments for constructing a IncidentRole resource.
90
+ */
91
+ export interface IncidentRoleArgs {
92
+ /**
93
+ * Describes the purpose of the role
94
+ */
95
+ description: pulumi.Input<string>;
96
+ /**
97
+ * Provided to whoever is nominated for the role. Note that this will be empty for the 'reporter' role.
98
+ */
99
+ instructions: pulumi.Input<string>;
100
+ /**
101
+ * Human readable name of the incident role
102
+ */
103
+ name?: pulumi.Input<string | undefined>;
104
+ /**
105
+ * Short human readable name for Slack. Note that this will be empty for the 'reporter' role.
106
+ */
107
+ shortform: pulumi.Input<string>;
108
+ }
109
+ //# sourceMappingURL=incidentRole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentRole.d.ts","sourceRoot":"","sources":["../incidentRole.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,YAAY;IAO1I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,YAAY;IAOvD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5D;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEzD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA6BxF;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC"}
@@ -0,0 +1,111 @@
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.IncidentRole = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Manage incident roles.
33
+ *
34
+ * During an incident, you can assign responders to one of the incident roles that are
35
+ * configured in your organisation settings.
36
+ *
37
+ * Every organisation will have a special 'lead' role, which signifies the incident lead or
38
+ * commander. This role cannot be deleted, but can be renamed in the incident.io dashboard.
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * ```typescript
43
+ * import * as pulumi from "@pulumi/pulumi";
44
+ * import * as incident from "@incident-io/pulumi";
45
+ *
46
+ * // Create a communications lead that is not required.
47
+ * const comms = new incident.IncidentRole("comms", {
48
+ * name: "Communications Lead",
49
+ * description: "Responsible for communications on behalf of the response team.",
50
+ * instructions: "Manage internal and external communications on behalf of the response team.",
51
+ * shortform: "comms",
52
+ * });
53
+ * ```
54
+ */
55
+ class IncidentRole extends pulumi.CustomResource {
56
+ /**
57
+ * Get an existing IncidentRole resource's state with the given name, ID, and optional extra
58
+ * properties used to qualify the lookup.
59
+ *
60
+ * @param name The _unique_ name of the resulting resource.
61
+ * @param id The _unique_ provider ID of the resource to lookup.
62
+ * @param state Any extra arguments used during the lookup.
63
+ * @param opts Optional settings to control the behavior of the CustomResource.
64
+ */
65
+ static get(name, id, state, opts) {
66
+ return new IncidentRole(name, state, { ...opts, id: id });
67
+ }
68
+ /** @internal */
69
+ static __pulumiType = 'incident:index/incidentRole:IncidentRole';
70
+ /**
71
+ * Returns true if the given object is an instance of IncidentRole. This is designed to work even
72
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
73
+ */
74
+ static isInstance(obj) {
75
+ if (obj === undefined || obj === null) {
76
+ return false;
77
+ }
78
+ return obj['__pulumiType'] === IncidentRole.__pulumiType;
79
+ }
80
+ constructor(name, argsOrState, opts) {
81
+ let resourceInputs = {};
82
+ opts = opts || {};
83
+ if (opts.id) {
84
+ const state = argsOrState;
85
+ resourceInputs["description"] = state?.description;
86
+ resourceInputs["instructions"] = state?.instructions;
87
+ resourceInputs["name"] = state?.name;
88
+ resourceInputs["shortform"] = state?.shortform;
89
+ }
90
+ else {
91
+ const args = argsOrState;
92
+ if (args?.description === undefined && !opts.urn) {
93
+ throw new Error("Missing required property 'description'");
94
+ }
95
+ if (args?.instructions === undefined && !opts.urn) {
96
+ throw new Error("Missing required property 'instructions'");
97
+ }
98
+ if (args?.shortform === undefined && !opts.urn) {
99
+ throw new Error("Missing required property 'shortform'");
100
+ }
101
+ resourceInputs["description"] = args?.description;
102
+ resourceInputs["instructions"] = args?.instructions;
103
+ resourceInputs["name"] = args?.name;
104
+ resourceInputs["shortform"] = args?.shortform;
105
+ }
106
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
+ super(IncidentRole.__pulumiType, name, resourceInputs, opts);
108
+ }
109
+ }
110
+ exports.IncidentRole = IncidentRole;
111
+ //# sourceMappingURL=incidentRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentRole.js","sourceRoot":"","sources":["../incidentRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;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