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.

Files changed (51) hide show
  1. pulumi_cloudamqp/__init__.py +12 -0
  2. pulumi_cloudamqp/_inputs.py +92 -72
  3. pulumi_cloudamqp/account_action.py +42 -31
  4. pulumi_cloudamqp/alarm.py +232 -168
  5. pulumi_cloudamqp/config/__init__.py +1 -0
  6. pulumi_cloudamqp/config/__init__.pyi +1 -0
  7. pulumi_cloudamqp/config/vars.py +1 -0
  8. pulumi_cloudamqp/custom_domain.py +84 -38
  9. pulumi_cloudamqp/extra_disk_size.py +175 -155
  10. pulumi_cloudamqp/get_account.py +10 -3
  11. pulumi_cloudamqp/get_account_vpcs.py +15 -41
  12. pulumi_cloudamqp/get_alarm.py +74 -67
  13. pulumi_cloudamqp/get_alarms.py +165 -0
  14. pulumi_cloudamqp/get_credentials.py +19 -26
  15. pulumi_cloudamqp/get_instance.py +75 -25
  16. pulumi_cloudamqp/get_nodes.py +10 -56
  17. pulumi_cloudamqp/get_notification.py +39 -41
  18. pulumi_cloudamqp/get_notifications.py +135 -0
  19. pulumi_cloudamqp/get_plugins.py +28 -54
  20. pulumi_cloudamqp/get_plugins_community.py +29 -52
  21. pulumi_cloudamqp/get_upgradable_versions.py +19 -24
  22. pulumi_cloudamqp/get_vpc_gcp_info.py +44 -138
  23. pulumi_cloudamqp/get_vpc_info.py +34 -127
  24. pulumi_cloudamqp/instance.py +560 -333
  25. pulumi_cloudamqp/integration_aws_eventbridge.py +185 -117
  26. pulumi_cloudamqp/integration_log.py +491 -402
  27. pulumi_cloudamqp/integration_metric.py +348 -296
  28. pulumi_cloudamqp/maintenance_window.py +519 -0
  29. pulumi_cloudamqp/node_actions.py +85 -59
  30. pulumi_cloudamqp/notification.py +177 -92
  31. pulumi_cloudamqp/outputs.py +419 -125
  32. pulumi_cloudamqp/plugin.py +173 -105
  33. pulumi_cloudamqp/plugin_community.py +171 -107
  34. pulumi_cloudamqp/privatelink_aws.py +143 -347
  35. pulumi_cloudamqp/privatelink_azure.py +145 -345
  36. pulumi_cloudamqp/provider.py +25 -21
  37. pulumi_cloudamqp/pulumi-plugin.json +1 -1
  38. pulumi_cloudamqp/rabbit_configuration.py +337 -210
  39. pulumi_cloudamqp/security_firewall.py +114 -57
  40. pulumi_cloudamqp/upgrade_lavinmq.py +32 -102
  41. pulumi_cloudamqp/upgrade_rabbitmq.py +56 -299
  42. pulumi_cloudamqp/vpc.py +115 -79
  43. pulumi_cloudamqp/vpc_connect.py +222 -606
  44. pulumi_cloudamqp/vpc_gcp_peering.py +230 -591
  45. pulumi_cloudamqp/vpc_peering.py +123 -105
  46. pulumi_cloudamqp/webhook.py +146 -103
  47. {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0.dist-info}/METADATA +1 -1
  48. pulumi_cloudamqp-3.22.0.dist-info/RECORD +52 -0
  49. {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0.dist-info}/WHEEL +1 -1
  50. pulumi_cloudamqp-3.21.0a1743571485.dist-info/RECORD +0 -49
  51. {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0.dist-info}/top_level.txt +0 -0
@@ -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
@@ -19,20 +20,20 @@ __all__ = ['IntegrationAwsEventbridgeArgs', 'IntegrationAwsEventbridge']
19
20
  @pulumi.input_type
20
21
  class IntegrationAwsEventbridgeArgs:
