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.

Files changed (49) hide show
  1. pulumi_cloudamqp/__init__.py +10 -0
  2. pulumi_cloudamqp/_inputs.py +92 -72
  3. pulumi_cloudamqp/account_action.py +39 -31
  4. pulumi_cloudamqp/alarm.py +229 -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 +81 -38
  9. pulumi_cloudamqp/extra_disk_size.py +172 -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_credentials.py +19 -26
  14. pulumi_cloudamqp/get_instance.py +75 -25
  15. pulumi_cloudamqp/get_nodes.py +10 -56
  16. pulumi_cloudamqp/get_notification.py +39 -41
  17. pulumi_cloudamqp/get_plugins.py +28 -54
  18. pulumi_cloudamqp/get_plugins_community.py +29 -52
  19. pulumi_cloudamqp/get_upgradable_versions.py +19 -24
  20. pulumi_cloudamqp/get_vpc_gcp_info.py +44 -138
  21. pulumi_cloudamqp/get_vpc_info.py +34 -127
  22. pulumi_cloudamqp/instance.py +557 -333
  23. pulumi_cloudamqp/integration_aws_eventbridge.py +182 -117
  24. pulumi_cloudamqp/integration_log.py +488 -402
  25. pulumi_cloudamqp/integration_metric.py +345 -296
  26. pulumi_cloudamqp/maintenance_window.py +516 -0
  27. pulumi_cloudamqp/node_actions.py +82 -59
  28. pulumi_cloudamqp/notification.py +174 -92
  29. pulumi_cloudamqp/outputs.py +216 -125
  30. pulumi_cloudamqp/plugin.py +170 -105
  31. pulumi_cloudamqp/plugin_community.py +168 -107
  32. pulumi_cloudamqp/privatelink_aws.py +140 -347
  33. pulumi_cloudamqp/privatelink_azure.py +142 -345
  34. pulumi_cloudamqp/provider.py +22 -21
  35. pulumi_cloudamqp/pulumi-plugin.json +1 -1
  36. pulumi_cloudamqp/rabbit_configuration.py +334 -210
  37. pulumi_cloudamqp/security_firewall.py +111 -57
  38. pulumi_cloudamqp/upgrade_lavinmq.py +29 -102
  39. pulumi_cloudamqp/upgrade_rabbitmq.py +53 -299
  40. pulumi_cloudamqp/vpc.py +112 -79
  41. pulumi_cloudamqp/vpc_connect.py +219 -606
  42. pulumi_cloudamqp/vpc_gcp_peering.py +227 -591
  43. pulumi_cloudamqp/vpc_peering.py +120 -105
  44. pulumi_cloudamqp/webhook.py +143 -103
  45. {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.dist-info}/METADATA +1 -1
  46. pulumi_cloudamqp-3.22.0a1744182778.dist-info/RECORD +50 -0
  47. pulumi_cloudamqp-3.21.0a1743571485.dist-info/RECORD +0 -49
  48. {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.dist-info}/WHEEL +0 -0
  49. {pulumi_cloudamqp-3.21.0a1743571485.dist-info → pulumi_cloudamqp-3.22.0a1744182778.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,86 +152,86 @@ 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
 
@@ -239,19 +240,24 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
239
240
  def __init__(__self__,
240
241
  resource_name: str,
241
242
  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,
243
+ aws_account_id: Optional[pulumi.Input[builtins.str]] = None,
244
+ aws_region: Optional[pulumi.Input[builtins.str]] = None,
245
+ instance_id: Optional[pulumi.Input[builtins.int]] = None,
246
+ queue: Optional[pulumi.Input[builtins.str]] = None,
247
+ vhost: Optional[pulumi.Input[builtins.str]] = None,
248
+ with_headers: Optional[pulumi.Input[builtins.bool]] = None,
248
249
  __props__=None):
249
250
  """
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).
251
+ This resource allows you to create and manage, an [AWS EventBridge] for a CloudAMQP instance. Once
252
+ created, continue to map the EventBridge in the [AWS Eventbridge console].
251
253
 
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).
254
+ > Our consumer needs to have exclusive usage to the configured queue and the maximum body size
255
+ allowed on msgs by AWS is 256kb. The message body has to be valid JSON for AWS Eventbridge to accept
256
+ it. If messages are too large or are not valid JSON, they will be rejected (tip: setup a dead-letter
257
+ queue to catch them).
253
258
 
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.
259
+ Not possible to update this resource. Any changes made to the argument will destroy and recreate the
260
+ resource. Hence why all arguments use ForceNew.
255
261
 
256
262
  Only available for dedicated subscription plans.
257
263
 
@@ -263,11 +269,11 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
263
269
 
264
270
  instance = cloudamqp.Instance("instance",
265
271
  name="Test instance",
266
- plan="squirrel-1",
272
+ plan="penguin-1",
267
273
  region="amazon-web-services::us-west-1",
268
274
  rmq_version="3.11.5",
269
275
  tags=["aws"])
270
- aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
276
+ this = cloudamqp.IntegrationAwsEventbridge("this",
271
277
  instance_id=instance.id,
272
278
  vhost=instance.vhost,
273
279
  queue="<QUEUE-NAME>",
@@ -276,15 +282,18 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
276
282
  with_headers=True)
277
283
  ```
278
284
 
279
- ## Argument references
285
+ ## Argument References
280
286
 
281
287
  The following arguments are supported:
282
288
 
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" } })`
289
+ * `aws_account_id` - (ForceNew/Required) The 12 digit AWS Account ID where you want the events to
290
+ be sent to.
291
+ * `aws_region` - (ForceNew/Required) The AWS region where you the events to be sent to.
292
+ (e.g. us-west-1, us-west-2, ..., etc.)
293
+ * `vhost` - (ForceNew/Required) The VHost the queue resides in.
294
+ * `queue` - (ForceNew/Required) A (durable) queue on your RabbitMQ instance.
295
+ * `with_headers` - (ForceNew/Required) Include message headers in the event data.
296
+ `({ "headers": { }, "body": { "your": "message" } })`
288
297
 
289
298
  ## Dependency
290
299
 
@@ -292,20 +301,44 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
292
301
 
293
302
  ## Import
294
303
 
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)
304
+ `cloudamqp_integration_aws_eventbridge` can be imported using the resource identifier together with
305
+
306
+ CloudAMQP instance identifier (CSV separated). To retrieve the resource identifier, use
307
+
308
+ [CloudAMQP API list eventbridges].
309
+
310
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
311
+
312
+ hcl
313
+
314
+ import {
315
+
316
+ to = cloudamqp_integration_aws_eventbridge.this
317
+
318
+ id = format("<id>,%s", cloudamqp_instance.instance.id)
319
+
320
+ }
321
+
322
+ Or with Terraform CLI:
296
323
 
297
324
  ```sh
298
- $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge aws_eventbridge <id>,<instance_id>`
325
+ $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge this <id>,<instance_id>`
299
326
  ```
300
327
 
328
+ [AWS EventBridge]: https://aws.amazon.com/eventbridge
329
+
330
+ [AWS Eventbridge console]: https://console.aws.amazon.com/events/home
331
+
332
+ [CloudAMQP API list eventbridges]: https://docs.cloudamqp.com/cloudamqp_api.html#list-eventbridges
333
+
301
334
  :param str resource_name: The name of the resource.
302
335
  :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.
336
+ :param pulumi.Input[builtins.str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
337
+ :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.)
338
+ :param pulumi.Input[builtins.int] instance_id: Instance identifier
339
+ :param pulumi.Input[builtins.str] queue: A (durable) queue on your RabbitMQ instance.
340
+ :param pulumi.Input[builtins.str] vhost: The VHost the queue resides in.
341
+ :param pulumi.Input[builtins.bool] with_headers: Include message headers in the event data.
309
342
  """
310
343
  ...
311
344
  @overload
@@ -314,11 +347,16 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
314
347
  args: IntegrationAwsEventbridgeArgs,
315
348
  opts: Optional[pulumi.ResourceOptions] = None):
