pulumi-cloudamqp 3.21.0a1743571485__py3-none-any.whl → 3.22.0a1744182778__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/__init__.py +10 -0
- pulumi_cloudamqp/_inputs.py +92 -72
- pulumi_cloudamqp/account_action.py +39 -31
- pulumi_cloudamqp/alarm.py +229 -168
- pulumi_cloudamqp/config/__init__.py +1 -0
- pulumi_cloudamqp/config/__init__.pyi +1 -0
- pulumi_cloudamqp/config/vars.py +1 -0
- pulumi_cloudamqp/custom_domain.py +81 -38
- pulumi_cloudamqp/extra_disk_size.py +172 -155
- pulumi_cloudamqp/get_account.py +10 -3
- pulumi_cloudamqp/get_account_vpcs.py +15 -41
- pulumi_cloudamqp/get_alarm.py +74 -67
- pulumi_cloudamqp/get_credentials.py +19 -26
- pulumi_cloudamqp/get_instance.py +75 -25
- pulumi_cloudamqp/get_nodes.py +10 -56
- pulumi_cloudamqp/get_notification.py +39 -41
- pulumi_cloudamqp/get_plugins.py +28 -54
- pulumi_cloudamqp/get_plugins_community.py +29 -52
- pulumi_cloudamqp/get_upgradable_versions.py +19 -24
- pulumi_cloudamqp/get_vpc_gcp_info.py +44 -138
- pulumi_cloudamqp/get_vpc_info.py +34 -127
- pulumi_cloudamqp/instance.py +557 -333
- pulumi_cloudamqp/integration_aws_eventbridge.py +182 -117
- pulumi_cloudamqp/integration_log.py +488 -402
- pulumi_cloudamqp/integration_metric.py +345 -296
- pulumi_cloudamqp/maintenance_window.py +516 -0
- pulumi_cloudamqp/node_actions.py +82 -59
- pulumi_cloudamqp/notification.py +174 -92
- pulumi_cloudamqp/outputs.py +216 -125
- pulumi_cloudamqp/plugin.py +170 -105
- pulumi_cloudamqp/plugin_community.py +168 -107
- pulumi_cloudamqp/privatelink_aws.py +140 -347
- pulumi_cloudamqp/privatelink_azure.py +142 -345
- pulumi_cloudamqp/provider.py +22 -21
- pulumi_cloudamqp/pulumi-plugin.json +1 -1
- pulumi_cloudamqp/rabbit_configuration.py +334 -210
- pulumi_cloudamqp/security_firewall.py +111 -57
- pulumi_cloudamqp/upgrade_lavinmq.py +29 -102
- pulumi_cloudamqp/upgrade_rabbitmq.py +53 -299
- pulumi_cloudamqp/vpc.py +112 -79
- pulumi_cloudamqp/vpc_connect.py +219 -606
- pulumi_cloudamqp/vpc_gcp_peering.py +227 -591
- pulumi_cloudamqp/vpc_peering.py +120 -105
- pulumi_cloudamqp/webhook.py +143 -103
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.22.0a1744182778.dist-info/RECORD +50 -0
- pulumi_cloudamqp-3.21.0a1743571485.dist-info/RECORD +0 -49
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.dist-info}/WHEEL +0 -0
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.dist-info}/top_level.txt +0 -0
pulumi_cloudamqp/notification.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins
|
|
5
6
|
import copy
|
|
6
7
|
import warnings
|
|
7
8
|
import sys
|
|
@@ -21,24 +22,33 @@ __all__ = ['NotificationArgs', 'Notification']
|
|
|
21
22
|
@pulumi.input_type
|
|
22
23
|
class NotificationArgs:
|
|
23
24
|
def __init__(__self__, *,
|
|
24
|
-
instance_id: pulumi.Input[int],
|
|
25
|
-
type: pulumi.Input[str],
|
|
26
|
-
value: pulumi.Input[str],
|
|
27
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
25
|
+
instance_id: pulumi.Input[builtins.int],
|
|
26
|
+
type: pulumi.Input[builtins.str],
|
|
27
|
+
value: pulumi.Input[builtins.str],
|
|
28
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
29
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
29
30
|
responders: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]] = None):
|
|
30
31
|
"""
|
|
31
32
|
The set of arguments for constructing a Notification resource.
|
|
32
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
33
|
-
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
34
|
-
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
35
|
-
:param pulumi.Input[str] name: Name of the responder
|
|
36
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
33
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
34
|
+
:param pulumi.Input[builtins.str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
35
|
+
:param pulumi.Input[builtins.str] value: Integration/API key or endpoint to send the notification.
|
|
36
|
+
:param pulumi.Input[builtins.str] name: Name of the responder
|
|
37
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
37
38
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
38
39
|
consists of the field documented below.
|
|
39
40
|
|
|
40
41
|
___
|
|
41
42
|
|
|
43
|
+
The options parameter:
|
|
44
|
+
|
|
45
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
46
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
47
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
48
|
+
to use the generated dedup key.
|
|
49
|
+
|
|
50
|
+
___
|
|
51
|
+
|
|
42
52
|
The `responders` block consists of:
|
|
43
53
|
"""
|
|
44
54
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -53,62 +63,62 @@ class NotificationArgs:
|
|
|
53
63
|
|
|
54
64
|
@property
|
|
55
65
|
@pulumi.getter(name="instanceId")
|
|
56
|
-
def instance_id(self) -> pulumi.Input[int]:
|
|
66
|
+
def instance_id(self) -> pulumi.Input[builtins.int]:
|
|
57
67
|
"""
|
|
58
68
|
The CloudAMQP instance ID.
|
|
59
69
|
"""
|
|
60
70
|
return pulumi.get(self, "instance_id")
|
|
61
71
|
|
|
62
72
|
@instance_id.setter
|
|
63
|
-
def instance_id(self, value: pulumi.Input[int]):
|
|
73
|
+
def instance_id(self, value: pulumi.Input[builtins.int]):
|
|
64
74
|
pulumi.set(self, "instance_id", value)
|
|
65
75
|
|
|
66
76
|
@property
|
|
67
77
|
@pulumi.getter
|
|
68
|
-
def type(self) -> pulumi.Input[str]:
|
|
78
|
+
def type(self) -> pulumi.Input[builtins.str]:
|
|
69
79
|
"""
|
|
70
80
|
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
71
81
|
"""
|
|
72
82
|
return pulumi.get(self, "type")
|
|
73
83
|
|
|
74
84
|
@type.setter
|
|
75
|
-
def type(self, value: pulumi.Input[str]):
|
|
85
|
+
def type(self, value: pulumi.Input[builtins.str]):
|
|
76
86
|
pulumi.set(self, "type", value)
|
|
77
87
|
|
|
78
88
|
@property
|
|
79
89
|
@pulumi.getter
|
|
80
|
-
def value(self) -> pulumi.Input[str]:
|
|
90
|
+
def value(self) -> pulumi.Input[builtins.str]:
|
|
81
91
|
"""
|
|
82
92
|
Integration/API key or endpoint to send the notification.
|
|
83
93
|
"""
|
|
84
94
|
return pulumi.get(self, "value")
|
|
85
95
|
|
|
86
96
|
@value.setter
|
|
87
|
-
def value(self, value: pulumi.Input[str]):
|
|
97
|
+
def value(self, value: pulumi.Input[builtins.str]):
|
|
88
98
|
pulumi.set(self, "value", value)
|
|
89
99
|
|
|
90
100
|
@property
|
|
91
101
|
@pulumi.getter
|
|
92
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
102
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
93
103
|
"""
|
|
94
104
|
Name of the responder
|
|
95
105
|
"""
|
|
96
106
|
return pulumi.get(self, "name")
|
|
97
107
|
|
|
98
108
|
@name.setter
|
|
99
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
109
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
100
110
|
pulumi.set(self, "name", value)
|
|
101
111
|
|
|
102
112
|
@property
|
|
103
113
|
@pulumi.getter
|
|
104
|
-
def options(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
114
|
+
def options(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
|
105
115
|
"""
|
|
106
116
|
Options argument (e.g. `rk` used for VictorOps routing key).
|
|
107
117
|
"""
|
|
108
118
|
return pulumi.get(self, "options")
|
|
109
119
|
|
|
110
120
|
@options.setter
|
|
111
|
-
def options(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
121
|
+
def options(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
|
112
122
|
pulumi.set(self, "options", value)
|
|
113
123
|
|
|
114
124
|
@property
|
|
@@ -120,6 +130,15 @@ class NotificationArgs:
|
|
|
120
130
|
|
|
121
131
|
___
|
|
122
132
|
|
|
133
|
+
The options parameter:
|
|
134
|
+
|
|
135
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
136
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
137
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
138
|
+
to use the generated dedup key.
|
|
139
|
+
|
|
140
|
+
___
|
|
141
|
+
|
|
123
142
|
The `responders` block consists of:
|
|
124
143
|
"""
|
|
125
144
|
return pulumi.get(self, "responders")
|
|
@@ -132,25 +151,34 @@ class NotificationArgs:
|
|
|
132
151
|
@pulumi.input_type
|
|
133
152
|
class _NotificationState:
|
|
134
153
|
def __init__(__self__, *,
|
|
135
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
136
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
137
|
-
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
154
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
155
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
156
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
138
157
|
responders: Optional[pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]]] = None,
|
|
139
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
140
|
-
value: Optional[pulumi.Input[str]] = None):
|
|
158
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
159
|
+
value: Optional[pulumi.Input[builtins.str]] = None):
|
|
141
160
|
"""
|
|
142
161
|
Input properties used for looking up and filtering Notification resources.
|
|
143
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
144
|
-
:param pulumi.Input[str] name: Name of the responder
|
|
145
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
162
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
163
|
+
:param pulumi.Input[builtins.str] name: Name of the responder
|
|
164
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
146
165
|
:param pulumi.Input[Sequence[pulumi.Input['NotificationResponderArgs']]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
147
166
|
consists of the field documented below.
|
|
148
167
|
|
|
149
168
|
___
|
|
150
169
|
|
|
170
|
+
The options parameter:
|
|
171
|
+
|
|
172
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
173
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
174
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
175
|
+
to use the generated dedup key.
|
|
176
|
+
|
|
177
|
+
___
|
|
178
|
+
|
|
151
179
|
The `responders` block consists of:
|
|
152
|
-
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
153
|
-
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
180
|
+
:param pulumi.Input[builtins.str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
181
|
+
:param pulumi.Input[builtins.str] value: Integration/API key or endpoint to send the notification.
|
|
154
182
|
"""
|
|
155
183
|
if instance_id is not None:
|
|
156
184
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -167,38 +195,38 @@ class _NotificationState:
|
|
|
167
195
|
|
|
168
196
|
@property
|
|
169
197
|
@pulumi.getter(name="instanceId")
|
|
170
|
-
def instance_id(self) -> Optional[pulumi.Input[int]]:
|
|
198
|
+
def instance_id(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
171
199
|
"""
|
|
172
200
|
The CloudAMQP instance ID.
|
|
173
201
|
"""
|
|
174
202
|
return pulumi.get(self, "instance_id")
|
|
175
203
|
|
|
176
204
|
@instance_id.setter
|
|
177
|
-
def instance_id(self, value: Optional[pulumi.Input[int]]):
|
|
205
|
+
def instance_id(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
178
206
|
pulumi.set(self, "instance_id", value)
|
|
179
207
|
|
|
180
208
|
@property
|
|
181
209
|
@pulumi.getter
|
|
182
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
210
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
183
211
|
"""
|
|
184
212
|
Name of the responder
|
|
185
213
|
"""
|
|
186
214
|
return pulumi.get(self, "name")
|
|
187
215
|
|
|
188
216
|
@name.setter
|
|
189
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
217
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
190
218
|
pulumi.set(self, "name", value)
|
|
191
219
|
|
|
192
220
|
@property
|
|
193
221
|
@pulumi.getter
|
|
194
|
-
def options(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
222
|
+
def options(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
|
195
223
|
"""
|
|
196
224
|
Options argument (e.g. `rk` used for VictorOps routing key).
|
|
197
225
|
"""
|
|
198
226
|
return pulumi.get(self, "options")
|
|
199
227
|
|
|
200
228
|
@options.setter
|
|
201
|
-
def options(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
229
|
+
def options(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
|
202
230
|
pulumi.set(self, "options", value)
|
|
203
231
|
|
|
204
232
|
@property
|
|
@@ -210,6 +238,15 @@ class _NotificationState:
|
|
|
210
238
|
|
|
211
239
|
___
|
|
212
240
|
|
|
241
|
+
The options parameter:
|
|
242
|
+
|
|
243
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
244
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
245
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
246
|
+
to use the generated dedup key.
|
|
247
|
+
|
|
248
|
+
___
|
|
249
|
+
|
|
213
250
|
The `responders` block consists of:
|
|
214
251
|
"""
|
|
215
252
|
return pulumi.get(self, "responders")
|
|
@@ -220,26 +257,26 @@ class _NotificationState:
|
|
|
220
257
|
|
|
221
258
|
@property
|
|
222
259
|
@pulumi.getter
|
|
223
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
260
|
+
def type(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
224
261
|
"""
|
|
225
262
|
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
226
263
|
"""
|
|
227
264
|
return pulumi.get(self, "type")
|
|
228
265
|
|
|
229
266
|
@type.setter
|
|
230
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
267
|
+
def type(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
231
268
|
pulumi.set(self, "type", value)
|
|
232
269
|
|
|
233
270
|
@property
|
|
234
271
|
@pulumi.getter
|
|
235
|
-
def value(self) -> Optional[pulumi.Input[str]]:
|
|
272
|
+
def value(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
236
273
|
"""
|
|
237
274
|
Integration/API key or endpoint to send the notification.
|
|
238
275
|
"""
|
|
239
276
|
return pulumi.get(self, "value")
|
|
240
277
|
|
|
241
278
|
@value.setter
|
|
242
|
-
def value(self, value: Optional[pulumi.Input[str]]):
|
|
279
|
+
def value(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
243
280
|
pulumi.set(self, "value", value)
|
|
244
281
|
|
|
245
282
|
|
|
@@ -248,12 +285,12 @@ class Notification(pulumi.CustomResource):
|
|
|
248
285
|
def __init__(__self__,
|
|
249
286
|
resource_name: str,
|
|
250
287
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
251
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
252
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
253
|
-
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
288
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
289
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
290
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
254
291
|
responders: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationResponderArgs', 'NotificationResponderArgsDict']]]]] = None,
|
|
255
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
256
|
-
value: Optional[pulumi.Input[str]] = None,
|
|
292
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
293
|
+
value: Optional[pulumi.Input[builtins.str]] = None,
|
|
257
294
|
__props__=None):
|
|
258
295
|
"""
|
|
259
296
|
This resource allows you to create and manage recipients to receive alarm notifications. There will
|
|
@@ -424,7 +461,7 @@ class Notification(pulumi.CustomResource):
|
|
|
424
461
|
|
|
425
462
|
</details>
|
|
426
463
|
|
|
427
|
-
## Notification
|
|
464
|
+
## Notification type reference
|
|
428
465
|
|
|
429
466
|
Valid options for notification type.
|
|
430
467
|
|
|
@@ -438,42 +475,60 @@ class Notification(pulumi.CustomResource):
|
|
|
438
475
|
* victorops
|
|
439
476
|
* webhook
|
|
440
477
|
|
|
441
|
-
## Options parameter
|
|
442
|
-
|
|
443
|
-
| Type | Options | Description | Note |
|
|
444
|
-
|---|---|---|---|
|
|
445
|
-
| Victorops | rk | Routing key to route alarm notification | - |
|
|
446
|
-
| PagerDuty | dedupkey | Default the dedup key for PagerDuty is generated depending on what alarm has triggered, but here you can set what `dedup` key to use so even if the same alarm is triggered for different resources you only get one notification. Leave blank to use the generated dedup key. | If multiple alarms are triggered using this recipient, since they all share `dedup` key only the first alarm will be shown in PagerDuty |
|
|
447
|
-
|
|
448
478
|
## Dependency
|
|
449
479
|
|
|
450
480
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
451
481
|
|
|
452
482
|
## Import
|
|
453
483
|
|
|
454
|
-
`cloudamqp_notification` can be imported using
|
|
484
|
+
`cloudamqp_notification` can be imported using the resource identifier together with CloudAMQP
|
|
485
|
+
|
|
486
|
+
instance identifier (CSV separated). To retrieve the resource identifier, use
|
|
487
|
+
|
|
488
|
+
[CloudAMQP API list recipients].
|
|
489
|
+
|
|
490
|
+
From Terraform v1.5.0, the `import` block can be used to import this resource:
|
|
491
|
+
|
|
492
|
+
hcl
|
|
493
|
+
|
|
494
|
+
import {
|
|
495
|
+
|
|
496
|
+
to = cloudamqp_notification.recipient
|
|
455
497
|
|
|
456
|
-
|
|
498
|
+
id = format("<id>,%s", cloudamqp_instance.instance.id)
|
|
457
499
|
|
|
458
|
-
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
Or use Terraform CLI:
|
|
459
503
|
|
|
460
504
|
```sh
|
|
461
505
|
$ pulumi import cloudamqp:index/notification:Notification recipient <id>,<instance_id>`
|
|
462
506
|
```
|
|
463
507
|
|
|
508
|
+
[CloudAMQP API list recipients]: https://docs.cloudamqp.com/cloudamqp_api.html#list-recipients
|
|
509
|
+
|
|
464
510
|
:param str resource_name: The name of the resource.
|
|
465
511
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
466
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
467
|
-
:param pulumi.Input[str] name: Name of the responder
|
|
468
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
512
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
513
|
+
:param pulumi.Input[builtins.str] name: Name of the responder
|
|
514
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
469
515
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationResponderArgs', 'NotificationResponderArgsDict']]]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
470
516
|
consists of the field documented below.
|
|
471
517
|
|
|
472
518
|
___
|
|
473
519
|
|
|
520
|
+
The options parameter:
|
|
521
|
+
|
|
522
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
523
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
524
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
525
|
+
to use the generated dedup key.
|
|
526
|
+
|
|
527
|
+
___
|
|
528
|
+
|
|
474
529
|
The `responders` block consists of:
|
|
475
|
-
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
476
|
-
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
530
|
+
:param pulumi.Input[builtins.str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
531
|
+
:param pulumi.Input[builtins.str] value: Integration/API key or endpoint to send the notification.
|
|
477
532
|
"""
|
|
478
533
|
...
|
|
479
534
|
@overload
|
|
@@ -650,7 +705,7 @@ class Notification(pulumi.CustomResource):
|
|
|
650
705
|
|
|
651
706
|
</details>
|
|
652
707
|
|
|
653
|
-
## Notification
|
|
708
|
+
## Notification type reference
|
|
654
709
|
|
|
655
710
|
Valid options for notification type.
|
|
656
711
|
|
|
@@ -664,29 +719,38 @@ class Notification(pulumi.CustomResource):
|
|
|
664
719
|
* victorops
|
|
665
720
|
* webhook
|
|
666
721
|
|
|
667
|
-
## Options parameter
|
|
668
|
-
|
|
669
|
-
| Type | Options | Description | Note |
|
|
670
|
-
|---|---|---|---|
|
|
671
|
-
| Victorops | rk | Routing key to route alarm notification | - |
|
|
672
|
-
| PagerDuty | dedupkey | Default the dedup key for PagerDuty is generated depending on what alarm has triggered, but here you can set what `dedup` key to use so even if the same alarm is triggered for different resources you only get one notification. Leave blank to use the generated dedup key. | If multiple alarms are triggered using this recipient, since they all share `dedup` key only the first alarm will be shown in PagerDuty |
|
|
673
|
-
|
|
674
722
|
## Dependency
|
|
675
723
|
|
|
676
724
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
677
725
|
|
|
678
726
|
## Import
|
|
679
727
|
|
|
680
|
-
`cloudamqp_notification` can be imported using
|
|
728
|
+
`cloudamqp_notification` can be imported using the resource identifier together with CloudAMQP
|
|
729
|
+
|
|
730
|
+
instance identifier (CSV separated). To retrieve the resource identifier, use
|
|
731
|
+
|
|
732
|
+
[CloudAMQP API list recipients].
|
|
733
|
+
|
|
734
|
+
From Terraform v1.5.0, the `import` block can be used to import this resource:
|
|
735
|
+
|
|
736
|
+
hcl
|
|
681
737
|
|
|
682
|
-
|
|
738
|
+
import {
|
|
683
739
|
|
|
684
|
-
|
|
740
|
+
to = cloudamqp_notification.recipient
|
|
741
|
+
|
|
742
|
+
id = format("<id>,%s", cloudamqp_instance.instance.id)
|
|
743
|
+
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
Or use Terraform CLI:
|
|
685
747
|
|
|
686
748
|
```sh
|
|
687
749
|
$ pulumi import cloudamqp:index/notification:Notification recipient <id>,<instance_id>`
|
|
688
750
|
```
|
|
689
751
|
|
|
752
|
+
[CloudAMQP API list recipients]: https://docs.cloudamqp.com/cloudamqp_api.html#list-recipients
|
|
753
|
+
|
|
690
754
|
:param str resource_name: The name of the resource.
|
|
691
755
|
:param NotificationArgs args: The arguments to use to populate this resource's properties.
|
|
692
756
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -702,12 +766,12 @@ class Notification(pulumi.CustomResource):
|
|
|
702
766
|
def _internal_init(__self__,
|
|
703
767
|
resource_name: str,
|
|
704
768
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
705
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
706
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
707
|
-
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
769
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
770
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
771
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
708
772
|
responders: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationResponderArgs', 'NotificationResponderArgsDict']]]]] = None,
|
|
709
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
710
|
-
value: Optional[pulumi.Input[str]] = None,
|
|
773
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
774
|
+
value: Optional[pulumi.Input[builtins.str]] = None,
|
|
711
775
|
__props__=None):
|
|
712
776
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
713
777
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -739,12 +803,12 @@ class Notification(pulumi.CustomResource):
|
|
|
739
803
|
def get(resource_name: str,
|
|
740
804
|
id: pulumi.Input[str],
|
|
741
805
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
742
|
-
instance_id: Optional[pulumi.Input[int]] = None,
|
|
743
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
744
|
-
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
806
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
807
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
808
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
745
809
|
responders: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotificationResponderArgs', 'NotificationResponderArgsDict']]]]] = None,
|
|
746
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
747
|
-
value: Optional[pulumi.Input[str]] = None) -> 'Notification':
|
|
810
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
811
|
+
value: Optional[pulumi.Input[builtins.str]] = None) -> 'Notification':
|
|
748
812
|
"""
|
|
749
813
|
Get an existing Notification resource's state with the given name, id, and optional extra
|
|
750
814
|
properties used to qualify the lookup.
|
|
@@ -752,17 +816,26 @@ class Notification(pulumi.CustomResource):
|
|
|
752
816
|
:param str resource_name: The unique name of the resulting resource.
|
|
753
817
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
754
818
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
755
|
-
:param pulumi.Input[int] instance_id: The CloudAMQP instance ID.
|
|
756
|
-
:param pulumi.Input[str] name: Name of the responder
|
|
757
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
819
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
820
|
+
:param pulumi.Input[builtins.str] name: Name of the responder
|
|
821
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
758
822
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationResponderArgs', 'NotificationResponderArgsDict']]]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
759
823
|
consists of the field documented below.
|
|
760
824
|
|
|
761
825
|
___
|
|
762
826
|
|
|
827
|
+
The options parameter:
|
|
828
|
+
|
|
829
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
830
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
831
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
832
|
+
to use the generated dedup key.
|
|
833
|
+
|
|
834
|
+
___
|
|
835
|
+
|
|
763
836
|
The `responders` block consists of:
|
|
764
|
-
:param pulumi.Input[str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
765
|
-
:param pulumi.Input[str] value: Integration/API key or endpoint to send the notification.
|
|
837
|
+
:param pulumi.Input[builtins.str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
838
|
+
:param pulumi.Input[builtins.str] value: Integration/API key or endpoint to send the notification.
|
|
766
839
|
"""
|
|
767
840
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
768
841
|
|
|
@@ -778,7 +851,7 @@ class Notification(pulumi.CustomResource):
|
|
|
778
851
|
|
|
779
852
|
@property
|
|
780
853
|
@pulumi.getter(name="instanceId")
|
|
781
|
-
def instance_id(self) -> pulumi.Output[int]:
|
|
854
|
+
def instance_id(self) -> pulumi.Output[builtins.int]:
|
|
782
855
|
"""
|
|
783
856
|
The CloudAMQP instance ID.
|
|
784
857
|
"""
|
|
@@ -786,7 +859,7 @@ class Notification(pulumi.CustomResource):
|
|
|
786
859
|
|
|
787
860
|
@property
|
|
788
861
|
@pulumi.getter
|
|
789
|
-
def name(self) -> pulumi.Output[str]:
|
|
862
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
790
863
|
"""
|
|
791
864
|
Name of the responder
|
|
792
865
|
"""
|
|
@@ -794,7 +867,7 @@ class Notification(pulumi.CustomResource):
|
|
|
794
867
|
|
|
795
868
|
@property
|
|
796
869
|
@pulumi.getter
|
|
797
|
-
def options(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
870
|
+
def options(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
|
|
798
871
|
"""
|
|
799
872
|
Options argument (e.g. `rk` used for VictorOps routing key).
|
|
800
873
|
"""
|
|
@@ -809,13 +882,22 @@ class Notification(pulumi.CustomResource):
|
|
|
809
882
|
|
|
810
883
|
___
|
|
811
884
|
|
|
885
|
+
The options parameter:
|
|
886
|
+
|
|
887
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
888
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
889
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
890
|
+
to use the generated dedup key.
|
|
891
|
+
|
|
892
|
+
___
|
|
893
|
+
|
|
812
894
|
The `responders` block consists of:
|
|
813
895
|
"""
|
|
814
896
|
return pulumi.get(self, "responders")
|
|
815
897
|
|
|
816
898
|
@property
|
|
817
899
|
@pulumi.getter
|
|
818
|
-
def type(self) -> pulumi.Output[str]:
|
|
900
|
+
def type(self) -> pulumi.Output[builtins.str]:
|
|
819
901
|
"""
|
|
820
902
|
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
821
903
|
"""
|
|
@@ -823,7 +905,7 @@ class Notification(pulumi.CustomResource):
|
|
|
823
905
|
|
|
824
906
|
@property
|
|
825
907
|
@pulumi.getter
|
|
826
|
-
def value(self) -> pulumi.Output[str]:
|
|
908
|
+
def value(self) -> pulumi.Output[builtins.str]:
|
|
827
909
|
"""
|
|
828
910
|
Integration/API key or endpoint to send the notification.
|
|
829
911
|
"""
|