21
22
  def __init__(__self__, *,
22
- aws_account_id: pulumi.Input[str],
23
- aws_region: pulumi.Input[str],
24
- instance_id: pulumi.Input[int],
25
- queue: pulumi.Input[str],
26
- vhost: pulumi.Input[str],
27
- with_headers: pulumi.Input[bool]):
23
+ aws_account_id: pulumi.Input[builtins.str],
24
+ aws_region: pulumi.Input[builtins.str],
25
+ instance_id: pulumi.Input[builtins.int],
26
+ queue: pulumi.Input[builtins.str],
27
+ vhost: pulumi.Input[builtins.str],
28
+ with_headers: pulumi.Input[builtins.bool]):
28
29
  """
29
30
  The set of arguments for constructing a IntegrationAwsEventbridge resource.
30
- :param pulumi.Input[str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
31
- :param pulumi.Input[str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
32
- :param pulumi.Input[int] instance_id: Instance identifier
33
- :param pulumi.Input[str] queue: A (durable) queue on your RabbitMQ instance.
34
- :param pulumi.Input[str] vhost: The VHost the queue resides in.
35
- :param pulumi.Input[bool] with_headers: Include message headers in the event data.
31
+ :param pulumi.Input[builtins.str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
32
+ :param pulumi.Input[builtins.str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
33
+ :param pulumi.Input[builtins.int] instance_id: Instance identifier
34
+ :param pulumi.Input[builtins.str] queue: A (durable) queue on your RabbitMQ instance.
35
+ :param pulumi.Input[builtins.str] vhost: The VHost the queue resides in.
36
+ :param pulumi.Input[builtins.bool] with_headers: Include message headers in the event data.
36
37
  """
37
38
  pulumi.set(__self__, "aws_account_id", aws_account_id)
38
39
  pulumi.set(__self__, "aws_region", aws_region)
@@ -43,96 +44,96 @@ class IntegrationAwsEventbridgeArgs:
43
44
 
44
45
  @property
45
46
  @pulumi.getter(name="awsAccountId")
46
- def aws_account_id(self) -> pulumi.Input[str]:
47
+ def aws_account_id(self) -> pulumi.Input[builtins.str]:
47
48
  """
48
49
  The 12 digit AWS Account ID where you want the events to be sent to.
49
50
  """
50
51
  return pulumi.get(self, "aws_account_id")
51
52
 
52
53
  @aws_account_id.setter
53
- def aws_account_id(self, value: pulumi.Input[str]):
54
+ def aws_account_id(self, value: pulumi.Input[builtins.str]):
54
55
  pulumi.set(self, "aws_account_id", value)
55
56
 
56
57
  @property
57
58
  @pulumi.getter(name="awsRegion")
58
- def aws_region(self) -> pulumi.Input[str]:
59
+ def aws_region(self) -> pulumi.Input[builtins.str]:
59
60
  """
60
61
  The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
61
62
  """
62
63
  return pulumi.get(self, "aws_region")
63
64
 
64
65
  @aws_region.setter
65
- def aws_region(self, value: pulumi.Input[str]):
66
+ def aws_region(self, value: pulumi.Input[builtins.str]):
66
67
  pulumi.set(self, "aws_region", value)
67
68
 
68
69
  @property
69
70
  @pulumi.getter(name="instanceId")
70
- def instance_id(self) -> pulumi.Input[int]:
71
+ def instance_id(self) -> pulumi.Input[builtins.int]:
71
72
  """
72
73
  Instance identifier
73
74
  """
74
75
  return pulumi.get(self, "instance_id")
75
76
 
76
77
  @instance_id.setter
77
- def instance_id(self, value: pulumi.Input[int]):
78
+ def instance_id(self, value: pulumi.Input[builtins.int]):
78
79
  pulumi.set(self, "instance_id", value)
79
80
 
80
81
  @property
81
82
  @pulumi.getter
82
- def queue(self) -> pulumi.Input[str]:
83
+ def queue(self) -> pulumi.Input[builtins.str]:
83
84
  """
84
85
  A (durable) queue on your RabbitMQ instance.
85
86
  """
86
87
  return pulumi.get(self, "queue")
87
88
 
88
89
  @queue.setter
89
- def queue(self, value: pulumi.Input[str]):
90
+ def queue(self, value: pulumi.Input[builtins.str]):
90
91
  pulumi.set(self, "queue", value)
91
92
 
92
93
  @property
93
94
  @pulumi.getter
94
- def vhost(self) -> pulumi.Input[str]:
95
+ def vhost(self) -> pulumi.Input[builtins.str]:
95
96
  """
96
97
  The VHost the queue resides in.
97
98
  """
98
99
  return pulumi.get(self, "vhost")
99
100
 
100
101
  @vhost.setter
101
- def vhost(self, value: pulumi.Input[str]):
102
+ def vhost(self, value: pulumi.Input[builtins.str]):
102
103
  pulumi.set(self, "vhost", value)
