pulumi-cloudamqp 3.21.0a1743571485__py3-none-any.whl → 3.22.0__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 +12 -0
- pulumi_cloudamqp/_inputs.py +92 -72
- pulumi_cloudamqp/account_action.py +42 -31
- pulumi_cloudamqp/alarm.py +232 -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 +84 -38
- pulumi_cloudamqp/extra_disk_size.py +175 -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_alarms.py +165 -0
- 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_notifications.py +135 -0
- 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 +560 -333
- pulumi_cloudamqp/integration_aws_eventbridge.py +185 -117
- pulumi_cloudamqp/integration_log.py +491 -402
- pulumi_cloudamqp/integration_metric.py +348 -296
- pulumi_cloudamqp/maintenance_window.py +519 -0
- pulumi_cloudamqp/node_actions.py +85 -59
- pulumi_cloudamqp/notification.py +177 -92
- pulumi_cloudamqp/outputs.py +419 -125
- pulumi_cloudamqp/plugin.py +173 -105
- pulumi_cloudamqp/plugin_community.py +171 -107
- pulumi_cloudamqp/privatelink_aws.py +143 -347
- pulumi_cloudamqp/privatelink_azure.py +145 -345
- pulumi_cloudamqp/provider.py +25 -21
- pulumi_cloudamqp/pulumi-plugin.json +1 -1
- pulumi_cloudamqp/rabbit_configuration.py +337 -210
- pulumi_cloudamqp/security_firewall.py +114 -57
- pulumi_cloudamqp/upgrade_lavinmq.py +32 -102
- pulumi_cloudamqp/upgrade_rabbitmq.py +56 -299
- pulumi_cloudamqp/vpc.py +115 -79
- pulumi_cloudamqp/vpc_connect.py +222 -606
- pulumi_cloudamqp/vpc_gcp_peering.py +230 -591
- pulumi_cloudamqp/vpc_peering.py +123 -105
- pulumi_cloudamqp/webhook.py +146 -103
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.22.0.dist-info/RECORD +52 -0
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.21.0a1743571485.dist-info/RECORD +0 -49
- {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0.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,40 +257,43 @@ 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
|
|
|
246
283
|
class Notification(pulumi.CustomResource):
|
|
284
|
+
|
|
285
|
+
pulumi_type = "cloudamqp:index/notification:Notification"
|
|
286
|
+
|
|
247
287
|
@overload
|
|
248
288
|
def __init__(__self__,
|
|
249
289
|
resource_name: str,
|
|
250
290
|
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,
|
|
291
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
292
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
293
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
254
294
|
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,
|
|
295
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
296
|
+
value: Optional[pulumi.Input[builtins.str]] = None,
|
|
257
297
|
__props__=None):
|
|
258
298
|
"""
|
|
259
299
|
This resource allows you to create and manage recipients to receive alarm notifications. There will
|
|
@@ -424,7 +464,7 @@ class Notification(pulumi.CustomResource):
|
|
|
424
464
|
|
|
425
465
|
</details>
|
|
426
466
|
|
|
427
|
-
## Notification
|
|
467
|
+
## Notification type reference
|
|
428
468
|
|
|
429
469
|
Valid options for notification type.
|
|
430
470
|
|
|
@@ -438,42 +478,60 @@ class Notification(pulumi.CustomResource):
|
|
|
438
478
|
* victorops
|
|
439
479
|
* webhook
|
|
440
480
|
|
|
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
481
|
## Dependency
|
|
449
482
|
|
|
450
483
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
451
484
|
|
|
452
485
|
## Import
|
|
453
486
|
|
|
454
|
-
`cloudamqp_notification` can be imported using
|
|
487
|
+
`cloudamqp_notification` can be imported using the resource identifier together with CloudAMQP
|
|
488
|
+
|
|
489
|
+
instance identifier (CSV separated). To retrieve the resource identifier, use
|
|
490
|
+
|
|
491
|
+
[CloudAMQP API list recipients].
|
|
492
|
+
|
|
493
|
+
From Terraform v1.5.0, the `import` block can be used to import this resource:
|
|
494
|
+
|
|
495
|
+
hcl
|
|
496
|
+
|
|
497
|
+
import {
|
|
455
498
|
|
|
456
|
-
|
|
499
|
+
to = cloudamqp_notification.recipient
|
|
457
500
|
|
|
458
|
-
|
|
501
|
+
id = format("<id>,%s", cloudamqp_instance.instance.id)
|
|
502
|
+
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
Or use Terraform CLI:
|
|
459
506
|
|
|
460
507
|
```sh
|
|
461
508
|
$ pulumi import cloudamqp:index/notification:Notification recipient <id>,<instance_id>`
|
|
462
509
|
```
|
|
463
510
|
|
|
511
|
+
[CloudAMQP API list recipients]: https://docs.cloudamqp.com/cloudamqp_api.html#list-recipients
|
|
512
|
+
|
|
464
513
|
:param str resource_name: The name of the resource.
|
|
465
514
|
: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).
|
|
515
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
516
|
+
:param pulumi.Input[builtins.str] name: Name of the responder
|
|
517
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
469
518
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationResponderArgs', 'NotificationResponderArgsDict']]]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
470
519
|
consists of the field documented below.
|
|
471
520
|
|
|
472
521
|
___
|
|
473
522
|
|
|
523
|
+
The options parameter:
|
|
524
|
+
|
|
525
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
526
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
527
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
528
|
+
to use the generated dedup key.
|
|
529
|
+
|
|
530
|
+
___
|
|
531
|
+
|
|
474
532
|
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.
|
|
533
|
+
:param pulumi.Input[builtins.str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
534
|
+
:param pulumi.Input[builtins.str] value: Integration/API key or endpoint to send the notification.
|
|
477
535
|
"""
|
|
478
536
|
...
|
|
479
537
|
@overload
|
|
@@ -650,7 +708,7 @@ class Notification(pulumi.CustomResource):
|
|
|
650
708
|
|
|
651
709
|
</details>
|
|
652
710
|
|
|
653
|
-
## Notification
|
|
711
|
+
## Notification type reference
|
|
654
712
|
|
|
655
713
|
Valid options for notification type.
|
|
656
714
|
|
|
@@ -664,29 +722,38 @@ class Notification(pulumi.CustomResource):
|
|
|
664
722
|
* victorops
|
|
665
723
|
* webhook
|
|
666
724
|
|
|
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
725
|
## Dependency
|
|
675
726
|
|
|
676
727
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
677
728
|
|
|
678
729
|
## Import
|
|
679
730
|
|
|
680
|
-
`cloudamqp_notification` can be imported using
|
|
731
|
+
`cloudamqp_notification` can be imported using the resource identifier together with CloudAMQP
|
|
732
|
+
|
|
733
|
+
instance identifier (CSV separated). To retrieve the resource identifier, use
|
|
734
|
+
|
|
735
|
+
[CloudAMQP API list recipients].
|
|
736
|
+
|
|
737
|
+
From Terraform v1.5.0, the `import` block can be used to import this resource:
|
|
738
|
+
|
|
739
|
+
hcl
|
|
681
740
|
|
|
682
|
-
|
|
741
|
+
import {
|
|
683
742
|
|
|
684
|
-
|
|
743
|
+
to = cloudamqp_notification.recipient
|
|
744
|
+
|
|
745
|
+
id = format("<id>,%s", cloudamqp_instance.instance.id)
|
|
746
|
+
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
Or use Terraform CLI:
|
|
685
750
|
|
|
686
751
|
```sh
|
|
687
752
|
$ pulumi import cloudamqp:index/notification:Notification recipient <id>,<instance_id>`
|
|
688
753
|
```
|
|
689
754
|
|
|
755
|
+
[CloudAMQP API list recipients]: https://docs.cloudamqp.com/cloudamqp_api.html#list-recipients
|
|
756
|
+
|
|
690
757
|
:param str resource_name: The name of the resource.
|
|
691
758
|
:param NotificationArgs args: The arguments to use to populate this resource's properties.
|
|
692
759
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -702,12 +769,12 @@ class Notification(pulumi.CustomResource):
|
|
|
702
769
|
def _internal_init(__self__,
|
|
703
770
|
resource_name: str,
|
|
704
771
|
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,
|
|
772
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
773
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
774
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
708
775
|
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,
|
|
776
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
777
|
+
value: Optional[pulumi.Input[builtins.str]] = None,
|
|
711
778
|
__props__=None):
|
|
712
779
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
713
780
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -739,12 +806,12 @@ class Notification(pulumi.CustomResource):
|
|
|
739
806
|
def get(resource_name: str,
|
|
740
807
|
id: pulumi.Input[str],
|
|
741
808
|
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,
|
|
809
|
+
instance_id: Optional[pulumi.Input[builtins.int]] = None,
|
|
810
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
811
|
+
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
|
745
812
|
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':
|
|
813
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
814
|
+
value: Optional[pulumi.Input[builtins.str]] = None) -> 'Notification':
|
|
748
815
|
"""
|
|
749
816
|
Get an existing Notification resource's state with the given name, id, and optional extra
|
|
750
817
|
properties used to qualify the lookup.
|
|
@@ -752,17 +819,26 @@ class Notification(pulumi.CustomResource):
|
|
|
752
819
|
:param str resource_name: The unique name of the resulting resource.
|
|
753
820
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
754
821
|
: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).
|
|
822
|
+
:param pulumi.Input[builtins.int] instance_id: The CloudAMQP instance ID.
|
|
823
|
+
:param pulumi.Input[builtins.str] name: Name of the responder
|
|
824
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] options: Options argument (e.g. `rk` used for VictorOps routing key).
|
|
758
825
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NotificationResponderArgs', 'NotificationResponderArgsDict']]]] responders: An array of reponders (only for OpsGenie). Each `responders` block
|
|
759
826
|
consists of the field documented below.
|
|
760
827
|
|
|
761
828
|
___
|
|
762
829
|
|
|
830
|
+
The options parameter:
|
|
831
|
+
|
|
832
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
833
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
834
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
835
|
+
to use the generated dedup key.
|
|
836
|
+
|
|
837
|
+
___
|
|
838
|
+
|
|
763
839
|
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.
|
|
840
|
+
:param pulumi.Input[builtins.str] type: Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
841
|
+
:param pulumi.Input[builtins.str] value: Integration/API key or endpoint to send the notification.
|
|
766
842
|
"""
|
|
767
843
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
768
844
|
|
|
@@ -778,7 +854,7 @@ class Notification(pulumi.CustomResource):
|
|
|
778
854
|
|
|
779
855
|
@property
|
|
780
856
|
@pulumi.getter(name="instanceId")
|
|
781
|
-
def instance_id(self) -> pulumi.Output[int]:
|
|
857
|
+
def instance_id(self) -> pulumi.Output[builtins.int]:
|
|
782
858
|
"""
|
|
783
859
|
The CloudAMQP instance ID.
|
|
784
860
|
"""
|
|
@@ -786,7 +862,7 @@ class Notification(pulumi.CustomResource):
|
|
|
786
862
|
|
|
787
863
|
@property
|
|
788
864
|
@pulumi.getter
|
|
789
|
-
def name(self) -> pulumi.Output[str]:
|
|
865
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
790
866
|
"""
|
|
791
867
|
Name of the responder
|
|
792
868
|
"""
|
|
@@ -794,7 +870,7 @@ class Notification(pulumi.CustomResource):
|
|
|
794
870
|
|
|
795
871
|
@property
|
|
796
872
|
@pulumi.getter
|
|
797
|
-
def options(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
873
|
+
def options(self) -> pulumi.Output[Optional[Mapping[str, builtins.str]]]:
|
|
798
874
|
"""
|
|
799
875
|
Options argument (e.g. `rk` used for VictorOps routing key).
|
|
800
876
|
"""
|
|
@@ -809,13 +885,22 @@ class Notification(pulumi.CustomResource):
|
|
|
809
885
|
|
|
810
886
|
___
|
|
811
887
|
|
|
888
|
+
The options parameter:
|
|
889
|
+
|
|
890
|
+
* rk - (Optional) Routing key to route alarm notification (can be used with Victorops).
|
|
891
|
+
* dedupkey - (Optional) If multiple alarms are triggered using a recipient with this key, only the
|
|
892
|
+
the first alarm will trigger a notification (can be used with PagerDuty). Leave blank
|
|
893
|
+
to use the generated dedup key.
|
|
894
|
+
|
|
895
|
+
___
|
|
896
|
+
|
|
812
897
|
The `responders` block consists of:
|
|
813
898
|
"""
|
|
814
899
|
return pulumi.get(self, "responders")
|
|
815
900
|
|
|
816
901
|
@property
|
|
817
902
|
@pulumi.getter
|
|
818
|
-
def type(self) -> pulumi.Output[str]:
|
|
903
|
+
def type(self) -> pulumi.Output[builtins.str]:
|
|
819
904
|
"""
|
|
820
905
|
Type of responder. [`team`, `user`, `escalation`, `schedule`]
|
|
821
906
|
"""
|
|
@@ -823,7 +908,7 @@ class Notification(pulumi.CustomResource):
|
|
|
823
908
|
|
|
824
909
|
@property
|
|
825
910
|
@pulumi.getter
|
|
826
|
-
def value(self) -> pulumi.Output[str]:
|
|
911
|
+
def value(self) -> pulumi.Output[builtins.str]:
|
|
827
912
|
"""
|
|
828
913
|
Integration/API key or endpoint to send the notification.
|
|
829
914
|
"""
|