@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,105 @@
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.EscalationPathBeta = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * `incident.EscalationPathBeta` was renamed to `incident.EscalationPath` 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.EscalationPath` for the
46
+ * documentation.
47
+ */
48
+ class EscalationPathBeta extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing EscalationPathBeta resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name, id, state, opts) {
59
+ return new EscalationPathBeta(name, state, { ...opts, id: id });
60
+ }
61
+ /** @internal */
62
+ static __pulumiType = 'incident:index/escalationPathBeta:EscalationPathBeta';
63
+ /**
64
+ * Returns true if the given object is an instance of EscalationPathBeta. This is designed to work even
65
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
+ */
67
+ static isInstance(obj) {
68
+ if (obj === undefined || obj === null) {
69
+ return false;
70
+ }
71
+ return obj['__pulumiType'] === EscalationPathBeta.__pulumiType;
72
+ }
73
+ constructor(name, argsOrState, opts) {
74
+ let resourceInputs = {};
75
+ opts = opts || {};
76
+ if (opts.id) {
77
+ const state = argsOrState;
78
+ resourceInputs["name"] = state?.name;
79
+ resourceInputs["repeatConfig"] = state?.repeatConfig;
80
+ resourceInputs["sequences"] = state?.sequences;
81
+ resourceInputs["start"] = state?.start;
82
+ resourceInputs["teamIds"] = state?.teamIds;
83
+ resourceInputs["workingHours"] = state?.workingHours;
84
+ }
85
+ else {
86
+ const args = argsOrState;
87
+ if (args?.sequences === undefined && !opts.urn) {
88
+ throw new Error("Missing required property 'sequences'");
89
+ }
90
+ if (args?.start === undefined && !opts.urn) {
91
+ throw new Error("Missing required property 'start'");
92
+ }
93
+ resourceInputs["name"] = args?.name;
94
+ resourceInputs["repeatConfig"] = args?.repeatConfig;
95
+ resourceInputs["sequences"] = args?.sequences;
96
+ resourceInputs["start"] = args?.start;
97
+ resourceInputs["teamIds"] = args?.teamIds;
98
+ resourceInputs["workingHours"] = args?.workingHours;
99
+ }
100
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
101
+ super(EscalationPathBeta.__pulumiType, name, resourceInputs, opts);
102
+ }
103
+ }
104
+ exports.EscalationPathBeta = EscalationPathBeta;
105
+ //# sourceMappingURL=escalationPathBeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escalationPathBeta.js","sourceRoot":"","sources":["../escalationPathBeta.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,sDAAsD,CAAC;IAE7F;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;SACxD;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAzFL,gDA0FC"}
@@ -0,0 +1,81 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This data source provides information about an alert attribute.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as incident from "@incident-io/pulumi";
10
+ *
11
+ * // Reference the `Github user` alert attribute
12
+ * const githubUser = incident.getAlertAttribute({
13
+ * name: "Github user",
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function getAlertAttribute(args: GetAlertAttributeArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertAttributeResult>;
18
+ /**
19
+ * A collection of arguments for invoking getAlertAttribute.
20
+ */
21
+ export interface GetAlertAttributeArgs {
22
+ /**
23
+ * Unique name of this attribute
24
+ */
25
+ name: string;
26
+ }
27
+ /**
28
+ * A collection of values returned by getAlertAttribute.
29
+ */
30
+ export interface GetAlertAttributeResult {
31
+ /**
32
+ * Whether this attribute is an array
33
+ */
34
+ readonly array: boolean;
35
+ /**
36
+ * The emoji to display alongside this attribute in chat messages, stored without colons
37
+ */
38
+ readonly emoji: string;
39
+ /**
40
+ * The ID of this attribute
41
+ */
42
+ readonly id: string;
43
+ /**
44
+ * Unique name of this attribute
45
+ */
46
+ readonly name: string;
47
+ /**
48
+ * Whether this attribute is required. If this field is not set, the existing setting will be preserved.
49
+ */
50
+ readonly required: boolean;
51
+ /**
52
+ * Engine resource name for this attribute
53
+ */
54
+ readonly type: string;
55
+ }
56
+ /**
57
+ * This data source provides information about an alert attribute.
58
+ *
59
+ * ## Example Usage
60
+ *
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as incident from "@incident-io/pulumi";
64
+ *
65
+ * // Reference the `Github user` alert attribute
66
+ * const githubUser = incident.getAlertAttribute({
67
+ * name: "Github user",
68
+ * });
69
+ * ```
70
+ */
71
+ export declare function getAlertAttributeOutput(args: GetAlertAttributeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertAttributeResult>;
72
+ /**
73
+ * A collection of arguments for invoking getAlertAttribute.
74
+ */
75
+ export interface GetAlertAttributeOutputArgs {
76
+ /**
77
+ * Unique name of this attribute
78
+ */
79
+ name: pulumi.Input<string>;
80
+ }
81
+ //# sourceMappingURL=getAlertAttribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertAttribute.d.ts","sourceRoot":"","sources":["../getAlertAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAK5H;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AACD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAKpJ;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
@@ -0,0 +1,75 @@
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.getAlertAttributeOutput = exports.getAlertAttribute = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * This data source provides information about an alert attribute.
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 the `Github user` alert attribute
41
+ * const githubUser = incident.getAlertAttribute({
42
+ * name: "Github user",
43
+ * });
44
+ * ```
45
+ */
46
+ function getAlertAttribute(args, opts) {
47
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
48
+ return pulumi.runtime.invoke("incident:index/getAlertAttribute:getAlertAttribute", {
49
+ "name": args.name,
50
+ }, opts);
51
+ }
52
+ exports.getAlertAttribute = getAlertAttribute;
53
+ /**
54
+ * This data source provides information about an alert attribute.
55
+ *
56
+ * ## Example Usage
57
+ *
58
+ * ```typescript
59
+ * import * as pulumi from "@pulumi/pulumi";
60
+ * import * as incident from "@incident-io/pulumi";
61
+ *
62
+ * // Reference the `Github user` alert attribute
63
+ * const githubUser = incident.getAlertAttribute({
64
+ * name: "Github user",
65
+ * });
66
+ * ```
67
+ */
68
+ function getAlertAttributeOutput(args, opts) {
69
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
70
+ return pulumi.runtime.invokeOutput("incident:index/getAlertAttribute:getAlertAttribute", {
71
+ "name": args.name,
72
+ }, opts);
73
+ }
74
+ exports.getAlertAttributeOutput = getAlertAttributeOutput;
75
+ //# sourceMappingURL=getAlertAttribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertAttribute.js","sourceRoot":"","sources":["../getAlertAttribute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8CAKC;AAyCD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAAiC;IACxG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oDAAoD,EAAE;QACrF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0DAKC"}
@@ -0,0 +1,169 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Look up an alert source by `id` or `name`, in the same shape as the `incident.AlertSource` resource. Exactly one lookup field should be set.
6
+ *
7
+ * The attributes a source populates are not returned here: each is its own object, read with the `incident.AlertSourceAttribute` data source.
8
+ *
9
+ * `title` and `description` come back as the account holds them, which for a source you manage here need not be the document you wrote: a resource keeps your spelling of a rich text value, and this reports the `{{ }}` template it renders to. The two mean the same thing and either can be written back, but they are not the same string, so comparing one against the other will not match.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as incident from "@incident-io/pulumi";
16
+ *
17
+ * // Look up a single alert source by ID.
18
+ * const pagerduty = incident.getAlertSource({
19
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
20
+ * });
21
+ * export const pagerdutyAlertEventsUrl = pagerduty.then(pagerduty => pagerduty.alertEventsUrl);
22
+ * // Or by name, for a source you did not create here and whose ID you do not have. Names are
23
+ * // not unique, so a name matching more than one source is an error rather than a guess.
24
+ * const cron = incident.getAlertSource({
25
+ * name: "Cron heartbeat",
26
+ * });
27
+ * export const cronPingUrl = cron.then(cron => cron.heartbeatOptions?.pingUrl);
28
+ * ```
29
+ */
30
+ export declare function getAlertSource(args?: GetAlertSourceArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertSourceResult>;
31
+ /**
32
+ * A collection of arguments for invoking getAlertSource.
33
+ */
34
+ export interface GetAlertSourceArgs {
35
+ /**
36
+ * Unique identifier for this alert source
37
+ */
38
+ id?: string;
39
+ /**
40
+ * The name of this alert source, for the user's reference
41
+ */
42
+ name?: string;
43
+ /**
44
+ * An expression this resource owns, addressed by name.
45
+ */
46
+ namedExpressions?: inputs.GetAlertSourceNamedExpression[];
47
+ }
48
+ /**
49
+ * A collection of values returned by getAlertSource.
50
+ */
51
+ export interface GetAlertSourceResult {
52
+ /**
53
+ * The URL to send alert events to
54
+ */
55
+ readonly alertEventsUrl: string;
56
+ /**
57
+ * Whether alerts from this source keep counting down to auto-resolve while attached to an incident. Defaults to true. Has no effect without auto*resolve*timeout_minutes.
58
+ */
59
+ readonly autoResolveIncidentAlerts: boolean;
60
+ /**
61
+ * How long to wait before automatically resolving alerts from this source
62
+ */
63
+ readonly autoResolveTimeoutMinutes: number;
64
+ readonly description: outputs.GetAlertSourceDescription;
65
+ /**
66
+ * Whether monitoring is paused for this source. Only returned for source types that support being disabled.
67
+ */
68
+ readonly disabled: boolean;
69
+ /**
70
+ * Email address this alert source receives alerts to
71
+ */
72
+ readonly emailAddress: string;
73
+ readonly emailOptions: outputs.GetAlertSourceEmailOptions;
74
+ /**
75
+ * The condition groups to apply in this filter. Only one group needs to be satisfied for the filter to pass.
76
+ */
77
+ readonly filterConditionGroups: outputs.GetAlertSourceFilterConditionGroup[];
78
+ /**
79
+ * When set, the team every alert from this source is attributed to. The team attribute is managed from this field: it is not returned by the attribute endpoints and cannot be bound directly.
80
+ */
81
+ readonly fixedTeamId: string;
82
+ readonly heartbeatOptions: outputs.GetAlertSourceHeartbeatOptions;
83
+ readonly httpCustomOptions: outputs.GetAlertSourceHttpCustomOptions;
84
+ /**
85
+ * Unique identifier for this alert source
86
+ */
87
+ readonly id: string;
88
+ /**
89
+ * Whether alerts from this source are private
90
+ */
91
+ readonly isPrivate: boolean;
92
+ readonly jiraOptions: outputs.GetAlertSourceJiraOptions;
93
+ /**
94
+ * The name of this alert source, for the user's reference
95
+ */
96
+ readonly name: string;
97
+ /**
98
+ * An expression this resource owns, addressed by name.
99
+ */
100
+ readonly namedExpressions?: outputs.GetAlertSourceNamedExpression[];
101
+ /**
102
+ * IDs of the teams that own this alert source
103
+ */
104
+ readonly owningTeamIds: string[];
105
+ readonly priority: outputs.GetAlertSourcePriority;
106
+ /**
107
+ * Controls how this source's ingest rate limit is split into buckets.
108
+ */
109
+ readonly rateLimitSharding: outputs.GetAlertSourceRateLimitSharding;
110
+ /**
111
+ * The token to use when sending alerts to this source. Only returned to callers with permission to update the source.
112
+ */
113
+ readonly secretToken: string;
114
+ /**
115
+ * Type of alert source. Possible values are: `alertmanager`, `appOptics`, `azureMonitor`, `azureDevops`, `bigPanda`, `bugsnag`, `checkly`, `chronosphere`, `cloudwatch`, `cloudflare`, `coralogix`, `cronitor`, `crowdstrikeFalcon`, `dash0`, `datadog`, `dynatrace`, `elasticsearch`, `email`, `expel`, `githubIssue`, `googleCloud`, `grafana`, `heartbeat`, `http`, `httpCustom`, `honeycomb`, `icinga2`, `incomingCalls`, `jira`, `jsm`, `monteCarlo`, `nagios`, `newRelic`, `opsgenie`, `prtg`, `pagerDuty`, `panther`, `pingdom`, `runscope`, `sns`, `salesforceCase`, `sentry`, `sentryMetric`, `serviceNow`, `splunk`, `statusCake`, `statusPageViews`, `sumoLogic`, `uptime`, `vercel`, `wiz`, `zendesk`.
116
+ */
117
+ readonly sourceType: string;
118
+ readonly title: outputs.GetAlertSourceTitle;
119
+ /**
120
+ * The source's current version, which increments on every write. Pass it back as expectedVersion to reject a write built from a stale read.
121
+ */
122
+ readonly version: number;
123
+ readonly visibleToTeams: outputs.GetAlertSourceVisibleToTeams;
124
+ }
125
+ /**
126
+ * Look up an alert source by `id` or `name`, in the same shape as the `incident.AlertSource` resource. Exactly one lookup field should be set.
127
+ *
128
+ * The attributes a source populates are not returned here: each is its own object, read with the `incident.AlertSourceAttribute` data source.
129
+ *
130
+ * `title` and `description` come back as the account holds them, which for a source you manage here need not be the document you wrote: a resource keeps your spelling of a rich text value, and this reports the `{{ }}` template it renders to. The two mean the same thing and either can be written back, but they are not the same string, so comparing one against the other will not match.
131
+ *
132
+ * ## Example Usage
133
+ *
134
+ * ```typescript
135
+ * import * as pulumi from "@pulumi/pulumi";
136
+ * import * as incident from "@incident-io/pulumi";
137
+ *
138
+ * // Look up a single alert source by ID.
139
+ * const pagerduty = incident.getAlertSource({
140
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
141
+ * });
142
+ * export const pagerdutyAlertEventsUrl = pagerduty.then(pagerduty => pagerduty.alertEventsUrl);
143
+ * // Or by name, for a source you did not create here and whose ID you do not have. Names are
144
+ * // not unique, so a name matching more than one source is an error rather than a guess.
145
+ * const cron = incident.getAlertSource({
146
+ * name: "Cron heartbeat",
147
+ * });
148
+ * export const cronPingUrl = cron.then(cron => cron.heartbeatOptions?.pingUrl);
149
+ * ```
150
+ */
151
+ export declare function getAlertSourceOutput(args?: GetAlertSourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertSourceResult>;
152
+ /**
153
+ * A collection of arguments for invoking getAlertSource.
154
+ */
155
+ export interface GetAlertSourceOutputArgs {
156
+ /**
157
+ * Unique identifier for this alert source
158
+ */
159
+ id?: pulumi.Input<string | undefined>;
160
+ /**
161
+ * The name of this alert source, for the user's reference
162
+ */
163
+ name?: pulumi.Input<string | undefined>;
164
+ /**
165
+ * An expression this resource owns, addressed by name.
166
+ */
167
+ namedExpressions?: pulumi.Input<pulumi.Input<inputs.GetAlertSourceNamedExpressionArgs>[] | undefined>;
168
+ }
169
+ //# sourceMappingURL=getAlertSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertSource.d.ts","sourceRoot":"","sources":["../getAlertSource.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,103 @@
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.getAlertSourceOutput = exports.getAlertSource = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Look up an alert source by `id` or `name`, in the same shape as the `incident.AlertSource` resource. Exactly one lookup field should be set.
33
+ *
34
+ * The attributes a source populates are not returned here: each is its own object, read with the `incident.AlertSourceAttribute` data source.
35
+ *
36
+ * `title` and `description` come back as the account holds them, which for a source you manage here need not be the document you wrote: a resource keeps your spelling of a rich text value, and this reports the `{{ }}` template it renders to. The two mean the same thing and either can be written back, but they are not the same string, so comparing one against the other will not match.
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as incident from "@incident-io/pulumi";
43
+ *
44
+ * // Look up a single alert source by ID.
45
+ * const pagerduty = incident.getAlertSource({
46
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
47
+ * });
48
+ * export const pagerdutyAlertEventsUrl = pagerduty.then(pagerduty => pagerduty.alertEventsUrl);
49
+ * // Or by name, for a source you did not create here and whose ID you do not have. Names are
50
+ * // not unique, so a name matching more than one source is an error rather than a guess.
51
+ * const cron = incident.getAlertSource({
52
+ * name: "Cron heartbeat",
53
+ * });
54
+ * export const cronPingUrl = cron.then(cron => cron.heartbeatOptions?.pingUrl);
55
+ * ```
56
+ */
57
+ function getAlertSource(args, opts) {
58
+ args = args || {};
59
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
60
+ return pulumi.runtime.invoke("incident:index/getAlertSource:getAlertSource", {
61
+ "id": args.id,
62
+ "name": args.name,
63
+ "namedExpressions": args.namedExpressions,
64
+ }, opts);
65
+ }
66
+ exports.getAlertSource = getAlertSource;
67
+ /**
68
+ * Look up an alert source by `id` or `name`, in the same shape as the `incident.AlertSource` resource. Exactly one lookup field should be set.
69
+ *
70
+ * The attributes a source populates are not returned here: each is its own object, read with the `incident.AlertSourceAttribute` data source.
71
+ *
72
+ * `title` and `description` come back as the account holds them, which for a source you manage here need not be the document you wrote: a resource keeps your spelling of a rich text value, and this reports the `{{ }}` template it renders to. The two mean the same thing and either can be written back, but they are not the same string, so comparing one against the other will not match.
73
+ *
74
+ * ## Example Usage
75
+ *
76
+ * ```typescript
77
+ * import * as pulumi from "@pulumi/pulumi";
78
+ * import * as incident from "@incident-io/pulumi";
79
+ *
80
+ * // Look up a single alert source by ID.
81
+ * const pagerduty = incident.getAlertSource({
82
+ * id: "01FCNDV6P870EA6S7TK1DSYDG0",
83
+ * });
84
+ * export const pagerdutyAlertEventsUrl = pagerduty.then(pagerduty => pagerduty.alertEventsUrl);
85
+ * // Or by name, for a source you did not create here and whose ID you do not have. Names are
86
+ * // not unique, so a name matching more than one source is an error rather than a guess.
87
+ * const cron = incident.getAlertSource({
88
+ * name: "Cron heartbeat",
89
+ * });
90
+ * export const cronPingUrl = cron.then(cron => cron.heartbeatOptions?.pingUrl);
91
+ * ```
92
+ */
93
+ function getAlertSourceOutput(args, opts) {
94
+ args = args || {};
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
96
+ return pulumi.runtime.invokeOutput("incident:index/getAlertSource:getAlertSource", {
97
+ "id": args.id,
98
+ "name": args.name,
99
+ "namedExpressions": args.namedExpressions,
100
+ }, opts);
101
+ }
102
+ exports.getAlertSourceOutput = getAlertSourceOutput;
103
+ //# sourceMappingURL=getAlertSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertSource.js","sourceRoot":"","sources":["../getAlertSource.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,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,8CAA8C,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wCAQC;AAiGD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAAiC;IACnG,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,8CAA8C,EAAE;QAC/E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC"}