316
349
  """
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).
350
+ This resource allows you to create and manage, an [AWS EventBridge] for a CloudAMQP instance. Once
351
+ created, continue to map the EventBridge in the [AWS Eventbridge console].
318
352
 
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).
353
+ > Our consumer needs to have exclusive usage to the configured queue and the maximum body size
354
+ allowed on msgs by AWS is 256kb. The message body has to be valid JSON for AWS Eventbridge to accept
355
+ it. If messages are too large or are not valid JSON, they will be rejected (tip: setup a dead-letter
356
+ queue to catch them).
320
357
 
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.
358
+ Not possible to update this resource. Any changes made to the argument will destroy and recreate the
359
+ resource. Hence why all arguments use ForceNew.
322
360
 
323
361
  Only available for dedicated subscription plans.
324
362
 
@@ -330,11 +368,11 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
330
368
 
331
369
  instance = cloudamqp.Instance("instance",
332
370
  name="Test instance",
333
- plan="squirrel-1",
371
+ plan="penguin-1",
334
372
  region="amazon-web-services::us-west-1",
335
373
  rmq_version="3.11.5",
336
374
  tags=["aws"])
337
- aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
375
+ this = cloudamqp.IntegrationAwsEventbridge("this",
338
376
  instance_id=instance.id,
339
377
  vhost=instance.vhost,
340
378
  queue="<QUEUE-NAME>",
@@ -343,15 +381,18 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
343
381
  with_headers=True)
344
382
  ```
345
383
 
346
- ## Argument references
384
+ ## Argument References
347
385
 
348
386
  The following arguments are supported:
349
387
 
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" } })`
388
+ * `aws_account_id` - (ForceNew/Required) The 12 digit AWS Account ID where you want the events to
389
+ be sent to.
390
+ * `aws_region` - (ForceNew/Required) The AWS region where you the events to be sent to.
391
+ (e.g. us-west-1, us-west-2, ..., etc.)
392
+ * `vhost` - (ForceNew/Required) The VHost the queue resides in.
393
+ * `queue` - (ForceNew/Required) A (durable) queue on your RabbitMQ instance.
394
+ * `with_headers` - (ForceNew/Required) Include message headers in the event data.
395
+ `({ "headers": { }, "body": { "your": "message" } })`
355
396
 
356
397
  ## Dependency
357
398
 
@@ -359,12 +400,36 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
359
400
 
360
401
  ## Import
361
402
 
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)
403
+ `cloudamqp_integration_aws_eventbridge` can be imported using the resource identifier together with
404
+
405
+ CloudAMQP instance identifier (CSV separated). To retrieve the resource identifier, use
406
+
407
+ [CloudAMQP API list eventbridges].
408
+
409
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
410
+
411
+ hcl
412
+
413
+ import {
414
+
415
+ to = cloudamqp_integration_aws_eventbridge.this
416
+
417
+ id = format("<id>,%s", cloudamqp_instance.instance.id)
418
+
419
+ }
420
+
421
+ Or with Terraform CLI:
363
422
 
364
423
  ```sh
365
- $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge aws_eventbridge <id>,<instance_id>`
424
+ $ pulumi import cloudamqp:index/integrationAwsEventbridge:IntegrationAwsEventbridge this <id>,<instance_id>`
366
425
  ```
367
426
 
427
+ [AWS EventBridge]: https://aws.amazon.com/eventbridge
428
+
429
+ [AWS Eventbridge console]: https://console.aws.amazon.com/events/home
430
+
431
+ [CloudAMQP API list eventbridges]: https://docs.cloudamqp.com/cloudamqp_api.html#list-eventbridges
432
+
368
433
  :param str resource_name: The name of the resource.
369
434
  :param IntegrationAwsEventbridgeArgs args: The arguments to use to populate this resource's properties.
370
435
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -380,12 +445,12 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
380
445
  def _internal_init(__self__,
381
446
  resource_name: str,
382
447
  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,
448
+ aws_account_id: Optional[pulumi.Input[builtins.str]] = None,
449
+ aws_region: Optional[pulumi.Input[builtins.str]] = None,
450
+ instance_id: Optional[pulumi.Input[builtins.int]] = None,
451
+ queue: Optional[pulumi.Input[builtins.str]] = None,
452
+ vhost: Optional[pulumi.Input[builtins.str]] = None,
453
+ with_headers: Optional[pulumi.Input[builtins.bool]] = None,
389
454
  __props__=None):
390
455
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
391
456
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -424,13 +489,13 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
424
489
  def get(resource_name: str,
425
490
  id: pulumi.Input[str],
426
491
  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':
492
+ aws_account_id: Optional[pulumi.Input[builtins.str]] = None,
493
+ aws_region: Optional[pulumi.Input[builtins.str]] = None,
494
+ instance_id: Optional[pulumi.Input[builtins.int]] = None,
495
+ queue: Optional[pulumi.Input[builtins.str]] = None,
496
+ status: Optional[pulumi.Input[builtins.str]] = None,
497
+ vhost: Optional[pulumi.Input[builtins.str]] = None,
498
+ with_headers: Optional[pulumi.Input[builtins.bool]] = None) -> 'IntegrationAwsEventbridge':
434
499
  """