103
104
 
104
105
  @property
105
106
  @pulumi.getter(name="withHeaders")
106
- def with_headers(self) -> pulumi.Input[bool]:
107
+ def with_headers(self) -> pulumi.Input[builtins.bool]:
107
108
  """
108
109
  Include message headers in the event data.
109
110
  """
110
111
  return pulumi.get(self, "with_headers")
111
112
 
112
113
  @with_headers.setter
113
- def with_headers(self, value: pulumi.Input[bool]):
114
+ def with_headers(self, value: pulumi.Input[builtins.bool]):
114
115
  pulumi.set(self, "with_headers", value)
115
116
 
116
117
 
117
118
  @pulumi.input_type
118
119
  class _IntegrationAwsEventbridgeState:
119
120
  def __init__(__self__, *,
120
- aws_account_id: Optional[pulumi.Input[str]] = None,
121
- aws_region: Optional[pulumi.Input[str]] = None,
122
- instance_id: Optional[pulumi.Input[int]] = None,
123
- queue: Optional[pulumi.Input[str]] = None,
124
- status: Optional[pulumi.Input[str]] = None,
125
- vhost: Optional[pulumi.Input[str]] = None,
126
- with_headers: Optional[pulumi.Input[bool]] = None):
121
+ aws_account_id: Optional[pulumi.Input[builtins.str]] = None,
122
+ aws_region: Optional[pulumi.Input[builtins.str]] = None,
123
+ instance_id: Optional[pulumi.Input[builtins.int]] = None,
124
+ queue: Optional[pulumi.Input[builtins.str]] = None,
125
+ status: Optional[pulumi.Input[builtins.str]] = None,
126
+ vhost: Optional[pulumi.Input[builtins.str]] = None,
127
+ with_headers: Optional[pulumi.Input[builtins.bool]] = None):
127
128
  """
128
129
  Input properties used for looking up and filtering IntegrationAwsEventbridge resources.
129
- :param pulumi.Input[str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
130
- :param pulumi.Input[str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
131
- :param pulumi.Input[int] instance_id: Instance identifier
132
- :param pulumi.Input[str] queue: A (durable) queue on your RabbitMQ instance.
133
- :param pulumi.Input[str] status: Always set to null, unless there is an error starting the EventBridge.
134
- :param pulumi.Input[str] vhost: The VHost the queue resides in.
135
- :param pulumi.Input[bool] with_headers: Include message headers in the event data.
130
+ :param pulumi.Input[builtins.str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
131
+ :param pulumi.Input[builtins.str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
132
+ :param pulumi.Input[builtins.int] instance_id: Instance identifier
133
+ :param pulumi.Input[builtins.str] queue: A (durable) queue on your RabbitMQ instance.
134
+ :param pulumi.Input[builtins.str] status: Always set to null, unless there is an error starting the EventBridge.
135
+ :param pulumi.Input[builtins.str] vhost: The VHost the queue resides in.
136
+ :param pulumi.Input[builtins.bool] with_headers: Include message headers in the event data.
136
137
  """
137
138
  if aws_account_id is not None:
138
139
  pulumi.set(__self__, "aws_account_id", aws_account_id)
@@ -151,107 +152,115 @@ class _IntegrationAwsEventbridgeState:
151
152
 
152
153
  @property
153
154
  @pulumi.getter(name="awsAccountId")
154
- def aws_account_id(self) -> Optional[pulumi.Input[str]]:
155
+ def aws_account_id(self) -> Optional[pulumi.Input[builtins.str]]:
155
156
  """
156
157
  The 12 digit AWS Account ID where you want the events to be sent to.
157
158
  """
158
159
  return pulumi.get(self, "aws_account_id")
159
160
 
160
161
  @aws_account_id.setter
161
- def aws_account_id(self, value: Optional[pulumi.Input[str]]):
162
+ def aws_account_id(self, value: Optional[pulumi.Input[builtins.str]]):
162
163
  pulumi.set(self, "aws_account_id", value)
163
164
 
164
165
  @property
165
166
  @pulumi.getter(name="awsRegion")
166
- def aws_region(self) -> Optional[pulumi.Input[str]]:
167
+ def aws_region(self) -> Optional[pulumi.Input[builtins.str]]:
167
168
  """
168
169
  The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
169
170
  """
170
171
  return pulumi.get(self, "aws_region")
171
172
 
172
173
  @aws_region.setter
