pulumi-cloudamqp 3.17.3__py3-none-any.whl → 3.17.5__py3-none-any.whl
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.
Potentially problematic release.
This version of pulumi-cloudamqp might be problematic. Click here for more details.
- pulumi_cloudamqp/_inputs.py +105 -0
- pulumi_cloudamqp/_utilities.py +2 -2
- pulumi_cloudamqp/alarm.py +108 -4
- pulumi_cloudamqp/config/__init__.pyi +0 -3
- pulumi_cloudamqp/config/vars.py +0 -3
- pulumi_cloudamqp/custom_domain.py +10 -4
- pulumi_cloudamqp/extra_disk_size.py +18 -0
- pulumi_cloudamqp/get_account.py +6 -0
- pulumi_cloudamqp/get_account_vpcs.py +6 -0
- pulumi_cloudamqp/get_alarm.py +6 -0
- pulumi_cloudamqp/get_credentials.py +6 -0
- pulumi_cloudamqp/get_instance.py +0 -42
- pulumi_cloudamqp/get_nodes.py +6 -0
- pulumi_cloudamqp/get_notification.py +6 -0
- pulumi_cloudamqp/get_plugins.py +6 -0
- pulumi_cloudamqp/get_plugins_community.py +6 -0
- pulumi_cloudamqp/get_upgradable_versions.py +6 -0
- pulumi_cloudamqp/get_vpc_gcp_info.py +10 -0
- pulumi_cloudamqp/get_vpc_info.py +10 -0
- pulumi_cloudamqp/instance.py +38 -4
- pulumi_cloudamqp/integration_aws_eventbridge.py +8 -2
- pulumi_cloudamqp/integration_log.py +428 -38
- pulumi_cloudamqp/node_actions.py +14 -0
- pulumi_cloudamqp/notification.py +175 -29
- pulumi_cloudamqp/outputs.py +157 -0
- pulumi_cloudamqp/plugin.py +2 -2
- pulumi_cloudamqp/plugin_community.py +8 -4
- pulumi_cloudamqp/privatelink_aws.py +24 -4
- pulumi_cloudamqp/privatelink_azure.py +24 -4
- pulumi_cloudamqp/rabbit_configuration.py +2 -2
- pulumi_cloudamqp/security_firewall.py +2 -2
- pulumi_cloudamqp/upgrade_rabbitmq.py +12 -0
- pulumi_cloudamqp/vpc.py +12 -4
- pulumi_cloudamqp/vpc_connect.py +32 -4
- pulumi_cloudamqp/vpc_gcp_peering.py +86 -0
- pulumi_cloudamqp/webhook.py +8 -2
- {pulumi_cloudamqp-3.17.3.dist-info → pulumi_cloudamqp-3.17.5.dist-info}/METADATA +2 -2
- pulumi_cloudamqp-3.17.5.dist-info/RECORD +48 -0
- {pulumi_cloudamqp-3.17.3.dist-info → pulumi_cloudamqp-3.17.5.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.17.3.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.17.3.dist-info → pulumi_cloudamqp-3.17.5.dist-info}/top_level.txt +0 -0
pulumi_cloudamqp/notification.py
CHANGED
|
@@ -8,6 +8,8 @@ import pulumi
|
|
|
8
8
|
import pulumi.runtime
|
|
9
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
11
13
|
|
|
12
14
|
__all__ = ['NotificationArgs', 'Notification']
|
|
13
15
|
|
|
@@ -18,14 +20,21 @@ class NotificationArgs:
|
|
|
18
20
|
type: pulumi.Input[str],
|
|
19
21
|
value: pulumi.Input[str],
|
|
20
22
|
name: Optional[pulumi.Input[str]] = None,
|
|
21
|
-
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None
|
|
23
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
24
|
+
responders: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]] = None):
|
|
22
25
|
"""
|
|
23
26
|
The set of arguments for constructing a Notification resource.
|
|
24
27
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
25
|
-
:param pulumi.Input[str] type: Type of
|
|
28
|
+
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
26
29
|
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
27
|
-
:param pulumi.Input[str] name:
|
|
30
|
+
:param pulumi.Input[str] name: Name of the responder
|
|
28
31
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
33
|
+
consists of the field documented below.
|
|
34
|
+
|
|
35
|
+
___
|
|
36
|
+
|
|
37
|
+
The `responders` block consists of:
|
|
29
38
|
"""
|
|
30
39
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
31
40
|
pulumi.set(__self__, "type", type)
|
|
@@ -34,6 +43,8 @@ class NotificationArgs:
|
|
|
34
43
|
pulumi.set(__self__, "name", name)
|
|
35
44
|
if options is not None:
|
|
36
45
|
pulumi.set(__self__, "options", options)
|
|
46
|
+
if responders is not None:
|
|
47
|
+
pulumi.set(__self__, "responders", responders)
|
|
37
48
|
|
|
38
49
|
@property
|
|
39
50
|
@pulumi.getter(name="instanceId")
|
|
@@ -51,7 +62,7 @@ class NotificationArgs:
|
|
|
51
62
|
@pulumi.getter
|
|
52
63
|
def type(self) -> pulumi.Input[str]:
|
|
53
64
|
"""
|
|
54
|
-
Type of
|
|
65
|
+
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
55
66
|
"""
|
|
56
67
|
return pulumi.get(self, "type")
|
|
57
68
|
|
|
@@ -75,7 +86,7 @@ class NotificationArgs:
|
|
|
75
86
|
@pulumi.getter
|
|
76
87
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
77
88
|
"""
|
|
78
|
-
|
|
89
|
+
Name of the responder
|
|
79
90
|
"""
|
|
80
91
|
return pulumi.get(self, "name")
|
|
81
92
|
|
|
@@ -95,6 +106,23 @@ class NotificationArgs:
|
|
|
95
106
|
def options(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
96
107
|
pulumi.set(self, "options", value)
|
|
97
108
|
|
|
109
|
+
@property
|
|
110
|
+
@pulumi.getter
|
|
111
|
+
def responders(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]]:
|
|
112
|
+
"""
|
|
113
|
+
An array of reponders (only for OpsGenie). Each `responders` block
|
|
114
|
+
consists of the field documented below.
|
|
115
|
+
|
|
116
|
+
___
|
|
117
|
+
|
|
118
|
+
The `responders` block consists of:
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "responders")
|
|
121
|
+
|
|
122
|
+
@responders.setter
|
|
123
|
+
def responders(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]]):
|
|
124
|
+
pulumi.set(self, "responders", value)
|
|
125
|
+
|
|
98
126
|
|
|
99
127
|
@pulumi.input_type
|
|
100
128
|
class _NotificationState:
|
|
@@ -102,14 +130,21 @@ class _NotificationState:
|
|
|
102
130
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
103
131
|
name: Optional[pulumi.Input[str]] = None,
|
|
104
132
|
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
133
|
+
responders: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]] = None,
|
|
105
134
|
type: Optional[pulumi.Input[str]] = None,
|
|
106
135
|
value: Optional[pulumi.Input[str]] = None):
|
|
107
136
|
"""
|
|
108
137
|
Input properties used for looking up and filtering Notification resources.
|
|
109
138
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
110
|
-
:param pulumi.Input[str] name:
|
|
139
|
+
:param pulumi.Input[str] name: Name of the responder
|
|
111
140
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
112
|
-
:param pulumi.Input[
|
|
141
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
142
|
+
consists of the field documented below.
|
|
143
|
+
|
|
144
|
+
___
|
|
145
|
+
|
|
146
|
+
The `responders` block consists of:
|
|
147
|
+
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
113
148
|
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
114
149
|
"""
|
|
115
150
|
if instance_id is not None:
|
|
@@ -118,6 +153,8 @@ class _NotificationState:
|
|
|
118
153
|
pulumi.set(__self__, "name", name)
|
|
119
154
|
if options is not None:
|
|
120
155
|
pulumi.set(__self__, "options", options)
|
|
156
|
+
if responders is not None:
|
|
157
|
+
pulumi.set(__self__, "responders", responders)
|
|
121
158
|
if type is not None:
|
|
122
159
|
pulumi.set(__self__, "type", type)
|
|
123
160
|
if value is not None:
|
|
@@ -139,7 +176,7 @@ class _NotificationState:
|
|
|
139
176
|
@pulumi.getter
|
|
140
177
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
141
178
|
"""
|
|
142
|
-
|
|
179
|
+
Name of the responder
|
|
143
180
|
"""
|
|
144
181
|
return pulumi.get(self, "name")
|
|
145
182
|
|
|
@@ -159,11 +196,28 @@ class _NotificationState:
|
|
|
159
196
|
def options(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
160
197
|
pulumi.set(self, "options", value)
|
|
161
198
|
|
|
199
|
+
@property
|
|
200
|
+
@pulumi.getter
|
|
201
|
+
def responders(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]]:
|
|
202
|
+
"""
|
|
203
|
+
An array of reponders (only for OpsGenie). Each `responders` block
|
|
204
|
+
consists of the field documented below.
|
|
205
|
+
|
|
206
|
+
___
|
|
207
|
+
|
|
208
|
+
The `responders` block consists of:
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "responders")
|
|
211
|
+
|
|
212
|
+
@responders.setter
|
|
213
|
+
def responders(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]]):
|
|
214
|
+
pulumi.set(self, "responders", value)
|
|
215
|
+
|
|
162
216
|
@property
|
|
163
217
|
@pulumi.getter
|
|
164
218
|
def type(self) -> Optional[pulumi.Input[str]]:
|
|
165
219
|
"""
|
|
166
|
-
Type of
|
|
220
|
+
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
167
221
|
"""
|
|
168
222
|
return pulumi.get(self, "type")
|
|
169
223
|
|
|
@@ -192,11 +246,14 @@ class Notification(pulumi.CustomResource):
|
|
|
192
246
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
193
247
|
name: Optional[pulumi.Input[str]] = None,
|
|
194
248
|
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
249
|
+
responders: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationResponderArgs']]]]] = None,
|
|
195
250
|
type: Optional[pulumi.Input[str]] = None,
|
|
196
251
|
value: Optional[pulumi.Input[str]] = None,
|
|
197
252
|
__props__=None):
|
|
198
253
|
"""
|
|
199
|
-
This resource allows you to create and manage recipients to receive alarm notifications. There will
|
|
254
|
+
This resource allows you to create and manage recipients to receive alarm notifications. There will
|
|
255
|
+
always be a default recipient created upon instance creation. This recipient will use team email and
|
|
256
|
+
receive notifications from default alarms.
|
|
200
257
|
|
|
201
258
|
Available for all subscription plans.
|
|
202
259
|
|
|
@@ -207,6 +264,7 @@ class Notification(pulumi.CustomResource):
|
|
|
207
264
|
<b>Email recipient</b>
|
|
208
265
|
</summary>
|
|
209
266
|
|
|
267
|
+
<!--Start PulumiCodeChooser -->
|
|
210
268
|
```python
|
|
211
269
|
import pulumi
|
|
212
270
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -216,14 +274,16 @@ class Notification(pulumi.CustomResource):
|
|
|
216
274
|
type="email",
|
|
217
275
|
value="alarm@example.com")
|
|
218
276
|
```
|
|
277
|
+
<!--End PulumiCodeChooser -->
|
|
219
278
|
|
|
220
279
|
</details>
|
|
221
280
|
|
|
222
281
|
<details>
|
|
223
282
|
<summary>
|
|
224
|
-
<b>OpsGenie recipient</b>
|
|
283
|
+
<b>OpsGenie recipient with optional responders</b>
|
|
225
284
|
</summary>
|
|
226
285
|
|
|
286
|
+
<!--Start PulumiCodeChooser -->
|
|
227
287
|
```python
|
|
228
288
|
import pulumi
|
|
229
289
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -231,16 +291,28 @@ class Notification(pulumi.CustomResource):
|
|
|
231
291
|
opsgenie_recipient = cloudamqp.Notification("opsgenieRecipient",
|
|
232
292
|
instance_id=cloudamqp_instance["instance"]["id"],
|
|
233
293
|
type="opsgenie",
|
|
234
|
-
value="<api-key>"
|
|
294
|
+
value="<api-key>",
|
|
295
|
+
responders=[
|
|
296
|
+
cloudamqp.NotificationResponderArgs(
|
|
297
|
+
type="team",
|
|
298
|
+
id="<team-uuid>",
|
|
299
|
+
),
|
|
300
|
+
cloudamqp.NotificationResponderArgs(
|
|
301
|
+
type="user",
|
|
302
|
+
username="<username>",
|
|
303
|
+
),
|
|
304
|
+
])
|
|
235
305
|
```
|
|
306
|
+
<!--End PulumiCodeChooser -->
|
|
236
307
|
|
|
237
308
|
</details>
|
|
238
309
|
|
|
239
310
|
<details>
|
|
240
311
|
<summary>
|
|
241
|
-
<b>Pagerduty recipient</b>
|
|
312
|
+
<b>Pagerduty recipient with optional dedup key</b>
|
|
242
313
|
</summary>
|
|
243
314
|
|
|
315
|
+
<!--Start PulumiCodeChooser -->
|
|
244
316
|
```python
|
|
245
317
|
import pulumi
|
|
246
318
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -253,6 +325,7 @@ class Notification(pulumi.CustomResource):
|
|
|
253
325
|
"dedupkey": "DEDUPKEY",
|
|
254
326
|
})
|
|
255
327
|
```
|
|
328
|
+
<!--End PulumiCodeChooser -->
|
|
256
329
|
|
|
257
330
|
</details>
|
|
258
331
|
|
|
@@ -261,6 +334,7 @@ class Notification(pulumi.CustomResource):
|
|
|
261
334
|
<b>Signl4 recipient</b>
|
|
262
335
|
</summary>
|
|
263
336
|
|
|
337
|
+
<!--Start PulumiCodeChooser -->
|
|
264
338
|
```python
|
|
265
339
|
import pulumi
|
|
266
340
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -270,6 +344,7 @@ class Notification(pulumi.CustomResource):
|
|
|
270
344
|
type="signl4",
|
|
271
345
|
value="<team-secret>")
|
|
272
346
|
```
|
|
347
|
+
<!--End PulumiCodeChooser -->
|
|
273
348
|
|
|
274
349
|
</details>
|
|
275
350
|
|
|
@@ -278,6 +353,7 @@ class Notification(pulumi.CustomResource):
|
|
|
278
353
|
<b>Teams recipient</b>
|
|
279
354
|
</summary>
|
|
280
355
|
|
|
356
|
+
<!--Start PulumiCodeChooser -->
|
|
281
357
|
```python
|
|
282
358
|
import pulumi
|
|
283
359
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -287,14 +363,16 @@ class Notification(pulumi.CustomResource):
|
|
|
287
363
|
type="teams",
|
|
288
364
|
value="<teams-webhook-url>")
|
|
289
365
|
```
|
|
366
|
+
<!--End PulumiCodeChooser -->
|
|
290
367
|
|
|
291
368
|
</details>
|
|
292
369
|
|
|
293
370
|
<details>
|
|
294
371
|
<summary>
|
|
295
|
-
<b>Victorops recipient</b>
|
|
372
|
+
<b>Victorops recipient with optional routing key (rk)</b>
|
|
296
373
|
</summary>
|
|
297
374
|
|
|
375
|
+
<!--Start PulumiCodeChooser -->
|
|
298
376
|
```python
|
|
299
377
|
import pulumi
|
|
300
378
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -307,6 +385,7 @@ class Notification(pulumi.CustomResource):
|
|
|
307
385
|
"rk": "ROUTINGKEY",
|
|
308
386
|
})
|
|
309
387
|
```
|
|
388
|
+
<!--End PulumiCodeChooser -->
|
|
310
389
|
|
|
311
390
|
</details>
|
|
312
391
|
|
|
@@ -315,6 +394,7 @@ class Notification(pulumi.CustomResource):
|
|
|
315
394
|
<b>Webhook recipient</b>
|
|
316
395
|
</summary>
|
|
317
396
|
|
|
397
|
+
<!--Start PulumiCodeChooser -->
|
|
318
398
|
```python
|
|
319
399
|
import pulumi
|
|
320
400
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -324,8 +404,10 @@ class Notification(pulumi.CustomResource):
|
|
|
324
404
|
type="webhook",
|
|
325
405
|
value="<webhook-url>")
|
|
326
406
|
```
|
|
407
|
+
<!--End PulumiCodeChooser -->
|
|
327
408
|
|
|
328
409
|
</details>
|
|
410
|
+
|
|
329
411
|
## Notification Type reference
|
|
330
412
|
|
|
331
413
|
Valid options for notification type.
|
|
@@ -353,18 +435,28 @@ class Notification(pulumi.CustomResource):
|
|
|
353
435
|
|
|
354
436
|
## Import
|
|
355
437
|
|
|
356
|
-
`cloudamqp_notification` can be imported using CloudAMQP internal identifier of a recipient together
|
|
438
|
+
`cloudamqp_notification` can be imported using CloudAMQP internal identifier of a recipient together
|
|
439
|
+
|
|
440
|
+
(CSV separated) with the instance identifier. To retrieve the identifier of a recipient, use
|
|
441
|
+
|
|
442
|
+
[CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-notification-recipients)
|
|
357
443
|
|
|
358
444
|
```sh
|
|
359
|
-
|
|
445
|
+
$ pulumi import cloudamqp:index/notification:Notification recipient <id>,<instance_id>`
|
|
360
446
|
```
|
|
361
447
|
|
|
362
448
|
:param str resource_name: The name of the resource.
|
|
363
449
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
364
450
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
365
|
-
:param pulumi.Input[str] name:
|
|
451
|
+
:param pulumi.Input[str] name: Name of the responder
|
|
366
452
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
367
|
-
:param pulumi.Input[
|
|
453
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationResponderArgs']]]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
454
|
+
consists of the field documented below.
|
|
455
|
+
|
|
456
|
+
___
|
|
457
|
+
|
|
458
|
+
The `responders` block consists of:
|
|
459
|
+
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
368
460
|
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
369
461
|
"""
|
|
370
462
|
...
|
|
@@ -374,7 +466,9 @@ class Notification(pulumi.CustomResource):
|
|
|
374
466
|
args: NotificationArgs,
|
|
375
467
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
376
468
|
"""
|
|
377
|
-
This resource allows you to create and manage recipients to receive alarm notifications. There will
|
|
469
|
+
This resource allows you to create and manage recipients to receive alarm notifications. There will
|
|
470
|
+
always be a default recipient created upon instance creation. This recipient will use team email and
|
|
471
|
+
receive notifications from default alarms.
|
|
378
472
|
|
|
379
473
|
Available for all subscription plans.
|
|
380
474
|
|
|
@@ -385,6 +479,7 @@ class Notification(pulumi.CustomResource):
|
|
|
385
479
|
<b>Email recipient</b>
|
|
386
480
|
</summary>
|
|
387
481
|
|
|
482
|
+
<!--Start PulumiCodeChooser -->
|
|
388
483
|
```python
|
|
389
484
|
import pulumi
|
|
390
485
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -394,14 +489,16 @@ class Notification(pulumi.CustomResource):
|
|
|
394
489
|
type="email",
|
|
395
490
|
value="alarm@example.com")
|
|
396
491
|
```
|
|
492
|
+
<!--End PulumiCodeChooser -->
|
|
397
493
|
|
|
398
494
|
</details>
|
|
399
495
|
|
|
400
496
|
<details>
|
|
401
497
|
<summary>
|
|
402
|
-
<b>OpsGenie recipient</b>
|
|
498
|
+
<b>OpsGenie recipient with optional responders</b>
|
|
403
499
|
</summary>
|
|
404
500
|
|
|
501
|
+
<!--Start PulumiCodeChooser -->
|
|
405
502
|
```python
|
|
406
503
|
import pulumi
|
|
407
504
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -409,16 +506,28 @@ class Notification(pulumi.CustomResource):
|
|
|
409
506
|
opsgenie_recipient = cloudamqp.Notification("opsgenieRecipient",
|
|
410
507
|
instance_id=cloudamqp_instance["instance"]["id"],
|
|
411
508
|
type="opsgenie",
|
|
412
|
-
value="<api-key>"
|
|
509
|
+
value="<api-key>",
|
|
510
|
+
responders=[
|
|
511
|
+
cloudamqp.NotificationResponderArgs(
|
|
512
|
+
type="team",
|
|
513
|
+
id="<team-uuid>",
|
|
514
|
+
),
|
|
515
|
+
cloudamqp.NotificationResponderArgs(
|
|
516
|
+
type="user",
|
|
517
|
+
username="<username>",
|
|
518
|
+
),
|
|
519
|
+
])
|
|
413
520
|
```
|
|
521
|
+
<!--End PulumiCodeChooser -->
|
|
414
522
|
|
|
415
523
|
</details>
|
|
416
524
|
|
|
417
525
|
<details>
|
|
418
526
|
<summary>
|
|
419
|
-
<b>Pagerduty recipient</b>
|
|
527
|
+
<b>Pagerduty recipient with optional dedup key</b>
|
|
420
528
|
</summary>
|
|
421
529
|
|
|
530
|
+
<!--Start PulumiCodeChooser -->
|
|
422
531
|
```python
|
|
423
532
|
import pulumi
|
|
424
533
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -431,6 +540,7 @@ class Notification(pulumi.CustomResource):
|
|
|
431
540
|
"dedupkey": "DEDUPKEY",
|
|
432
541
|
})
|
|
433
542
|
```
|
|
543
|
+
<!--End PulumiCodeChooser -->
|
|
434
544
|
|
|
435
545
|
</details>
|
|
436
546
|
|
|
@@ -439,6 +549,7 @@ class Notification(pulumi.CustomResource):
|
|
|
439
549
|
<b>Signl4 recipient</b>
|
|
440
550
|
</summary>
|
|
441
551
|
|
|
552
|
+
<!--Start PulumiCodeChooser -->
|
|
442
553
|
```python
|
|
443
554
|
import pulumi
|
|
444
555
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -448,6 +559,7 @@ class Notification(pulumi.CustomResource):
|
|
|
448
559
|
type="signl4",
|
|
449
560
|
value="<team-secret>")
|
|
450
561
|
```
|
|
562
|
+
<!--End PulumiCodeChooser -->
|
|
451
563
|
|
|
452
564
|
</details>
|
|
453
565
|
|
|
@@ -456,6 +568,7 @@ class Notification(pulumi.CustomResource):
|
|
|
456
568
|
<b>Teams recipient</b>
|
|
457
569
|
</summary>
|
|
458
570
|
|
|
571
|
+
<!--Start PulumiCodeChooser -->
|
|
459
572
|
```python
|
|
460
573
|
import pulumi
|
|
461
574
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -465,14 +578,16 @@ class Notification(pulumi.CustomResource):
|
|
|
465
578
|
type="teams",
|
|
466
579
|
value="<teams-webhook-url>")
|
|
467
580
|
```
|
|
581
|
+
<!--End PulumiCodeChooser -->
|
|
468
582
|
|
|
469
583
|
</details>
|
|
470
584
|
|
|
471
585
|
<details>
|
|
472
586
|
<summary>
|
|
473
|
-
<b>Victorops recipient</b>
|
|
587
|
+
<b>Victorops recipient with optional routing key (rk)</b>
|
|
474
588
|
</summary>
|
|
475
589
|
|
|
590
|
+
<!--Start PulumiCodeChooser -->
|
|
476
591
|
```python
|
|
477
592
|
import pulumi
|
|
478
593
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -485,6 +600,7 @@ class Notification(pulumi.CustomResource):
|
|
|
485
600
|
"rk": "ROUTINGKEY",
|
|
486
601
|
})
|
|
487
602
|
```
|
|
603
|
+
<!--End PulumiCodeChooser -->
|
|
488
604
|
|
|
489
605
|
</details>
|
|
490
606
|
|
|
@@ -493,6 +609,7 @@ class Notification(pulumi.CustomResource):
|
|
|
493
609
|
<b>Webhook recipient</b>
|
|
494
610
|
</summary>
|
|
495
611
|
|
|
612
|
+
<!--Start PulumiCodeChooser -->
|
|
496
613
|
```python
|
|
497
614
|
import pulumi
|
|
498
615
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -502,8 +619,10 @@ class Notification(pulumi.CustomResource):
|
|
|
502
619
|
type="webhook",
|
|
503
620
|
value="<webhook-url>")
|
|
504
621
|
```
|
|
622
|
+
<!--End PulumiCodeChooser -->
|
|
505
623
|
|
|
506
624
|
</details>
|
|
625
|
+
|
|
507
626
|
## Notification Type reference
|
|
508
627
|
|
|
509
628
|
Valid options for notification type.
|
|
@@ -531,10 +650,14 @@ class Notification(pulumi.CustomResource):
|
|
|
531
650
|
|
|
532
651
|
## Import
|
|
533
652
|
|
|
534
|
-
`cloudamqp_notification` can be imported using CloudAMQP internal identifier of a recipient together
|
|
653
|
+
`cloudamqp_notification` can be imported using CloudAMQP internal identifier of a recipient together
|
|
654
|
+
|
|
655
|
+
(CSV separated) with the instance identifier. To retrieve the identifier of a recipient, use
|
|
656
|
+
|
|
657
|
+
[CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-notification-recipients)
|
|
535
658
|
|
|
536
659
|
```sh
|
|
537
|
-
|
|
660
|
+
$ pulumi import cloudamqp:index/notification:Notification recipient <id>,<instance_id>`
|
|
538
661
|
```
|
|
539
662
|
|
|
540
663
|
:param str resource_name: The name of the resource.
|
|
@@ -555,6 +678,7 @@ class Notification(pulumi.CustomResource):
|
|
|
555
678
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
556
679
|
name: Optional[pulumi.Input[str]] = None,
|
|
557
680
|
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
681
|
+
responders: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationResponderArgs']]]]] = None,
|
|
558
682
|
type: Optional[pulumi.Input[str]] = None,
|
|
559
683
|
value: Optional[pulumi.Input[str]] = None,
|
|
560
684
|
__props__=None):
|
|
@@ -571,6 +695,7 @@ class Notification(pulumi.CustomResource):
|
|
|
571
695
|
__props__.__dict__["instance_id"] = instance_id
|
|
572
696
|
__props__.__dict__["name"] = name
|
|
573
697
|
__props__.__dict__["options"] = options
|
|
698
|
+
__props__.__dict__["responders"] = responders
|
|
574
699
|
if type is None and not opts.urn:
|
|
575
700
|
raise TypeError("Missing required property 'type'")
|
|
576
701
|
__props__.__dict__["type"] = type
|
|
@@ -590,6 +715,7 @@ class Notification(pulumi.CustomResource):
|
|
|
590
715
|
instance_id: Optional[pulumi.Input[int]] = None,
|
|
591
716
|
name: Optional[pulumi.Input[str]] = None,
|
|
592
717
|
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
718
|
+
responders: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationResponderArgs']]]]] = None,
|
|
593
719
|
type: Optional[pulumi.Input[str]] = None,
|
|
594
720
|
value: Optional[pulumi.Input[str]] = None) -> 'Notification':
|
|
595
721
|
"""
|
|
@@ -600,9 +726,15 @@ class Notification(pulumi.CustomResource):
|
|
|
600
726
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
601
727
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
602
728
|
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
603
|
-
:param pulumi.Input[str] name:
|
|
729
|
+
:param pulumi.Input[str] name: Name of the responder
|
|
604
730
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
605
|
-
:param pulumi.Input[
|
|
731
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotificationResponderArgs']]]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
732
|
+
consists of the field documented below.
|
|
733
|
+
|
|
734
|
+
___
|
|
735
|
+
|
|
736
|
+
The `responders` block consists of:
|
|
737
|
+
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
606
738
|
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
607
739
|
"""
|
|
608
740
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -612,6 +744,7 @@ class Notification(pulumi.CustomResource):
|
|
|
612
744
|
__props__.__dict__["instance_id"] = instance_id
|
|
613
745
|
__props__.__dict__["name"] = name
|
|
614
746
|
__props__.__dict__["options"] = options
|
|
747
|
+
__props__.__dict__["responders"] = responders
|
|
615
748
|
__props__.__dict__["type"] = type
|
|
616
749
|
__props__.__dict__["value"] = value
|
|
617
750
|
return Notification(resource_name, opts=opts, __props__=__props__)
|
|
@@ -628,7 +761,7 @@ class Notification(pulumi.CustomResource):
|
|
|
628
761
|
@pulumi.getter
|
|
629
762
|
def name(self) -> pulumi.Output[str]:
|
|
630
763
|
"""
|
|
631
|
-
|
|
764
|
+
Name of the responder
|
|
632
765
|
"""
|
|
633
766
|
return pulumi.get(self, "name")
|
|
634
767
|
|
|
@@ -640,11 +773,24 @@ class Notification(pulumi.CustomResource):
|
|
|
640
773
|
"""
|
|
641
774
|
return pulumi.get(self, "options")
|
|
642
775
|
|
|
776
|
+
@property
|
|
777
|
+
@pulumi.getter
|
|
778
|
+
def responders(self) -> pulumi.Output[Optional[Sequence['outputs.NotificationResponder']]]:
|
|
779
|
+
"""
|
|
780
|
+
An array of reponders (only for OpsGenie). Each `responders` block
|
|
781
|
+
consists of the field documented below.
|
|
782
|
+
|
|
783
|
+
___
|
|
784
|
+
|
|
785
|
+
The `responders` block consists of:
|
|
786
|
+
"""
|
|
787
|
+
return pulumi.get(self, "responders")
|
|
788
|
+
|
|
643
789
|
@property
|
|
644
790
|
@pulumi.getter
|
|
645
791
|
def type(self) -> pulumi.Output[str]:
|
|
646
792
|
"""
|
|
647
|
-
Type of
|
|
793
|
+
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
648
794
|
"""
|
|
649
795
|
return pulumi.get(self, "type")
|
|
650
796
|
|