435
500
  Get an existing IntegrationAwsEventbridge resource's state with the given name, id, and optional extra
436
501
  properties used to qualify the lookup.
@@ -438,13 +503,13 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
438
503
  :param str resource_name: The unique name of the resulting resource.
439
504
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
440
505
  :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.
506
+ :param pulumi.Input[builtins.str] aws_account_id: The 12 digit AWS Account ID where you want the events to be sent to.
507
+ :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.)
508
+ :param pulumi.Input[builtins.int] instance_id: Instance identifier
509
+ :param pulumi.Input[builtins.str] queue: A (durable) queue on your RabbitMQ instance.
510
+ :param pulumi.Input[builtins.str] status: Always set to null, unless there is an error starting the EventBridge.
511
+ :param pulumi.Input[builtins.str] vhost: The VHost the queue resides in.
512
+ :param pulumi.Input[builtins.bool] with_headers: Include message headers in the event data.
448
513
  """
449
514
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
450
515
 
@@ -461,7 +526,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
461
526
 
462
527
  @property
463
528
  @pulumi.getter(name="awsAccountId")
464
- def aws_account_id(self) -> pulumi.Output[str]:
529
+ def aws_account_id(self) -> pulumi.Output[builtins.str]:
465
530
  """
466
531
  The 12 digit AWS Account ID where you want the events to be sent to.