173
- def aws_region(self, value: Optional[pulumi.Input[str]]):
174
+ def aws_region(self, value: Optional[pulumi.Input[builtins.str]]):
174
175
  pulumi.set(self, "aws_region", value)
175
176
 
176
177
  @property
177
178
  @pulumi.getter(name="instanceId")
178
- def instance_id(self) -> Optional[pulumi.Input[int]]:
179
+ def instance_id(self) -> Optional[pulumi.Input[builtins.int]]:
179
180
  """
180
181
  Instance identifier
181
182
  """
182
183
  return pulumi.get(self, "instance_id")
183
184
 
184
185
  @instance_id.setter
185
- def instance_id(self, value: Optional[pulumi.Input[int]]):
186
+ def instance_id(self, value: Optional[pulumi.Input[builtins.int]]):
186
187
  pulumi.set(self, "instance_id", value)
187
188
 
188
189
  @property
189
190
  @pulumi.getter
190
- def queue(self) -> Optional[pulumi.Input[str]]:
191
+ def queue(self) -> Optional[pulumi.Input[builtins.str]]:
191
192
  """
192
193
  A (durable) queue on your RabbitMQ instance.
193
194
  """
194
195
  return pulumi.get(self, "queue")
195
196
 
196
197
  @queue.setter
197
- def queue(self, value: Optional[pulumi.Input[str]]):
198
+ def queue(self, value: Optional[pulumi.Input[builtins.str]]):
198
199
  pulumi.set(self, "queue", value)
199
200
 
200
201
  @property
201
202
  @pulumi.getter
202
- def status(self) -> Optional[pulumi.Input[str]]:
203
+ def status(self) -> Optional[pulumi.Input[builtins.str]]:
203
204
  """
204
205
  Always set to null, unless there is an error starting the EventBridge.
205
206
  """
206
207
  return pulumi.get(self, "status")
207
208
 
208
209
  @status.setter
209
- def status(self, value: Optional[pulumi.Input[str]]):
210
+ def status(self, value: Optional[pulumi.Input[builtins.str]]):
210
211
  pulumi.set(self, "status", value)
211
212
 
212
213
  @property
213
214
  @pulumi.getter
214
- def vhost(self) -> Optional[pulumi.Input[str]]:
215
+ def vhost(self) -> Optional[pulumi.Input[builtins.str]]:
215
216
  """
216
217
  The VHost the queue resides in.
217
218
  """
218
219
  return pulumi.get(self, "vhost")
219
220
 
220
221
  @vhost.setter
221
- def vhost(self, value: Optional[pulumi.Input[str]]):
222
+ def vhost(self, value: Optional[pulumi.Input[builtins.str]]):
222
223
  pulumi.set(self, "vhost", value)
223
224
 
224
225
  @property
225
226
  @pulumi.getter(name="withHeaders")
226
- def with_headers(self) -> Optional[pulumi.Input[bool]]:
227
+ def with_headers(self) -> Optional[pulumi.Input[builtins.bool]]:
227
228
  """
228
229
  Include message headers in the event data.
229
230
  """
230
231
  return pulumi.get(self, "with_headers")
231
232
 
232
233
  @with_headers.setter
233
- def with_headers(self, value: Optional[pulumi.Input[bool]]):
234
+ def with_headers(self, value: Optional[pulumi.Input[builtins.bool]]):
234
235
  pulumi.set(self, "with_headers", value)
235
236
 
236
237
 
237
238
  class IntegrationAwsEventbridge(pulumi.CustomResource):
239
+
240
+ pulumi_type = "cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge"
241
+
238
242
  @overload
239
243
  def __init__(__self__,
240
244
  resource_name: str,
241
245
  opts: Optional[pulumi.ResourceOptions] = None,
242
- aws_account_id: Optional[pulumi.Input[str]] = None,
243
- aws_region: Optional[pulumi.Input[str]] = None,
244
- instance_id: Optional[pulumi.Input[int]] = None,
245
- queue: Optional[pulumi.Input[str]] = None,
246
- vhost: Optional[pulumi.Input[str]] = None,
247
- with_headers: Optional[pulumi.Input[bool]] = None,
246
+ aws_account_id: Optional[pulumi.Input[builtins.str]] = None,
247
+ aws_region: Optional[pulumi.Input[builtins.str]] = None,
248
+ instance_id: Optional[pulumi.Input[builtins.int]] = None,
249
+ queue: Optional[pulumi.Input[builtins.str]] = None,
250
+ vhost: Optional[pulumi.Input[builtins.str]] = None,
251
+ with_headers: Optional[pulumi.Input[builtins.bool]] = None,
248
252
  __props__=None):
