@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,131 @@
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 one attribute binding on an alert source by `alertSourceId` and `alertAttributeId`.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as incident from "@incident-io/pulumi";
12
+ *
13
+ * // Look up one attribute binding on an alert source.
14
+ * const environment = incident.getAlertSourceAttribute({
15
+ * alertSourceId: "01FCNDV6P870EA6S7TK1DSYDG0",
16
+ * alertAttributeId: "01GW2G3V0S59R238FAHPDS1R66",
17
+ * });
18
+ * export const environmentMergeStrategy = environment.then(environment => environment.mergeStrategy);
19
+ * ```
20
+ */
21
+ export declare function getAlertSourceAttribute(args: GetAlertSourceAttributeArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertSourceAttributeResult>;
22
+ /**
23
+ * A collection of arguments for invoking getAlertSourceAttribute.
24
+ */
25
+ export interface GetAlertSourceAttributeArgs {
26
+ /**
27
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
28
+ */
29
+ alertAttributeId: string;
30
+ /**
31
+ * The alert source this binding belongs to
32
+ */
33
+ alertSourceId: string;
34
+ /**
35
+ * The expression this field is bound to. Declaring it binds its result.
36
+ */
37
+ expression?: inputs.GetAlertSourceAttributeExpression;
38
+ /**
39
+ * An expression this resource owns, addressed by name.
40
+ */
41
+ namedExpressions?: inputs.GetAlertSourceAttributeNamedExpression[];
42
+ }
43
+ /**
44
+ * A collection of values returned by getAlertSourceAttribute.
45
+ */
46
+ export interface GetAlertSourceAttributeResult {
47
+ /**
48
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
49
+ */
50
+ readonly alertAttributeId: string;
51
+ /**
52
+ * The alert source this binding belongs to
53
+ */
54
+ readonly alertSourceId: string;
55
+ /**
56
+ * Several values, spelled out. Needed when they mix fixed values and references.
57
+ */
58
+ readonly arrayValues: outputs.GetAlertSourceAttributeArrayValue[];
59
+ /**
60
+ * The expression this field is bound to. Declaring it binds its result.
61
+ */
62
+ readonly expression?: outputs.GetAlertSourceAttributeExpression;
63
+ /**
64
+ * The name of a namedExpression in this resource, whose result becomes the value.
65
+ */
66
+ readonly expressionRef: string;
67
+ /**
68
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
69
+ */
70
+ readonly mergeStrategy: string;
71
+ /**
72
+ * An expression this resource owns, addressed by name.
73
+ */
74
+ readonly namedExpressions?: outputs.GetAlertSourceAttributeNamedExpression[];
75
+ /**
76
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
77
+ */
78
+ readonly value: outputs.GetAlertSourceAttributeValue;
79
+ /**
80
+ * A fixed value. A catalog entry ID is a literal, not a reference.
81
+ */
82
+ readonly valueLiteral: string;
83
+ /**
84
+ * A reference into the scope, such as `payload.team`.
85
+ */
86
+ readonly valueReference: string;
87
+ /**
88
+ * Several fixed values. For a mix of fixed values and references, use array_value.
89
+ */
90
+ readonly values: string[];
91
+ }
92
+ /**
93
+ * Look up one attribute binding on an alert source by `alertSourceId` and `alertAttributeId`.
94
+ *
95
+ * ## Example Usage
96
+ *
97
+ * ```typescript
98
+ * import * as pulumi from "@pulumi/pulumi";
99
+ * import * as incident from "@incident-io/pulumi";
100
+ *
101
+ * // Look up one attribute binding on an alert source.
102
+ * const environment = incident.getAlertSourceAttribute({
103
+ * alertSourceId: "01FCNDV6P870EA6S7TK1DSYDG0",
104
+ * alertAttributeId: "01GW2G3V0S59R238FAHPDS1R66",
105
+ * });
106
+ * export const environmentMergeStrategy = environment.then(environment => environment.mergeStrategy);
107
+ * ```
108
+ */
109
+ export declare function getAlertSourceAttributeOutput(args: GetAlertSourceAttributeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertSourceAttributeResult>;
110
+ /**
111
+ * A collection of arguments for invoking getAlertSourceAttribute.
112
+ */
113
+ export interface GetAlertSourceAttributeOutputArgs {
114
+ /**
115
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
116
+ */
117
+ alertAttributeId: pulumi.Input<string>;
118
+ /**
119
+ * The alert source this binding belongs to
120
+ */
121
+ alertSourceId: pulumi.Input<string>;
122
+ /**
123
+ * The expression this field is bound to. Declaring it binds its result.
124
+ */
125
+ expression?: pulumi.Input<inputs.GetAlertSourceAttributeExpressionArgs | undefined>;
126
+ /**
127
+ * An expression this resource owns, addressed by name.
128
+ */
129
+ namedExpressions?: pulumi.Input<pulumi.Input<inputs.GetAlertSourceAttributeNamedExpressionArgs>[] | undefined>;
130
+ }
131
+ //# sourceMappingURL=getAlertSourceAttribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertSourceAttribute.d.ts","sourceRoot":"","sources":["../getAlertSourceAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAQ9I;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,iCAAiC,CAAC;IACtD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,sCAAsC,EAAE,CAAC;CACtE;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,iCAAiC,EAAE,CAAC;IAClE;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,iCAAiC,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,sCAAsC,EAAE,CAAC;IAC7E;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,4BAA4B,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;CAC7B;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,iCAAiC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAQtK;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,qCAAqC,GAAG,SAAS,CAAC,CAAC;IACpF;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,0CAA0C,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAClH"}
@@ -0,0 +1,85 @@
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.getAlertSourceAttributeOutput = exports.getAlertSourceAttribute = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Look up one attribute binding on an alert source by `alertSourceId` and `alertAttributeId`.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as incident from "@incident-io/pulumi";
39
+ *
40
+ * // Look up one attribute binding on an alert source.
41
+ * const environment = incident.getAlertSourceAttribute({
42
+ * alertSourceId: "01FCNDV6P870EA6S7TK1DSYDG0",
43
+ * alertAttributeId: "01GW2G3V0S59R238FAHPDS1R66",
44
+ * });
45
+ * export const environmentMergeStrategy = environment.then(environment => environment.mergeStrategy);
46
+ * ```
47
+ */
48
+ function getAlertSourceAttribute(args, opts) {
49
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
50
+ return pulumi.runtime.invoke("incident:index/getAlertSourceAttribute:getAlertSourceAttribute", {
51
+ "alertAttributeId": args.alertAttributeId,
52
+ "alertSourceId": args.alertSourceId,
53
+ "expression": args.expression,
54
+ "namedExpressions": args.namedExpressions,
55
+ }, opts);
56
+ }
57
+ exports.getAlertSourceAttribute = getAlertSourceAttribute;
58
+ /**
59
+ * Look up one attribute binding on an alert source by `alertSourceId` and `alertAttributeId`.
60
+ *
61
+ * ## Example Usage
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as incident from "@incident-io/pulumi";
66
+ *
67
+ * // Look up one attribute binding on an alert source.
68
+ * const environment = incident.getAlertSourceAttribute({
69
+ * alertSourceId: "01FCNDV6P870EA6S7TK1DSYDG0",
70
+ * alertAttributeId: "01GW2G3V0S59R238FAHPDS1R66",
71
+ * });
72
+ * export const environmentMergeStrategy = environment.then(environment => environment.mergeStrategy);
73
+ * ```
74
+ */
75
+ function getAlertSourceAttributeOutput(args, opts) {
76
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
77
+ return pulumi.runtime.invokeOutput("incident:index/getAlertSourceAttribute:getAlertSourceAttribute", {
78
+ "alertAttributeId": args.alertAttributeId,
79
+ "alertSourceId": args.alertSourceId,
80
+ "expression": args.expression,
81
+ "namedExpressions": args.namedExpressions,
82
+ }, opts);
83
+ }
84
+ exports.getAlertSourceAttributeOutput = getAlertSourceAttributeOutput;
85
+ //# sourceMappingURL=getAlertSourceAttribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertSourceAttribute.js","sourceRoot":"","sources":["../getAlertSourceAttribute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0DAQC;AAyED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,6BAA6B,CAAC,IAAuC,EAAE,IAAiC;IACpH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gEAAgE,EAAE;QACjG,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sEAQC"}
@@ -0,0 +1,131 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * `incident.AlertSourceAttributeBeta` was renamed to `incident.AlertSourceAttribute` in v7.0.
6
+ *
7
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
8
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
9
+ * be removed in v8.0.
10
+ *
11
+ * To move onto the new name:
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * ```
16
+ *
17
+ * Both names are the same resource, backed by the same schema and the same API, so the move
18
+ * carries your state across and the plan after it is empty. See `incident.AlertSourceAttribute` for the
19
+ * documentation.
20
+ */
21
+ export declare function getAlertSourceAttributeBeta(args: GetAlertSourceAttributeBetaArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertSourceAttributeBetaResult>;
22
+ /**
23
+ * A collection of arguments for invoking getAlertSourceAttributeBeta.
24
+ */
25
+ export interface GetAlertSourceAttributeBetaArgs {
26
+ /**
27
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
28
+ */
29
+ alertAttributeId: string;
30
+ /**
31
+ * The alert source this binding belongs to
32
+ */
33
+ alertSourceId: string;
34
+ /**
35
+ * The expression this field is bound to. Declaring it binds its result.
36
+ */
37
+ expression?: inputs.GetAlertSourceAttributeBetaExpression;
38
+ /**
39
+ * An expression this resource owns, addressed by name.
40
+ */
41
+ namedExpressions?: inputs.GetAlertSourceAttributeBetaNamedExpression[];
42
+ }
43
+ /**
44
+ * A collection of values returned by getAlertSourceAttributeBeta.
45
+ */
46
+ export interface GetAlertSourceAttributeBetaResult {
47
+ /**
48
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
49
+ */
50
+ readonly alertAttributeId: string;
51
+ /**
52
+ * The alert source this binding belongs to
53
+ */
54
+ readonly alertSourceId: string;
55
+ /**
56
+ * Several values, spelled out. Needed when they mix fixed values and references.
57
+ */
58
+ readonly arrayValues: outputs.GetAlertSourceAttributeBetaArrayValue[];
59
+ /**
60
+ * The expression this field is bound to. Declaring it binds its result.
61
+ */
62
+ readonly expression?: outputs.GetAlertSourceAttributeBetaExpression;
63
+ /**
64
+ * The name of a namedExpression in this resource, whose result becomes the value.
65
+ */
66
+ readonly expressionRef: string;
67
+ /**
68
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
69
+ */
70
+ readonly mergeStrategy: string;
71
+ /**
72
+ * An expression this resource owns, addressed by name.
73
+ */
74
+ readonly namedExpressions?: outputs.GetAlertSourceAttributeBetaNamedExpression[];
75
+ /**
76
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
77
+ */
78
+ readonly value: outputs.GetAlertSourceAttributeBetaValue;
79
+ /**
80
+ * A fixed value. A catalog entry ID is a literal, not a reference.
81
+ */
82
+ readonly valueLiteral: string;
83
+ /**
84
+ * A reference into the scope, such as `payload.team`.
85
+ */
86
+ readonly valueReference: string;
87
+ /**
88
+ * Several fixed values. For a mix of fixed values and references, use array_value.
89
+ */
90
+ readonly values: string[];
91
+ }
92
+ /**
93
+ * `incident.AlertSourceAttributeBeta` was renamed to `incident.AlertSourceAttribute` in v7.0.
94
+ *
95
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
96
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
97
+ * be removed in v8.0.
98
+ *
99
+ * To move onto the new name:
100
+ *
101
+ * ```typescript
102
+ * import * as pulumi from "@pulumi/pulumi";
103
+ * ```
104
+ *
105
+ * Both names are the same resource, backed by the same schema and the same API, so the move
106
+ * carries your state across and the plan after it is empty. See `incident.AlertSourceAttribute` for the
107
+ * documentation.
108
+ */
109
+ export declare function getAlertSourceAttributeBetaOutput(args: GetAlertSourceAttributeBetaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertSourceAttributeBetaResult>;
110
+ /**
111
+ * A collection of arguments for invoking getAlertSourceAttributeBeta.
112
+ */
113
+ export interface GetAlertSourceAttributeBetaOutputArgs {
114
+ /**
115
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
116
+ */
117
+ alertAttributeId: pulumi.Input<string>;
118
+ /**
119
+ * The alert source this binding belongs to
120
+ */
121
+ alertSourceId: pulumi.Input<string>;
122
+ /**
123
+ * The expression this field is bound to. Declaring it binds its result.
124
+ */
125
+ expression?: pulumi.Input<inputs.GetAlertSourceAttributeBetaExpressionArgs | undefined>;
126
+ /**
127
+ * An expression this resource owns, addressed by name.
128
+ */
129
+ namedExpressions?: pulumi.Input<pulumi.Input<inputs.GetAlertSourceAttributeBetaNamedExpressionArgs>[] | undefined>;
130
+ }
131
+ //# sourceMappingURL=getAlertSourceAttributeBeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertSourceAttributeBeta.d.ts","sourceRoot":"","sources":["../getAlertSourceAttributeBeta.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,+BAA+B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAQ1J;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,qCAAqC,CAAC;IAC1D;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,0CAA0C,EAAE,CAAC;CAC1E;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,qCAAqC,EAAE,CAAC;IACtE;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,qCAAqC,CAAC;IACpE;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,0CAA0C,EAAE,CAAC;IACjF;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,gCAAgC,CAAC;IACzD;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;CAC7B;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,qCAAqC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAQlL;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,yCAAyC,GAAG,SAAS,CAAC,CAAC;IACxF;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,8CAA8C,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACtH"}
@@ -0,0 +1,85 @@
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.getAlertSourceAttributeBetaOutput = exports.getAlertSourceAttributeBeta = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * `incident.AlertSourceAttributeBeta` was renamed to `incident.AlertSourceAttribute` 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.AlertSourceAttribute` for the
46
+ * documentation.
47
+ */
48
+ function getAlertSourceAttributeBeta(args, opts) {
49
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
50
+ return pulumi.runtime.invoke("incident:index/getAlertSourceAttributeBeta:getAlertSourceAttributeBeta", {
51
+ "alertAttributeId": args.alertAttributeId,
52
+ "alertSourceId": args.alertSourceId,
53
+ "expression": args.expression,
54
+ "namedExpressions": args.namedExpressions,
55
+ }, opts);
56
+ }
57
+ exports.getAlertSourceAttributeBeta = getAlertSourceAttributeBeta;
58
+ /**
59
+ * `incident.AlertSourceAttributeBeta` was renamed to `incident.AlertSourceAttribute` in v7.0.
60
+ *
61
+ * This name still works and still manages the same thing, so upgrading to v7 needs no change
62
+ * to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
63
+ * be removed in v8.0.
64
+ *
65
+ * To move onto the new name:
66
+ *
67
+ * ```typescript
68
+ * import * as pulumi from "@pulumi/pulumi";
69
+ * ```
70
+ *
71
+ * Both names are the same resource, backed by the same schema and the same API, so the move
72
+ * carries your state across and the plan after it is empty. See `incident.AlertSourceAttribute` for the
73
+ * documentation.
74
+ */
75
+ function getAlertSourceAttributeBetaOutput(args, opts) {
76
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
77
+ return pulumi.runtime.invokeOutput("incident:index/getAlertSourceAttributeBeta:getAlertSourceAttributeBeta", {
78
+ "alertAttributeId": args.alertAttributeId,
79
+ "alertSourceId": args.alertSourceId,
80
+ "expression": args.expression,
81
+ "namedExpressions": args.namedExpressions,
82
+ }, opts);
83
+ }
84
+ exports.getAlertSourceAttributeBetaOutput = getAlertSourceAttributeBetaOutput;
85
+ //# sourceMappingURL=getAlertSourceAttributeBeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlertSourceAttributeBeta.js","sourceRoot":"","sources":["../getAlertSourceAttributeBeta.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wEAAwE,EAAE;QACnG,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kEAQC;AAyED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,iCAAiC,CAAC,IAA2C,EAAE,IAAiC;IAC5H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wEAAwE,EAAE;QACzG,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8EAQC"}
package/getApiKey.d.ts ADDED
@@ -0,0 +1,167 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manage API keys for your organization.
4
+ *
5
+ * This API lets you view, create, update, delete, and rotate API keys programmatically, including configuring account-level roles and roles scoped to specific teams.
6
+ *
7
+ * Common use cases include:
8
+ * - **API key rotation**: You can issue a new access token for any API key using the `Rotate` endpoint.
9
+ * - **Managing keys at scale**: use the `Show`, `List`, `Create`, `Update`, and `Delete` endpoints to automate API key lifecycle management.
10
+ *
11
+ * ## Permissions model
12
+ *
13
+ * To use these endpoints, your API key must have the `apiKeysManage` role granted at either the account level or for specific teams.
14
+ *
15
+ * In addition, the following rules apply, when a "caller" API key is managing a "target" API key:
16
+ *
17
+ * - A caller key can only assign roles whose scopes are a subset of its own scopes. For example, a key with `viewer` and `incidentCreator` can assign those roles to a target key, but cannot assign the `incidentEditor` role, since it has additional scopes.
18
+ * - The same applies at the team level: A caller key with `schedulesEditor` at the account level can create a target key with that role for a specific team, but a key with `schedulesEditor` only for one team (Team A, say) cannot assign it at the account level or for another team, Team B.
19
+ * - The `apiKeysManage` role cannot be assigned via the API. To create a key with that role, you must go to Settings → API keys in the dashboard, and click "Add new", creating a key with the "View, create, edit, delete or rotate API keys" role (`apiKeysManage`).
20
+ * - The `Delete` endpoint does not check whether the calling API key holds the scopes of the key being deleted. However, a team-scoped key can only delete keys belonging to its teams.
21
+ * - To rotate the token of an API key, use the Rotate endpoint or by clicking "Rotate token" on any API key listed in the dashboard. The same permissions limitations apply as when creating or updating an API key.
22
+ *
23
+ * ## Finding role names and team IDs
24
+ *
25
+ * To find valid values for `roleNames`, `teamIds`, and `teamRoleNames`, go to Settings → API keys in the dashboard. Click to either edit an existing key or create a new one, select the desired roles and teams, and then use the copy button to get hold of the role and team identifiers as JSON.
26
+ *
27
+ * Use this data source to look up an existing API key, either by `id` or by `name`. This is how you read the roles held by a key somebody created in the dashboard without managing it as an `incident.ApiKey` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
28
+ *
29
+ * A key's token is returned only when incident.io issues one, so there is no token attribute here: a lookup can tell you what a key may do and when it was last used, but never how to authenticate as it.
30
+ *
31
+ * ## Example Usage
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as incident from "@incident-io/pulumi";
36
+ *
37
+ * // Look up an existing API key by name, such as one created in the dashboard.
38
+ * const ci = incident.getApiKey({
39
+ * name: "CI deploy key",
40
+ * });
41
+ * // Or by ID, to reference a key another module manages. Names aren't unique, so an ID is
42
+ * // the way through an ambiguous lookup.
43
+ * const reporting = incident.getApiKey({
44
+ * id: "01G0J1EXE7AXZ2C93K61WBPYEH",
45
+ * });
46
+ * export const ciKeyRoles = ci.then(ci => ci.roleNames);
47
+ * export const ciKeyLastUsedAt = ci.then(ci => ci.lastUsedAt);
48
+ * ```
49
+ */
50
+ export declare function getApiKey(args?: GetApiKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeyResult>;
51
+ /**
52
+ * A collection of arguments for invoking getApiKey.
53
+ */
54
+ export interface GetApiKeyArgs {
55
+ /**
56
+ * Unique identifier for this API key
57
+ */
58
+ id?: string;
59
+ /**
60
+ * The name of the API key, for the user's reference
61
+ */
62
+ name?: string;
63
+ }
64
+ /**
65
+ * A collection of values returned by getApiKey.
66
+ */
67
+ export interface GetApiKeyResult {
68
+ /**
69
+ * Freeform notes about this API key
70
+ */
71
+ readonly comments: string;
72
+ /**
73
+ * When the API key was created
74
+ */
75
+ readonly createdAt: string;
76
+ /**
77
+ * Unique identifier for this API key
78
+ */
79
+ readonly id: string;
80
+ /**
81
+ * When the key was last used to authenticate a request
82
+ */
83
+ readonly lastUsedAt: string;
84
+ /**
85
+ * The name of the API key, for the user's reference
86
+ */
87
+ readonly name: string;
88
+ /**
89
+ * The account-level roles assigned to this API key
90
+ */
91
+ readonly roleNames: string[];
92
+ /**
93
+ * IDs of teams that this API key is scoped to
94
+ */
95
+ readonly teamIds: string[];
96
+ /**
97
+ * The team-level roles assigned to this API key
98
+ */
99
+ readonly teamRoleNames: string[];
100
+ /**
101
+ * When the current token for this API was last issued. This is the last time the token was rotated, or when it was initially created. Older tokens may remain valid for up to an hour after they have been rotated, configured when you call the rotate endpoint.
102
+ */
103
+ readonly tokenLastIssuedAt: string;
104
+ }
105
+ /**
106
+ * Manage API keys for your organization.
107
+ *
108
+ * This API lets you view, create, update, delete, and rotate API keys programmatically, including configuring account-level roles and roles scoped to specific teams.
109
+ *
110
+ * Common use cases include:
111
+ * - **API key rotation**: You can issue a new access token for any API key using the `Rotate` endpoint.
112
+ * - **Managing keys at scale**: use the `Show`, `List`, `Create`, `Update`, and `Delete` endpoints to automate API key lifecycle management.
113
+ *
114
+ * ## Permissions model
115
+ *
116
+ * To use these endpoints, your API key must have the `apiKeysManage` role granted at either the account level or for specific teams.
117
+ *
118
+ * In addition, the following rules apply, when a "caller" API key is managing a "target" API key:
119
+ *
120
+ * - A caller key can only assign roles whose scopes are a subset of its own scopes. For example, a key with `viewer` and `incidentCreator` can assign those roles to a target key, but cannot assign the `incidentEditor` role, since it has additional scopes.
121
+ * - The same applies at the team level: A caller key with `schedulesEditor` at the account level can create a target key with that role for a specific team, but a key with `schedulesEditor` only for one team (Team A, say) cannot assign it at the account level or for another team, Team B.
122
+ * - The `apiKeysManage` role cannot be assigned via the API. To create a key with that role, you must go to Settings → API keys in the dashboard, and click "Add new", creating a key with the "View, create, edit, delete or rotate API keys" role (`apiKeysManage`).
123
+ * - The `Delete` endpoint does not check whether the calling API key holds the scopes of the key being deleted. However, a team-scoped key can only delete keys belonging to its teams.
124
+ * - To rotate the token of an API key, use the Rotate endpoint or by clicking "Rotate token" on any API key listed in the dashboard. The same permissions limitations apply as when creating or updating an API key.
125
+ *
126
+ * ## Finding role names and team IDs
127
+ *
128
+ * To find valid values for `roleNames`, `teamIds`, and `teamRoleNames`, go to Settings → API keys in the dashboard. Click to either edit an existing key or create a new one, select the desired roles and teams, and then use the copy button to get hold of the role and team identifiers as JSON.
129
+ *
130
+ * Use this data source to look up an existing API key, either by `id` or by `name`. This is how you read the roles held by a key somebody created in the dashboard without managing it as an `incident.ApiKey` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
131
+ *
132
+ * A key's token is returned only when incident.io issues one, so there is no token attribute here: a lookup can tell you what a key may do and when it was last used, but never how to authenticate as it.
133
+ *
134
+ * ## Example Usage
135
+ *
136
+ * ```typescript
137
+ * import * as pulumi from "@pulumi/pulumi";
138
+ * import * as incident from "@incident-io/pulumi";
139
+ *
140
+ * // Look up an existing API key by name, such as one created in the dashboard.
141
+ * const ci = incident.getApiKey({
142
+ * name: "CI deploy key",
143
+ * });
144
+ * // Or by ID, to reference a key another module manages. Names aren't unique, so an ID is
145
+ * // the way through an ambiguous lookup.
146
+ * const reporting = incident.getApiKey({
147
+ * id: "01G0J1EXE7AXZ2C93K61WBPYEH",
148
+ * });
149
+ * export const ciKeyRoles = ci.then(ci => ci.roleNames);
150
+ * export const ciKeyLastUsedAt = ci.then(ci => ci.lastUsedAt);
151
+ * ```
152
+ */
153
+ export declare function getApiKeyOutput(args?: GetApiKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeyResult>;
154
+ /**
155
+ * A collection of arguments for invoking getApiKey.
156
+ */
157
+ export interface GetApiKeyOutputArgs {
158
+ /**
159
+ * Unique identifier for this API key
160
+ */
161
+ id?: pulumi.Input<string | undefined>;
162
+ /**
163
+ * The name of the API key, for the user's reference
164
+ */
165
+ name?: pulumi.Input<string | undefined>;
166
+ }
167
+ //# sourceMappingURL=getApiKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getApiKey.d.ts","sourceRoot":"","sources":["../getApiKey.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAOrG;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACtC;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAO7H;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;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"}