@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,107 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * View incident timestamps.
4
+ *
5
+ * Each incident has a number of timestamps; some being defaults that we set on
6
+ * each incident for you, and other being configured for your organisation within
7
+ * settings.
8
+ *
9
+ * Timestamps help to communicate when a given action was taken for a specific
10
+ * incident, for example when it was reported, closed or fixed.
11
+ *
12
+ * Use this data source to look up an existing incident timestamp, either by `id` or by `name`. Timestamps can't be created from Terraform, so this is how you get hold of the ID of one incident.io sets for you, such as Reported or Closed, or one configured in your settings.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as incident from "@incident-io/pulumi";
19
+ *
20
+ * // Look up one of the timestamps incident.io sets on every incident, by name.
21
+ * // This avoids pinning an ID that differs between workspaces.
22
+ * const reported = incident.getIncidentTimestamp({
23
+ * name: "Reported",
24
+ * });
25
+ * // Or by ID, for example one you've copied out of your organisation's settings.
26
+ * const impactStarted = incident.getIncidentTimestamp({
27
+ * id: "01FCNDV6P870EA6S7TK1DSYD5H",
28
+ * });
29
+ * export const reportedTimestampId = reported.then(reported => reported.id);
30
+ * ```
31
+ */
32
+ export declare function getIncidentTimestamp(args?: GetIncidentTimestampArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentTimestampResult>;
33
+ /**
34
+ * A collection of arguments for invoking getIncidentTimestamp.
35
+ */
36
+ export interface GetIncidentTimestampArgs {
37
+ /**
38
+ * Unique ID of this incident timestamp
39
+ */
40
+ id?: string;
41
+ /**
42
+ * Unique name of this timestamp
43
+ */
44
+ name?: string;
45
+ }
46
+ /**
47
+ * A collection of values returned by getIncidentTimestamp.
48
+ */
49
+ export interface GetIncidentTimestampResult {
50
+ /**
51
+ * Unique ID of this incident timestamp
52
+ */
53
+ readonly id: string;
54
+ /**
55
+ * Unique name of this timestamp
56
+ */
57
+ readonly name: string;
58
+ /**
59
+ * Order in which this timestamp should be shown
60
+ */
61
+ readonly rank: number;
62
+ }
63
+ /**
64
+ * View incident timestamps.
65
+ *
66
+ * Each incident has a number of timestamps; some being defaults that we set on
67
+ * each incident for you, and other being configured for your organisation within
68
+ * settings.
69
+ *
70
+ * Timestamps help to communicate when a given action was taken for a specific
71
+ * incident, for example when it was reported, closed or fixed.
72
+ *
73
+ * Use this data source to look up an existing incident timestamp, either by `id` or by `name`. Timestamps can't be created from Terraform, so this is how you get hold of the ID of one incident.io sets for you, such as Reported or Closed, or one configured in your settings.
74
+ *
75
+ * ## Example Usage
76
+ *
77
+ * ```typescript
78
+ * import * as pulumi from "@pulumi/pulumi";
79
+ * import * as incident from "@incident-io/pulumi";
80
+ *
81
+ * // Look up one of the timestamps incident.io sets on every incident, by name.
82
+ * // This avoids pinning an ID that differs between workspaces.
83
+ * const reported = incident.getIncidentTimestamp({
84
+ * name: "Reported",
85
+ * });
86
+ * // Or by ID, for example one you've copied out of your organisation's settings.
87
+ * const impactStarted = incident.getIncidentTimestamp({
88
+ * id: "01FCNDV6P870EA6S7TK1DSYD5H",
89
+ * });
90
+ * export const reportedTimestampId = reported.then(reported => reported.id);
91
+ * ```
92
+ */
93
+ export declare function getIncidentTimestampOutput(args?: GetIncidentTimestampOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentTimestampResult>;
94
+ /**
95
+ * A collection of arguments for invoking getIncidentTimestamp.
96
+ */
97
+ export interface GetIncidentTimestampOutputArgs {
98
+ /**
99
+ * Unique ID of this incident timestamp
100
+ */
101
+ id?: pulumi.Input<string | undefined>;
102
+ /**
103
+ * Unique name of this timestamp
104
+ */
105
+ name?: pulumi.Input<string | undefined>;
106
+ }
107
+ //# sourceMappingURL=getIncidentTimestamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIncidentTimestamp.d.ts","sourceRoot":"","sources":["../getIncidentTimestamp.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAOtI;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;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;CACzB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,CAAC,EAAE,8BAA8B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAO9J;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;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,109 @@
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.getIncidentTimestampOutput = exports.getIncidentTimestamp = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * View incident timestamps.
33
+ *
34
+ * Each incident has a number of timestamps; some being defaults that we set on
35
+ * each incident for you, and other being configured for your organisation within
36
+ * settings.
37
+ *
38
+ * Timestamps help to communicate when a given action was taken for a specific
39
+ * incident, for example when it was reported, closed or fixed.
40
+ *
41
+ * Use this data source to look up an existing incident timestamp, either by `id` or by `name`. Timestamps can't be created from Terraform, so this is how you get hold of the ID of one incident.io sets for you, such as Reported or Closed, or one configured in your settings.
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 one of the timestamps incident.io sets on every incident, by name.
50
+ * // This avoids pinning an ID that differs between workspaces.
51
+ * const reported = incident.getIncidentTimestamp({
52
+ * name: "Reported",
53
+ * });
54
+ * // Or by ID, for example one you've copied out of your organisation's settings.
55
+ * const impactStarted = incident.getIncidentTimestamp({
56
+ * id: "01FCNDV6P870EA6S7TK1DSYD5H",
57
+ * });
58
+ * export const reportedTimestampId = reported.then(reported => reported.id);
59
+ * ```
60
+ */
61
+ function getIncidentTimestamp(args, opts) {
62
+ args = args || {};
63
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
64
+ return pulumi.runtime.invoke("incident:index/getIncidentTimestamp:getIncidentTimestamp", {
65
+ "id": args.id,
66
+ "name": args.name,
67
+ }, opts);
68
+ }
69
+ exports.getIncidentTimestamp = getIncidentTimestamp;
70
+ /**
71
+ * View incident timestamps.
72
+ *
73
+ * Each incident has a number of timestamps; some being defaults that we set on
74
+ * each incident for you, and other being configured for your organisation within
75
+ * settings.
76
+ *
77
+ * Timestamps help to communicate when a given action was taken for a specific
78
+ * incident, for example when it was reported, closed or fixed.
79
+ *
80
+ * Use this data source to look up an existing incident timestamp, either by `id` or by `name`. Timestamps can't be created from Terraform, so this is how you get hold of the ID of one incident.io sets for you, such as Reported or Closed, or one configured in your settings.
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 one of the timestamps incident.io sets on every incident, by name.
89
+ * // This avoids pinning an ID that differs between workspaces.
90
+ * const reported = incident.getIncidentTimestamp({
91
+ * name: "Reported",
92
+ * });
93
+ * // Or by ID, for example one you've copied out of your organisation's settings.
94
+ * const impactStarted = incident.getIncidentTimestamp({
95
+ * id: "01FCNDV6P870EA6S7TK1DSYD5H",
96
+ * });
97
+ * export const reportedTimestampId = reported.then(reported => reported.id);
98
+ * ```
99
+ */
100
+ function getIncidentTimestampOutput(args, opts) {
101
+ args = args || {};
102
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
103
+ return pulumi.runtime.invokeOutput("incident:index/getIncidentTimestamp:getIncidentTimestamp", {
104
+ "id": args.id,
105
+ "name": args.name,
106
+ }, opts);
107
+ }
108
+ exports.getIncidentTimestampOutput = getIncidentTimestampOutput;
109
+ //# sourceMappingURL=getIncidentTimestamp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIncidentTimestamp.js","sourceRoot":"","sources":["../getIncidentTimestamp.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,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,0DAA0D,EAAE;QACrF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oDAOC;AAiCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,0BAA0B,CAAC,IAAqC,EAAE,IAAiC;IAC/G,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,0DAA0D,EAAE;QAC3F,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gEAOC"}
@@ -0,0 +1,121 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * View incident types.
4
+ *
5
+ * With incident types enabled, you can tailor your process to the situation you're
6
+ * responding to with different custom fields and roles for each incident type.
7
+ *
8
+ * Use this data source to look up an existing incident type, either by `id` or by `name`.
9
+ *
10
+ * Incident types can't be created from Terraform - they're configured in your settings - so this is how you get hold of one's ID, such as for an alert route or a workflow that only applies to incidents of one type.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as incident from "@incident-io/pulumi";
17
+ *
18
+ * // Look up an incident type by name. Incident types are configured in your
19
+ * // settings rather than created from Terraform, so this is how you get hold of
20
+ * // one's ID.
21
+ * const productionOutage = incident.getIncidentType({
22
+ * name: "Production Outage",
23
+ * });
24
+ * // Or by ID, if you already have one.
25
+ * const byId = incident.getIncidentType({
26
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
27
+ * });
28
+ * export const productionOutageId = productionOutage.then(productionOutage => productionOutage.id);
29
+ * ```
30
+ */
31
+ export declare function getIncidentType(args?: GetIncidentTypeArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentTypeResult>;
32
+ /**
33
+ * A collection of arguments for invoking getIncidentType.
34
+ */
35
+ export interface GetIncidentTypeArgs {
36
+ /**
37
+ * Unique identifier for this Incident Type
38
+ */
39
+ id?: string;
40
+ /**
41
+ * The name of this Incident Type
42
+ */
43
+ name?: string;
44
+ }
45
+ /**
46
+ * A collection of values returned by getIncidentType.
47
+ */
48
+ export interface GetIncidentTypeResult {
49
+ /**
50
+ * Whether incidents of this must always, or can optionally, be created in triage. Possible values are: `always`, `optional`.
51
+ */
52
+ readonly createInTriage: string;
53
+ /**
54
+ * What is this incident type for?
55
+ */
56
+ readonly description: string;
57
+ /**
58
+ * Unique identifier for this Incident Type
59
+ */
60
+ readonly id: string;
61
+ /**
62
+ * The default Incident Type is used when no other type is explicitly specified
63
+ */
64
+ readonly isDefault: boolean;
65
+ /**
66
+ * The name of this Incident Type
67
+ */
68
+ readonly name: string;
69
+ /**
70
+ * IDs of the teams that own this incident type
71
+ */
72
+ readonly owningTeamIds: string[];
73
+ /**
74
+ * Should all incidents created with this Incident Type be private?
75
+ */
76
+ readonly privateIncidentsOnly: boolean;
77
+ }
78
+ /**
79
+ * View incident types.
80
+ *
81
+ * With incident types enabled, you can tailor your process to the situation you're
82
+ * responding to with different custom fields and roles for each incident type.
83
+ *
84
+ * Use this data source to look up an existing incident type, either by `id` or by `name`.
85
+ *
86
+ * Incident types can't be created from Terraform - they're configured in your settings - so this is how you get hold of one's ID, such as for an alert route or a workflow that only applies to incidents of one type.
87
+ *
88
+ * ## Example Usage
89
+ *
90
+ * ```typescript
91
+ * import * as pulumi from "@pulumi/pulumi";
92
+ * import * as incident from "@incident-io/pulumi";
93
+ *
94
+ * // Look up an incident type by name. Incident types are configured in your
95
+ * // settings rather than created from Terraform, so this is how you get hold of
96
+ * // one's ID.
97
+ * const productionOutage = incident.getIncidentType({
98
+ * name: "Production Outage",
99
+ * });
100
+ * // Or by ID, if you already have one.
101
+ * const byId = incident.getIncidentType({
102
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
103
+ * });
104
+ * export const productionOutageId = productionOutage.then(productionOutage => productionOutage.id);
105
+ * ```
106
+ */
107
+ export declare function getIncidentTypeOutput(args?: GetIncidentTypeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentTypeResult>;
108
+ /**
109
+ * A collection of arguments for invoking getIncidentType.
110
+ */
111
+ export interface GetIncidentTypeOutputArgs {
112
+ /**
113
+ * Unique identifier for this Incident Type
114
+ */
115
+ id?: pulumi.Input<string | undefined>;
116
+ /**
117
+ * The name of this Incident Type
118
+ */
119
+ name?: pulumi.Input<string | undefined>;
120
+ }
121
+ //# sourceMappingURL=getIncidentType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIncidentType.d.ts","sourceRoot":"","sources":["../getIncidentType.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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,cAAc,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;CAC1C;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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,107 @@
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.getIncidentTypeOutput = exports.getIncidentType = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * View incident types.
33
+ *
34
+ * With incident types enabled, you can tailor your process to the situation you're
35
+ * responding to with different custom fields and roles for each incident type.
36
+ *
37
+ * Use this data source to look up an existing incident type, either by `id` or by `name`.
38
+ *
39
+ * Incident types can't be created from Terraform - they're configured in your settings - so this is how you get hold of one's ID, such as for an alert route or a workflow that only applies to incidents of one type.
40
+ *
41
+ * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as incident from "@incident-io/pulumi";
46
+ *
47
+ * // Look up an incident type by name. Incident types are configured in your
48
+ * // settings rather than created from Terraform, so this is how you get hold of
49
+ * // one's ID.
50
+ * const productionOutage = incident.getIncidentType({
51
+ * name: "Production Outage",
52
+ * });
53
+ * // Or by ID, if you already have one.
54
+ * const byId = incident.getIncidentType({
55
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
56
+ * });
57
+ * export const productionOutageId = productionOutage.then(productionOutage => productionOutage.id);
58
+ * ```
59
+ */
60
+ function getIncidentType(args, opts) {
61
+ args = args || {};
62
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
63
+ return pulumi.runtime.invoke("incident:index/getIncidentType:getIncidentType", {
64
+ "id": args.id,
65
+ "name": args.name,
66
+ }, opts);
67
+ }
68
+ exports.getIncidentType = getIncidentType;
69
+ /**
70
+ * View incident types.
71
+ *
72
+ * With incident types enabled, you can tailor your process to the situation you're
73
+ * responding to with different custom fields and roles for each incident type.
74
+ *
75
+ * Use this data source to look up an existing incident type, either by `id` or by `name`.
76
+ *
77
+ * Incident types can't be created from Terraform - they're configured in your settings - so this is how you get hold of one's ID, such as for an alert route or a workflow that only applies to incidents of one type.
78
+ *
79
+ * ## Example Usage
80
+ *
81
+ * ```typescript
82
+ * import * as pulumi from "@pulumi/pulumi";
83
+ * import * as incident from "@incident-io/pulumi";
84
+ *
85
+ * // Look up an incident type by name. Incident types are configured in your
86
+ * // settings rather than created from Terraform, so this is how you get hold of
87
+ * // one's ID.
88
+ * const productionOutage = incident.getIncidentType({
89
+ * name: "Production Outage",
90
+ * });
91
+ * // Or by ID, if you already have one.
92
+ * const byId = incident.getIncidentType({
93
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
94
+ * });
95
+ * export const productionOutageId = productionOutage.then(productionOutage => productionOutage.id);
96
+ * ```
97
+ */
98
+ function getIncidentTypeOutput(args, opts) {
99
+ args = args || {};
100
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
101
+ return pulumi.runtime.invokeOutput("incident:index/getIncidentType:getIncidentType", {
102
+ "id": args.id,
103
+ "name": args.name,
104
+ }, opts);
105
+ }
106
+ exports.getIncidentTypeOutput = getIncidentTypeOutput;
107
+ //# sourceMappingURL=getIncidentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIncidentType.js","sourceRoot":"","sources":["../getIncidentType.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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;AAiDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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,62 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Manage the IP allowlist.
5
+ *
6
+ * When enabled, the IP allowlist restricts authenticated traffic from the dashboard, public API and mobile app.
7
+ *
8
+ * Use this data source to read the organisation's IP allowlist: whether it is enabled, and the IP addresses or CIDR prefixes that are allowed to reach the dashboard, public API and mobile app.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as incident from "@incident-io/pulumi";
15
+ *
16
+ * // Read the organisation's IP allowlist.
17
+ * const current = incident.getIpAllowlist({});
18
+ * export const allowedAddresses = current.then(current => .map(item => (item.value)));
19
+ * ```
20
+ */
21
+ export declare function getIpAllowlist(opts?: pulumi.InvokeOptions): Promise<GetIpAllowlistResult>;
22
+ /**
23
+ * A collection of values returned by getIpAllowlist.
24
+ */
25
+ export interface GetIpAllowlistResult {
26
+ /**
27
+ * A list of IP addresses or CIDR prefixes to allow
28
+ */
29
+ readonly allowlists: outputs.GetIpAllowlistAllowlist[];
30
+ /**
31
+ * Whether this IP allowlist is enabled or not
32
+ */
33
+ readonly enabled: boolean;
34
+ /**
35
+ * The time this allowlist was last updated
36
+ */
37
+ readonly updatedAt: string;
38
+ /**
39
+ * The version of this IP allowlist
40
+ */
41
+ readonly version: number;
42
+ }
43
+ /**
44
+ * Manage the IP allowlist.
45
+ *
46
+ * When enabled, the IP allowlist restricts authenticated traffic from the dashboard, public API and mobile app.
47
+ *
48
+ * Use this data source to read the organisation's IP allowlist: whether it is enabled, and the IP addresses or CIDR prefixes that are allowed to reach the dashboard, public API and mobile app.
49
+ *
50
+ * ## Example Usage
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as incident from "@incident-io/pulumi";
55
+ *
56
+ * // Read the organisation's IP allowlist.
57
+ * const current = incident.getIpAllowlist({});
58
+ * export const allowedAddresses = current.then(current => .map(item => (item.value)));
59
+ * ```
60
+ */
61
+ export declare function getIpAllowlistOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIpAllowlistResult>;
62
+ //# sourceMappingURL=getIpAllowlist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIpAllowlist.d.ts","sourceRoot":"","sources":["../getIpAllowlist.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAIzF;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,uBAAuB,EAAE,CAAC;IACvD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B;AACD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAI3G"}
@@ -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.getIpAllowlistOutput = exports.getIpAllowlist = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Manage the IP allowlist.
33
+ *
34
+ * When enabled, the IP allowlist restricts authenticated traffic from the dashboard, public API and mobile app.
35
+ *
36
+ * Use this data source to read the organisation's IP allowlist: whether it is enabled, and the IP addresses or CIDR prefixes that are allowed to reach the dashboard, public API and mobile app.
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as incident from "@incident-io/pulumi";
43
+ *
44
+ * // Read the organisation's IP allowlist.
45
+ * const current = incident.getIpAllowlist({});
46
+ * export const allowedAddresses = current.then(current => .map(item => (item.value)));
47
+ * ```
48
+ */
49
+ function getIpAllowlist(opts) {
50
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
51
+ return pulumi.runtime.invoke("incident:index/getIpAllowlist:getIpAllowlist", {}, opts);
52
+ }
53
+ exports.getIpAllowlist = getIpAllowlist;
54
+ /**
55
+ * Manage the IP allowlist.
56
+ *
57
+ * When enabled, the IP allowlist restricts authenticated traffic from the dashboard, public API and mobile app.
58
+ *
59
+ * Use this data source to read the organisation's IP allowlist: whether it is enabled, and the IP addresses or CIDR prefixes that are allowed to reach the dashboard, public API and mobile app.
60
+ *
61
+ * ## Example Usage
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as incident from "@incident-io/pulumi";
66
+ *
67
+ * // Read the organisation's IP allowlist.
68
+ * const current = incident.getIpAllowlist({});
69
+ * export const allowedAddresses = current.then(current => .map(item => (item.value)));
70
+ * ```
71
+ */
72
+ function getIpAllowlistOutput(opts) {
73
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
74
+ return pulumi.runtime.invokeOutput("incident:index/getIpAllowlist:getIpAllowlist", {}, opts);
75
+ }
76
+ exports.getIpAllowlistOutput = getIpAllowlistOutput;
77
+ //# sourceMappingURL=getIpAllowlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIpAllowlist.js","sourceRoot":"","sources":["../getIpAllowlist.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,cAAc,CAAC,IAA2B;IACtD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wCAIC;AAuBD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,oBAAoB,CAAC,IAAiC;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8CAA8C,EAAE,EAClF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oDAIC"}