249
253
  """
250
- This resource allows you to create and manage, an [AWS EventBridge](https://aws.amazon.com/eventbridge/) for a CloudAMQP instance. Once created, continue to map the EventBridge in the [AWS Eventbridge console](https://console.aws.amazon.com/events/home).
254
+ This resource allows you to create and manage, an [AWS EventBridge] for a CloudAMQP instance. Once
255
+ created, continue to map the EventBridge in the [AWS Eventbridge console].
251
256
 
252
- > Our consumer needs to have exclusive usage to the configured queue and the maximum body size allowed on msgs by AWS is 256kb. The message body has to be valid JSON for AWS Eventbridge to accept it. If messages are too large or are not valid JSON, they will be rejected (tip: setup a dead-letter queue to catch them).
257
+ > Our consumer needs to have exclusive usage to the configured queue and the maximum body size
258
+ allowed on msgs by AWS is 256kb. The message body has to be valid JSON for AWS Eventbridge to accept
259
+ it. If messages are too large or are not valid JSON, they will be rejected (tip: setup a dead-letter
260
+ queue to catch them).
253
261
 
254
- Not possible to update this resource. Any changes made to the argument will destroy and recreate the resource. Hence why all arguments use ForceNew.
262
+ Not possible to update this resource. Any changes made to the argument will destroy and recreate the
263
+ resource. Hence why all arguments use ForceNew.
255
264
 
256
265
  Only available for dedicated subscription plans.
257
266
 
@@ -263,11 +272,11 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
263
272
 
264
273
  instance = cloudamqp.Instance("instance",
265
274
  name="Test instance",
266
- plan="squirrel-1",
275
+ plan="penguin-1",
267
276
  region="amazon-web-services::us-west-1",
268
277
  rmq_version="3.11.5",
269
278
  tags=["aws"])
270
- aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
279
+ this = cloudamqp.IntegrationAwsEventbridge("this",
271
280
  instance_id=instance.id,
272
281
  vhost=instance.vhost,
273
282
  queue="<QUEUE-NAME>",
@@ -276,15 +285,18 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
276
285
  with_headers=True)
277
286
  ```
278
287
 
279
- ## Argument references
288
+ ## Argument References
280
289
 
281
290
  The following arguments are supported:
282
291
 
283
- * `aws_account_id` - (ForceNew/Required) The 12 digit AWS Account ID where you want the events to be sent to.
284
- * `aws_region`- (ForceNew/Required) The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
285
- * `vhost`- (ForceNew/Required) The VHost the queue resides in.
286
- * `queue` - (ForceNew/Required) A (durable) queue on your RabbitMQ instance.
287
- * `with_headers` - (ForceNew/Required) Include message headers in the event data. `({ "headers": { }, "body": { "your": "message" } })`
292
+ * `aws_account_id` - (ForceNew/Required) The 12 digit AWS Account ID where you want the events to
293
+ be sent to.
294
+ * `aws_region` - (ForceNew/Required) The AWS region where you the events to be sent to.
295
+ (e.g. us-west-1, us-west-2, ..., etc.)
296
+ * `vhost` - (ForceNew/Required) The VHost the queue resides in.
297
+ * `queue` - (ForceNew/Required) A (durable) queue on your RabbitMQ instance.
298
+ * `with_headers` - (ForceNew/Required) Include message headers in the event data.
299
+ `({ "headers": { }, "body": { "your": "message" } })`
288
300
 
289
301
  ## Dependency
290
302
 
@@ -292,20 +304,44 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
292
304
 
293
305
  ## Import
294
306
 
295
- `cloudamqp_integration_aws_eventbridge` can be imported using CloudAMQP internal identifier of the AWS EventBridge together (CSV separated) with the instance identifier. To retrieve the AWS EventBridge identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-eventbridges)
307
+ `cloudamqp_integration_aws_eventbridge` can be imported using the resource identifier together with
308
+
309
+ CloudAMQP instance identifier (CSV separated). To retrieve the resource identifier, use
310
+
311
+ [CloudAMQP API list eventbridges].
312
+
313
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
314
+
315
+ hcl
316
+
317
+ import {
318
+
319
+ to = cloudamqp_integration_aws_eventbridge.this
320
+
321
+ id = format("<id>,%s", cloudamqp_instance.instance.id)
322
+
323
+ }
324
+
325
+ Or with Terraform CLI:
296
326
 
297
327
  ```sh
298
- $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge aws_eventbridge <id>,<instance_id>`
328
+ $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge this <id>,<instance_id>`
299
329
  ```
300
330
 
331
+ [AWS EventBridge]: https://aws.amazon.com/eventbridge
332
+
333
+ [AWS Eventbridge console]: https://console.aws.amazon.com/events/home
334
+
335
+ [CloudAMQP API list eventbridges]: https://docs.cloudamqp.com/cloudamqp_api.html#list-eventbridges
336
+
301
337
  :param str resource_name: The name of the resource.
302
338
  :param pulumi.ResourceOptions opts: Options for the resource.
303
- :param pulumi.Input[str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
304
- :param pulumi.Input[str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
305
- :param pulumi.Input[int] instance_id: Instance identifier
306
- :param pulumi.Input[str] queue: A (durable) queue on your RabbitMQ instance.
307
- :param pulumi.Input[str] vhost: The VHost the queue resides in.
308
- :param pulumi.Input[bool] with_headers: Include message headers in the event data.
339
+ :param pulumi.Input[builtins.str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
340
+ :param pulumi.Input[builtins.str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
341
+ :param pulumi.Input[builtins.int] instance_id: Instance identifier
342
+ :param pulumi.Input[builtins.str] queue: A (durable) queue on your RabbitMQ instance.
343
+ :param pulumi.Input[builtins.str] vhost: The VHost the queue resides in.
344
+ :param pulumi.Input[builtins.bool] with_headers: Include message headers in the event data.
309
345
  """