467
532
  """
@@ -469,7 +534,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
469
534
 
470
535
  @property
471
536
  @pulumi.getter(name="awsRegion")
472
- def aws_region(self) -> pulumi.Output[str]:
537
+ def aws_region(self) -> pulumi.Output[builtins.str]:
473
538
  """
474
539
  The AWS region where you the events to be sent to. (e.g. us-west-1, us-west-2, ..., etc.)
475
540
  """
@@ -477,7 +542,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
477
542
 
478
543
  @property
479
544
  @pulumi.getter(name="instanceId")
480
- def instance_id(self) -> pulumi.Output[int]:
545
+ def instance_id(self) -> pulumi.Output[builtins.int]:
481
546
  """
482
547
  Instance identifier
483
548
  """
@@ -485,7 +550,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
485
550
 
486
551
  @property
487
552
  @pulumi.getter
488
- def queue(self) -> pulumi.Output[str]:
553
+ def queue(self) -> pulumi.Output[builtins.str]:
489
554
  """
490
555
  A (durable) queue on your RabbitMQ instance.
491
556
  """
@@ -493,7 +558,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
493
558
 
494
559
  @property
495
560
  @pulumi.getter
496
- def status(self) -> pulumi.Output[str]:
561
+ def status(self) -> pulumi.Output[builtins.str]:
497
562
  """
498
563
  Always set to null, unless there is an error starting the EventBridge.
499
564
  """
@@ -501,7 +566,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
501
566
 
502
567
  @property
503
568
  @pulumi.getter
504
- def vhost(self) -> pulumi.Output[str]:
569
+ def vhost(self) -> pulumi.Output[builtins.str]:
505
570
  """
506
571
  The VHost the queue resides in.
507
572
  """
@@ -509,7 +574,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
509
574
 
510
575
  @property
511
576
  @pulumi.getter(name="withHeaders")
512
- def with_headers(self) -> pulumi.Output[bool]:
577
+ def with_headers(self) -> pulumi.Output[builtins.bool]:
513
578
  """
514
579
  Include message headers in the event data.
515
580
  """