@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,180 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Configure your alert sources, separately from the attributes they populate.
6
+ *
7
+ * What fills in one attribute of an alert source, and how values are merged when an alert is updated.
8
+ *
9
+ * Each attribute is its own resource. Editing one doesn't mean rewriting the source, and two people editing different attributes don't race each other. The source is an `incident.AlertSource` resource.
10
+ *
11
+ * A `namedExpression` name only has to be unique within this resource: two attributes of one source can each have one called `severity`.
12
+ */
13
+ export declare class AlertSourceAttribute extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing AlertSourceAttribute resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param state Any extra arguments used during the lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertSourceAttributeState, opts?: pulumi.CustomResourceOptions): AlertSourceAttribute;
24
+ /**
25
+ * Returns true if the given object is an instance of AlertSourceAttribute. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj: any): obj is AlertSourceAttribute;
29
+ /**
30
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
31
+ */
32
+ readonly alertAttributeId: pulumi.Output<string>;
33
+ /**
34
+ * The alert source this binding belongs to
35
+ */
36
+ readonly alertSourceId: pulumi.Output<string>;
37
+ /**
38
+ * Several values, spelled out. Needed when they mix fixed values and references.
39
+ */
40
+ readonly arrayValues: pulumi.Output<outputs.AlertSourceAttributeArrayValue[] | undefined>;
41
+ /**
42
+ * The expression this field is bound to. Declaring it binds its result.
43
+ */
44
+ readonly expression: pulumi.Output<outputs.AlertSourceAttributeExpression | undefined>;
45
+ /**
46
+ * The name of a namedExpression in this resource, whose result becomes the value.
47
+ */
48
+ readonly expressionRef: pulumi.Output<string | undefined>;
49
+ /**
50
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
51
+ */
52
+ readonly mergeStrategy: pulumi.Output<string>;
53
+ /**
54
+ * An expression this resource owns, addressed by name.
55
+ */
56
+ readonly namedExpressions: pulumi.Output<outputs.AlertSourceAttributeNamedExpression[] | undefined>;
57
+ /**
58
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
59
+ */
60
+ readonly value: pulumi.Output<outputs.AlertSourceAttributeValue | undefined>;
61
+ /**
62
+ * A fixed value. A catalog entry ID is a literal, not a reference.
63
+ */
64
+ readonly valueLiteral: pulumi.Output<string | undefined>;
65
+ /**
66
+ * A reference into the scope, such as `payload.team`.
67
+ */
68
+ readonly valueReference: pulumi.Output<string | undefined>;
69
+ /**
70
+ * Several fixed values. For a mix of fixed values and references, use array_value.
71
+ */
72
+ readonly values: pulumi.Output<string[] | undefined>;
73
+ /**
74
+ * Create a AlertSourceAttribute resource with the given unique name, arguments, and options.
75
+ *
76
+ * @param name The _unique_ name of the resource.
77
+ * @param args The arguments to use to populate this resource's properties.
78
+ * @param opts A bag of options that control this resource's behavior.
79
+ */
80
+ constructor(name: string, args: AlertSourceAttributeArgs, opts?: pulumi.CustomResourceOptions);
81
+ }
82
+ /**
83
+ * Input properties used for looking up and filtering AlertSourceAttribute resources.
84
+ */
85
+ export interface AlertSourceAttributeState {
86
+ /**
87
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
88
+ */
89
+ alertAttributeId?: pulumi.Input<string | undefined>;
90
+ /**
91
+ * The alert source this binding belongs to
92
+ */
93
+ alertSourceId?: pulumi.Input<string | undefined>;
94
+ /**
95
+ * Several values, spelled out. Needed when they mix fixed values and references.
96
+ */
97
+ arrayValues?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeArrayValue>[] | undefined>;
98
+ /**
99
+ * The expression this field is bound to. Declaring it binds its result.
100
+ */
101
+ expression?: pulumi.Input<inputs.AlertSourceAttributeExpression | undefined>;
102
+ /**
103
+ * The name of a namedExpression in this resource, whose result becomes the value.
104
+ */
105
+ expressionRef?: pulumi.Input<string | undefined>;
106
+ /**
107
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
108
+ */
109
+ mergeStrategy?: pulumi.Input<string | undefined>;
110
+ /**
111
+ * An expression this resource owns, addressed by name.
112
+ */
113
+ namedExpressions?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeNamedExpression>[] | undefined>;
114
+ /**
115
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
116
+ */
117
+ value?: pulumi.Input<inputs.AlertSourceAttributeValue | undefined>;
118
+ /**
119
+ * A fixed value. A catalog entry ID is a literal, not a reference.
120
+ */
121
+ valueLiteral?: pulumi.Input<string | undefined>;
122
+ /**
123
+ * A reference into the scope, such as `payload.team`.
124
+ */
125
+ valueReference?: pulumi.Input<string | undefined>;
126
+ /**
127
+ * Several fixed values. For a mix of fixed values and references, use array_value.
128
+ */
129
+ values?: pulumi.Input<pulumi.Input<string>[] | undefined>;
130
+ }
131
+ /**
132
+ * The set of arguments for constructing a AlertSourceAttribute resource.
133
+ */
134
+ export interface AlertSourceAttributeArgs {
135
+ /**
136
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
137
+ */
138
+ alertAttributeId: pulumi.Input<string>;
139
+ /**
140
+ * The alert source this binding belongs to
141
+ */
142
+ alertSourceId: pulumi.Input<string>;
143
+ /**
144
+ * Several values, spelled out. Needed when they mix fixed values and references.
145
+ */
146
+ arrayValues?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeArrayValue>[] | undefined>;
147
+ /**
148
+ * The expression this field is bound to. Declaring it binds its result.
149
+ */
150
+ expression?: pulumi.Input<inputs.AlertSourceAttributeExpression | undefined>;
151
+ /**
152
+ * The name of a namedExpression in this resource, whose result becomes the value.
153
+ */
154
+ expressionRef?: pulumi.Input<string | undefined>;
155
+ /**
156
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
157
+ */
158
+ mergeStrategy?: pulumi.Input<string | undefined>;
159
+ /**
160
+ * An expression this resource owns, addressed by name.
161
+ */
162
+ namedExpressions?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeNamedExpression>[] | undefined>;
163
+ /**
164
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
165
+ */
166
+ value?: pulumi.Input<inputs.AlertSourceAttributeValue | undefined>;
167
+ /**
168
+ * A fixed value. A catalog entry ID is a literal, not a reference.
169
+ */
170
+ valueLiteral?: pulumi.Input<string | undefined>;
171
+ /**
172
+ * A reference into the scope, such as `payload.team`.
173
+ */
174
+ valueReference?: pulumi.Input<string | undefined>;
175
+ /**
176
+ * Several fixed values. For a mix of fixed values and references, use array_value.
177
+ */
178
+ values?: pulumi.Input<pulumi.Input<string>[] | undefined>;
179
+ }
180
+ //# sourceMappingURL=alertSourceAttribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertSourceAttribute.d.ts","sourceRoot":"","sources":["../alertSourceAttribute.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;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,oBAAoB;IAO1J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAA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AgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,8BAA8B,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC9F;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAAC;IAC7E;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAmC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACxG;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC7D"}
@@ -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.AlertSourceAttribute = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Configure your alert sources, separately from the attributes they populate.
33
+ *
34
+ * What fills in one attribute of an alert source, and how values are merged when an alert is updated.
35
+ *
36
+ * Each attribute is its own resource. Editing one doesn't mean rewriting the source, and two people editing different attributes don't race each other. The source is an `incident.AlertSource` resource.
37
+ *
38
+ * A `namedExpression` name only has to be unique within this resource: two attributes of one source can each have one called `severity`.
39
+ */
40
+ class AlertSourceAttribute extends pulumi.CustomResource {
41
+ /**
42
+ * Get an existing AlertSourceAttribute resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param state Any extra arguments used during the lookup.
48
+ * @param opts Optional settings to control the behavior of the CustomResource.
49
+ */
50
+ static get(name, id, state, opts) {
51
+ return new AlertSourceAttribute(name, state, { ...opts, id: id });
52
+ }
53
+ /** @internal */
54
+ static __pulumiType = 'incident:index/alertSourceAttribute:AlertSourceAttribute';
55
+ /**
56
+ * Returns true if the given object is an instance of AlertSourceAttribute. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj) {
60
+ if (obj === undefined || obj === null) {
61
+ return false;
62
+ }
63
+ return obj['__pulumiType'] === AlertSourceAttribute.__pulumiType;
64
+ }
65
+ constructor(name, argsOrState, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (opts.id) {
69
+ const state = argsOrState;
70
+ resourceInputs["alertAttributeId"] = state?.alertAttributeId;
71
+ resourceInputs["alertSourceId"] = state?.alertSourceId;
72
+ resourceInputs["arrayValues"] = state?.arrayValues;
73
+ resourceInputs["expression"] = state?.expression;
74
+ resourceInputs["expressionRef"] = state?.expressionRef;
75
+ resourceInputs["mergeStrategy"] = state?.mergeStrategy;
76
+ resourceInputs["namedExpressions"] = state?.namedExpressions;
77
+ resourceInputs["value"] = state?.value;
78
+ resourceInputs["valueLiteral"] = state?.valueLiteral;
79
+ resourceInputs["valueReference"] = state?.valueReference;
80
+ resourceInputs["values"] = state?.values;
81
+ }
82
+ else {
83
+ const args = argsOrState;
84
+ if (args?.alertAttributeId === undefined && !opts.urn) {
85
+ throw new Error("Missing required property 'alertAttributeId'");
86
+ }
87
+ if (args?.alertSourceId === undefined && !opts.urn) {
88
+ throw new Error("Missing required property 'alertSourceId'");
89
+ }
90
+ resourceInputs["alertAttributeId"] = args?.alertAttributeId;
91
+ resourceInputs["alertSourceId"] = args?.alertSourceId;
92
+ resourceInputs["arrayValues"] = args?.arrayValues;
93
+ resourceInputs["expression"] = args?.expression;
94
+ resourceInputs["expressionRef"] = args?.expressionRef;
95
+ resourceInputs["mergeStrategy"] = args?.mergeStrategy;
96
+ resourceInputs["namedExpressions"] = args?.namedExpressions;
97
+ resourceInputs["value"] = args?.value;
98
+ resourceInputs["valueLiteral"] = args?.valueLiteral;
99
+ resourceInputs["valueReference"] = args?.valueReference;
100
+ resourceInputs["values"] = args?.values;
101
+ }
102
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
103
+ super(AlertSourceAttribute.__pulumiType, name, resourceInputs, opts);
104
+ }
105
+ }
106
+ exports.AlertSourceAttribute = AlertSourceAttribute;
107
+ //# sourceMappingURL=alertSourceAttribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertSourceAttribute.js","sourceRoot":"","sources":["../alertSourceAttribute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0DAA0D,CAAC;IAEjG;;;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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAuDD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EA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AClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAvHL,oDAwHC"}
@@ -0,0 +1,188 @@
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 class AlertSourceAttributeBeta extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing AlertSourceAttributeBeta resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param state Any extra arguments used during the lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertSourceAttributeBetaState, opts?: pulumi.CustomResourceOptions): AlertSourceAttributeBeta;
32
+ /**
33
+ * Returns true if the given object is an instance of AlertSourceAttributeBeta. This is designed to work even
34
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
+ */
36
+ static isInstance(obj: any): obj is AlertSourceAttributeBeta;
37
+ /**
38
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
39
+ */
40
+ readonly alertAttributeId: pulumi.Output<string>;
41
+ /**
42
+ * The alert source this binding belongs to
43
+ */
44
+ readonly alertSourceId: pulumi.Output<string>;
45
+ /**
46
+ * Several values, spelled out. Needed when they mix fixed values and references.
47
+ */
48
+ readonly arrayValues: pulumi.Output<outputs.AlertSourceAttributeBetaArrayValue[] | undefined>;
49
+ /**
50
+ * The expression this field is bound to. Declaring it binds its result.
51
+ */
52
+ readonly expression: pulumi.Output<outputs.AlertSourceAttributeBetaExpression | undefined>;
53
+ /**
54
+ * The name of a namedExpression in this resource, whose result becomes the value.
55
+ */
56
+ readonly expressionRef: pulumi.Output<string | undefined>;
57
+ /**
58
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
59
+ */
60
+ readonly mergeStrategy: pulumi.Output<string>;
61
+ /**
62
+ * An expression this resource owns, addressed by name.
63
+ */
64
+ readonly namedExpressions: pulumi.Output<outputs.AlertSourceAttributeBetaNamedExpression[] | undefined>;
65
+ /**
66
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
67
+ */
68
+ readonly value: pulumi.Output<outputs.AlertSourceAttributeBetaValue | undefined>;
69
+ /**
70
+ * A fixed value. A catalog entry ID is a literal, not a reference.
71
+ */
72
+ readonly valueLiteral: pulumi.Output<string | undefined>;
73
+ /**
74
+ * A reference into the scope, such as `payload.team`.
75
+ */
76
+ readonly valueReference: pulumi.Output<string | undefined>;
77
+ /**
78
+ * Several fixed values. For a mix of fixed values and references, use array_value.
79
+ */
80
+ readonly values: pulumi.Output<string[] | undefined>;
81
+ /**
82
+ * Create a AlertSourceAttributeBeta resource with the given unique name, arguments, and options.
83
+ *
84
+ * @param name The _unique_ name of the resource.
85
+ * @param args The arguments to use to populate this resource's properties.
86
+ * @param opts A bag of options that control this resource's behavior.
87
+ */
88
+ constructor(name: string, args: AlertSourceAttributeBetaArgs, opts?: pulumi.CustomResourceOptions);
89
+ }
90
+ /**
91
+ * Input properties used for looking up and filtering AlertSourceAttributeBeta resources.
92
+ */
93
+ export interface AlertSourceAttributeBetaState {
94
+ /**
95
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
96
+ */
97
+ alertAttributeId?: pulumi.Input<string | undefined>;
98
+ /**
99
+ * The alert source this binding belongs to
100
+ */
101
+ alertSourceId?: pulumi.Input<string | undefined>;
102
+ /**
103
+ * Several values, spelled out. Needed when they mix fixed values and references.
104
+ */
105
+ arrayValues?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeBetaArrayValue>[] | undefined>;
106
+ /**
107
+ * The expression this field is bound to. Declaring it binds its result.
108
+ */
109
+ expression?: pulumi.Input<inputs.AlertSourceAttributeBetaExpression | undefined>;
110
+ /**
111
+ * The name of a namedExpression in this resource, whose result becomes the value.
112
+ */
113
+ expressionRef?: pulumi.Input<string | undefined>;
114
+ /**
115
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
116
+ */
117
+ mergeStrategy?: pulumi.Input<string | undefined>;
118
+ /**
119
+ * An expression this resource owns, addressed by name.
120
+ */
121
+ namedExpressions?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeBetaNamedExpression>[] | undefined>;
122
+ /**
123
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
124
+ */
125
+ value?: pulumi.Input<inputs.AlertSourceAttributeBetaValue | undefined>;
126
+ /**
127
+ * A fixed value. A catalog entry ID is a literal, not a reference.
128
+ */
129
+ valueLiteral?: pulumi.Input<string | undefined>;
130
+ /**
131
+ * A reference into the scope, such as `payload.team`.
132
+ */
133
+ valueReference?: pulumi.Input<string | undefined>;
134
+ /**
135
+ * Several fixed values. For a mix of fixed values and references, use array_value.
136
+ */
137
+ values?: pulumi.Input<pulumi.Input<string>[] | undefined>;
138
+ }
139
+ /**
140
+ * The set of arguments for constructing a AlertSourceAttributeBeta resource.
141
+ */
142
+ export interface AlertSourceAttributeBetaArgs {
143
+ /**
144
+ * The alert attribute being bound. This also identifies the binding: an attribute can be bound at most once per source.
145
+ */
146
+ alertAttributeId: pulumi.Input<string>;
147
+ /**
148
+ * The alert source this binding belongs to
149
+ */
150
+ alertSourceId: pulumi.Input<string>;
151
+ /**
152
+ * Several values, spelled out. Needed when they mix fixed values and references.
153
+ */
154
+ arrayValues?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeBetaArrayValue>[] | undefined>;
155
+ /**
156
+ * The expression this field is bound to. Declaring it binds its result.
157
+ */
158
+ expression?: pulumi.Input<inputs.AlertSourceAttributeBetaExpression | undefined>;
159
+ /**
160
+ * The name of a namedExpression in this resource, whose result becomes the value.
161
+ */
162
+ expressionRef?: pulumi.Input<string | undefined>;
163
+ /**
164
+ * How values are combined when an alert is updated. Possible values are: `firstWins`, `lastWins`, `append`, `max`, `min`.
165
+ */
166
+ mergeStrategy?: pulumi.Input<string | undefined>;
167
+ /**
168
+ * An expression this resource owns, addressed by name.
169
+ */
170
+ namedExpressions?: pulumi.Input<pulumi.Input<inputs.AlertSourceAttributeBetaNamedExpression>[] | undefined>;
171
+ /**
172
+ * One value, spelled out. `valueLiteral` and `valueReference` are shorthand for this.
173
+ */
174
+ value?: pulumi.Input<inputs.AlertSourceAttributeBetaValue | undefined>;
175
+ /**
176
+ * A fixed value. A catalog entry ID is a literal, not a reference.
177
+ */
178
+ valueLiteral?: pulumi.Input<string | undefined>;
179
+ /**
180
+ * A reference into the scope, such as `payload.team`.
181
+ */
182
+ valueReference?: pulumi.Input<string | undefined>;
183
+ /**
184
+ * Several fixed values. For a mix of fixed values and references, use array_value.
185
+ */
186
+ values?: pulumi.Input<pulumi.Input<string>[] | undefined>;
187
+ }
188
+ //# sourceMappingURL=alertSourceAttributeBeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertSourceAttributeBeta.d.ts","sourceRoot":"","sources":["../alertSourceAttributeBeta.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,qBAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,wBAAwB;IAOlK;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,wBAAwB;IAOnE;;OAEG;IACH,SAAwB,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAChE;;OAEG;IACH,SAAwB,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7D;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,kCAAkC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC7G;;OAEG;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AM,CAAC,KAAK,CAAC,MAAM,CAAC,kCAAkC,GAAG,SAAS,CAAC,CAAC;IACjF;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,uCAAuC,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC5G;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC7D"}
@@ -0,0 +1,115 @@
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.AlertSourceAttributeBeta = 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
+ class AlertSourceAttributeBeta extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing AlertSourceAttributeBeta 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 AlertSourceAttributeBeta(name, state, { ...opts, id: id });
60
+ }
61
+ /** @internal */
62
+ static __pulumiType = 'incident:index/alertSourceAttributeBeta:AlertSourceAttributeBeta';
63
+ /**
64
+ * Returns true if the given object is an instance of AlertSourceAttributeBeta. 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'] === AlertSourceAttributeBeta.__pulumiType;
72
+ }
73
+ constructor(name, argsOrState, opts) {
74
+ let resourceInputs = {};
75
+ opts = opts || {};
76
+ if (opts.id) {
77
+ const state = argsOrState;
78
+ resourceInputs["alertAttributeId"] = state?.alertAttributeId;
79
+ resourceInputs["alertSourceId"] = state?.alertSourceId;
80
+ resourceInputs["arrayValues"] = state?.arrayValues;
81
+ resourceInputs["expression"] = state?.expression;
82
+ resourceInputs["expressionRef"] = state?.expressionRef;
83
+ resourceInputs["mergeStrategy"] = state?.mergeStrategy;
84
+ resourceInputs["namedExpressions"] = state?.namedExpressions;
85
+ resourceInputs["value"] = state?.value;
86
+ resourceInputs["valueLiteral"] = state?.valueLiteral;
87
+ resourceInputs["valueReference"] = state?.valueReference;
88
+ resourceInputs["values"] = state?.values;
89
+ }
90
+ else {
91
+ const args = argsOrState;
92
+ if (args?.alertAttributeId === undefined && !opts.urn) {
93
+ throw new Error("Missing required property 'alertAttributeId'");
94
+ }
95
+ if (args?.alertSourceId === undefined && !opts.urn) {
96
+ throw new Error("Missing required property 'alertSourceId'");
97
+ }
98
+ resourceInputs["alertAttributeId"] = args?.alertAttributeId;
99
+ resourceInputs["alertSourceId"] = args?.alertSourceId;
100
+ resourceInputs["arrayValues"] = args?.arrayValues;
101
+ resourceInputs["expression"] = args?.expression;
102
+ resourceInputs["expressionRef"] = args?.expressionRef;
103
+ resourceInputs["mergeStrategy"] = args?.mergeStrategy;
104
+ resourceInputs["namedExpressions"] = args?.namedExpressions;
105
+ resourceInputs["value"] = args?.value;
106
+ resourceInputs["valueLiteral"] = args?.valueLiteral;
107
+ resourceInputs["valueReference"] = args?.valueReference;
108
+ resourceInputs["values"] = args?.values;
109
+ }
110
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
111
+ super(AlertSourceAttributeBeta.__pulumiType, name, resourceInputs, opts);
112
+ }
113
+ }
114
+ exports.AlertSourceAttributeBeta = AlertSourceAttributeBeta;
115
+ //# sourceMappingURL=alertSourceAttributeBeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertSourceAttributeBeta.js","sourceRoot":"","sources":["../alertSourceAttributeBeta.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kEAAkE,CAAC;IAEzG;;;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,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;IAuDD,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwD,CAAC;YACvE,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gBAAgB,CAAC;YAC7D,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