310
346
  ...
311
347
  @overload
@@ -314,11 +350,16 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
314
350
  args: IntegrationAwsEventbridgeArgs,
315
351
  opts: Optional[pulumi.ResourceOptions] = None):
316
352
  """
317
- This resource allows you to create and manage, an [AWS EventBridge](https://aws.amazon.com/eventbridge/) for a CloudAMQP instance. Once created, continue to map the EventBridge in the [AWS Eventbridge console](https://console.aws.amazon.com/events/home).
353
+ This resource allows you to create and manage, an [AWS EventBridge] for a CloudAMQP instance. Once
354
+ created, continue to map the EventBridge in the [AWS Eventbridge console].
318
355
 
319
- > Our consumer needs to have exclusive usage to the configured queue and the maximum body size allowed on msgs by AWS is 256kb. The message body has to be valid JSON for AWS Eventbridge to accept it. If messages are too large or are not valid JSON, they will be rejected (tip: setup a dead-letter queue to catch them).
356
+ > Our consumer needs to have exclusive usage to the configured queue and the maximum body size
357
+ allowed on msgs by AWS is 256kb. The message body has to be valid JSON for AWS Eventbridge to accept
358
+ it. If messages are too large or are not valid JSON, they will be rejected (tip: setup a dead-letter
359
+ queue to catch them).
320
360
 
321
- Not possible to update this resource. Any changes made to the argument will destroy and recreate the resource. Hence why all arguments use ForceNew.
361
+ Not possible to update this resource. Any changes made to the argument will destroy and recreate the
362
+ resource. Hence why all arguments use ForceNew.
322
363
 
323
364
  Only available for dedicated subscription plans.
324
365
 
@@ -330,11 +371,11 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
330
371
 
331
372
  instance = cloudamqp.Instance("instance",
332
373
  name="Test instance",
333
- plan="squirrel-1",
374
+ plan="penguin-1",
334
375
  region="amazon-web-services::us-west-1",
335
376
  rmq_version="3.11.5",
336
377
  tags=["aws"])
337
- aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
378
+ this = cloudamqp.IntegrationAwsEventbridge("this",
338
379
  instance_id=instance.id,
339
380
  vhost=instance.vhost,
340
381
  queue="<QUEUE-NAME>",
@@ -343,15 +384,18 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
343
384
  with_headers=True)
344
385
  ```
345
386
 
346
- ## Argument references
387
+ ## Argument References
347
388
 
348
389
  The following arguments are supported:
349
390
 
350
- * `aws_account_id` - (ForceNew/Required) The 12 digit AWS Account ID where you want the events to be sent to.
351
- * `aws_region`- (ForceNew/Required) The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
352
- * `vhost`- (ForceNew/Required) The VHost the queue resides in.
353
- * `queue` - (ForceNew/Required) A (durable) queue on your RabbitMQ instance.
354
- * `with_headers` - (ForceNew/Required) Include message headers in the event data. `({ "headers": { }, "body": { "your": "message" } })`
391
+ * `aws_account_id` - (ForceNew/Required) The 12 digit AWS Account ID where you want the events to
392
+ be sent to.
393
+ * `aws_region` - (ForceNew/Required) The AWS region where you the events to be sent to.
394
+ (e.g. us-west-1, us-west-2, ..., etc.)
395
+ * `vhost` - (ForceNew/Required) The VHost the queue resides in.
396
+ * `queue` - (ForceNew/Required) A (durable) queue on your RabbitMQ instance.
397
+ * `with_headers` - (ForceNew/Required) Include message headers in the event data.
398
+ `({ "headers": { }, "body": { "your": "message" } })`
355
399
 
356
400
  ## Dependency
357
401
 
@@ -359,12 +403,36 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
359
403
 
360
404
  ## Import
361
405
 
362
- `cloudamqp_integration_aws_eventbridge` can be imported using CloudAMQP internal identifier of the AWS EventBridge together (CSV separated) with the instance identifier. To retrieve the AWS EventBridge identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-eventbridges)
406
+ `cloudamqp_integration_aws_eventbridge` can be imported using the resource identifier together with
407
+
408
+ CloudAMQP instance identifier (CSV separated). To retrieve the resource identifier, use
409
+
410
+ [CloudAMQP API list eventbridges].
411
+
412
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
413
+
414
+ hcl
415
+
416
+ import {
417
+
418
+ to = cloudamqp_integration_aws_eventbridge.this
419
+
420
+ id = format("<id>,%s", cloudamqp_instance.instance.id)
421
+
422
+ }
423
+
424
+ Or with Terraform CLI:
363
425
 
364
426
  ```sh
365
- $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge aws_eventbridge <id>,<instance_id>`
427
+ $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge this <id>,<instance_id>`
366
428
  ```
367
429
 
430
+ [AWS EventBridge]: https://aws.amazon.com/eventbridge
431
+
432
+ [AWS Eventbridge console]: https://console.aws.amazon.com/events/home
433
+
434
+ [CloudAMQP API list eventbridges]: https://docs.cloudamqp.com/cloudamqp_api.html#list-eventbridges
435
+
368
436
  :param str resource_name: The name of the resource.
369
437
  :param IntegrationAwsEventbridgeArgs args: The arguments to use to populate this resource's properties.
370
438
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -380,12 +448,12 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
380
448
  def _internal_init(__self__,
381
449
  resource_name: str,
382
450
  opts: Optional[pulumi.ResourceOptions] = None,
383
- aws_account_id: Optional[pulumi.Input[str]] = None,
384
- aws_region: Optional[pulumi.Input[str]] = None,
385
- instance_id: Optional[pulumi.Input[int]] = None,
386
- queue: Optional[pulumi.Input[str]] = None,
387
- vhost: Optional[pulumi.Input[str]] = None,
388
- with_headers: Optional[pulumi.Input[bool]] = None,
451
+ aws_account_id: Optional[pulumi.Input[builtins.str]] = None,
452
+ aws_region: Optional[pulumi.Input[builtins.str]] = None,
453
+ instance_id: Optional[pulumi.Input[builtins.int]] = None,
454
+ queue: Optional[pulumi.Input[builtins.str]] = None,
455
+ vhost: Optional[pulumi.Input[builtins.str]] = None,
456
+ with_headers: Optional[pulumi.Input[builtins.bool]] = None,
389
457
  __props__=None):
390
458
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
391
459
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -424,13 +492,13 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
424
492
  def get(resource_name: str,
425
493
  id: pulumi.Input[str],
426
494
  opts: Optional[pulumi.ResourceOptions] = None,
427
- aws_account_id: Optional[pulumi.Input[str]] = None,
428
- aws_region: Optional[pulumi.Input[str]] = None,
429
- instance_id: Optional[pulumi.Input[int]] = None,
430
- queue: Optional[pulumi.Input[str]] = None,
431
- status: Optional[pulumi.Input[str]] = None,
432
- vhost: Optional[pulumi.Input[str]] = None,
433
- with_headers: Optional[pulumi.Input[bool]] = None) -> 'IntegrationAwsEventbridge':
495
+ aws_account_id: Optional[pulumi.Input[builtins.str]] = None,
496
+ aws_region: Optional[pulumi.Input[builtins.str]] = None,
497
+ instance_id: Optional[pulumi.Input[builtins.int]] = None,
498
+ queue: Optional[pulumi.Input[builtins.str]] = None,
499
+ status: Optional[pulumi.Input[builtins.str]] = None,
500
+ vhost: Optional[pulumi.Input[builtins.str]] = None,
501
+ with_headers: Optional[pulumi.Input[builtins.bool]] = None) -> 'IntegrationAwsEventbridge':
434
502
  """
435
503
  Get an existing IntegrationAwsEventbridge resource's state with the given name, id, and optional extra
436
504
  properties used to qualify the lookup.
@@ -438,13 +506,13 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
438
506
  :param str resource_name: The unique name of the resulting resource.
439
507
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
440
508
  :param pulumi.ResourceOptions opts: Options for the resource.
441
- :param pulumi.Input[str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
442
- :param pulumi.Input[str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
443
- :param pulumi.Input[int] instance_id: Instance identifier
444
- :param pulumi.Input[str] queue: A (durable) queue on your RabbitMQ instance.
445
- :param pulumi.Input[str] status: Always set to null, unless there is an error starting the EventBridge.
446
- :param pulumi.Input[str] vhost: The VHost the queue resides in.
447
- :param pulumi.Input[bool] with_headers: Include message headers in the event data.
509
+ :param pulumi.Input[builtins.str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
510
+ :param pulumi.Input[builtins.str] aws_region: The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
511
+ :param pulumi.Input[builtins.int] instance_id: Instance identifier
512
+ :param pulumi.Input[builtins.str] queue: A (durable) queue on your RabbitMQ instance.
513
+ :param pulumi.Input[builtins.str] status: Always set to null, unless there is an error starting the EventBridge.
514
+ :param pulumi.Input[builtins.str] vhost: The VHost the queue resides in.
515
+ :param pulumi.Input[builtins.bool] with_headers: Include message headers in the event data.
448
516
  """
449
517
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
450
518
 
@@ -461,7 +529,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
461
529
 
462
530
  @property
463
531
  @pulumi.getter(name="awsAccountId")
464
- def aws_account_id(self) -> pulumi.Output[str]:
532
+ def aws_account_id(self) -> pulumi.Output[builtins.str]:
465
533
  """
466
534
  The 12 digit AWS Account ID where you want the events to be sent to.
467
535
  """
@@ -469,7 +537,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
469
537
 
470
538
  @property
471
539
  @pulumi.getter(name="awsRegion")
472
- def aws_region(self) -> pulumi.Output[str]:
540
+ def aws_region(self) -> pulumi.Output[builtins.str]:
473
541
  """
474
542
  The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
475
543
  """
@@ -477,7 +545,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
477
545
 
478
546
  @property
479
547
  @pulumi.getter(name="instanceId")
480
- def instance_id(self) -> pulumi.Output[int]:
548
+ def instance_id(self) -> pulumi.Output[builtins.int]:
481
549
  """
482
550
  Instance identifier
483
551
  """
@@ -485,7 +553,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
485
553
 
486
554
  @property
487
555
  @pulumi.getter
488
- def queue(self) -> pulumi.Output[str]:
556
+ def queue(self) -> pulumi.Output[builtins.str]:
489
557
  """
490
558
  A (durable) queue on your RabbitMQ instance.
491
559
  """
@@ -493,7 +561,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
493
561
 
494
562
  @property
495
563
  @pulumi.getter
496
- def status(self) -> pulumi.Output[str]:
564
+ def status(self) -> pulumi.Output[builtins.str]:
497
565
  """
498
566
  Always set to null, unless there is an error starting the EventBridge.
499
567
  """
@@ -501,7 +569,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
501
569
 
502
570
  @property
503
571
  @pulumi.getter
504
- def vhost(self) -> pulumi.Output[str]:
572
+ def vhost(self) -> pulumi.Output[builtins.str]:
505
573
  """
506
574
  The VHost the queue resides in.
507
575
  """
@@ -509,7 +577,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
509
577
 
510
578
  @property
511
579
  @pulumi.getter(name="withHeaders")
512
- def with_headers(self) -> pulumi.Output[bool]:
580
+ def with_headers(self) -> pulumi.Output[builtins.bool]:
513
581
  """
514
582
  Include message headers in the event data.
515
583
  """