pulumi-cloudamqp 3.21.0a1743485311__py3-none-any.whl → 3.21.0a1744082841__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 (45) hide show
  1. pulumi_cloudamqp/__init__.py +9 -0
  2. pulumi_cloudamqp/_inputs.py +28 -9
  3. pulumi_cloudamqp/account_action.py +14 -7
  4. pulumi_cloudamqp/alarm.py +90 -30
  5. pulumi_cloudamqp/custom_domain.py +52 -10
  6. pulumi_cloudamqp/extra_disk_size.py +117 -101
  7. pulumi_cloudamqp/get_account.py +8 -2
  8. pulumi_cloudamqp/get_account_vpcs.py +13 -40
  9. pulumi_cloudamqp/get_alarm.py +50 -44
  10. pulumi_cloudamqp/get_credentials.py +10 -18
  11. pulumi_cloudamqp/get_instance.py +51 -2
  12. pulumi_cloudamqp/get_nodes.py +3 -50
  13. pulumi_cloudamqp/get_notification.py +17 -20
  14. pulumi_cloudamqp/get_plugins.py +15 -42
  15. pulumi_cloudamqp/get_plugins_community.py +16 -40
  16. pulumi_cloudamqp/get_upgradable_versions.py +10 -16
  17. pulumi_cloudamqp/get_vpc_gcp_info.py +23 -118
  18. pulumi_cloudamqp/get_vpc_info.py +18 -112
  19. pulumi_cloudamqp/instance.py +400 -177
  20. pulumi_cloudamqp/integration_aws_eventbridge.py +90 -26
  21. pulumi_cloudamqp/integration_log.py +135 -50
  22. pulumi_cloudamqp/integration_metric.py +50 -2
  23. pulumi_cloudamqp/maintenance_window.py +515 -0
  24. pulumi_cloudamqp/node_actions.py +32 -10
  25. pulumi_cloudamqp/notification.py +103 -22
  26. pulumi_cloudamqp/outputs.py +118 -28
  27. pulumi_cloudamqp/plugin.py +89 -25
  28. pulumi_cloudamqp/plugin_community.py +87 -27
  29. pulumi_cloudamqp/privatelink_aws.py +62 -270
  30. pulumi_cloudamqp/privatelink_azure.py +64 -268
  31. pulumi_cloudamqp/pulumi-plugin.json +1 -1
  32. pulumi_cloudamqp/rabbit_configuration.py +209 -86
  33. pulumi_cloudamqp/security_firewall.py +76 -23
  34. pulumi_cloudamqp/upgrade_lavinmq.py +0 -74
  35. pulumi_cloudamqp/upgrade_rabbitmq.py +14 -261
  36. pulumi_cloudamqp/vpc.py +48 -16
  37. pulumi_cloudamqp/vpc_connect.py +111 -499
  38. pulumi_cloudamqp/vpc_gcp_peering.py +141 -506
  39. pulumi_cloudamqp/vpc_peering.py +50 -36
  40. pulumi_cloudamqp/webhook.py +48 -9
  41. {pulumi_cloudamqp-3.21.0a1743485311.dist-info → pulumi_cloudamqp-3.21.0a1744082841.dist-info}/METADATA +1 -1
  42. pulumi_cloudamqp-3.21.0a1744082841.dist-info/RECORD +50 -0
  43. pulumi_cloudamqp-3.21.0a1743485311.dist-info/RECORD +0 -49
  44. {pulumi_cloudamqp-3.21.0a1743485311.dist-info → pulumi_cloudamqp-3.21.0a1744082841.dist-info}/WHEEL +0 -0
  45. {pulumi_cloudamqp-3.21.0a1743485311.dist-info → pulumi_cloudamqp-3.21.0a1744082841.dist-info}/top_level.txt +0 -0
@@ -29,9 +29,13 @@ class PrivatelinkAzureArgs:
29
29
  See format below.
30
30
  :param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
31
31
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
32
- Default set to 10 seconds. *Available from v1.29.0*
32
+ Default set to 10 seconds.
33
+
34
+ ***Note:*** Available from [v1.29.0]
33
35
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
34
- Default set to 1800 seconds. *Available from v1.29.0*
36
+ Default set to 1800 seconds.
37
+
38
+ ***Note:*** Available from [v1.29.0]
35
39
 
36
40
  Approved subscriptions format (GUID): <br>
37
41
  `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`
@@ -73,7 +77,9 @@ class PrivatelinkAzureArgs:
73
77
  def sleep(self) -> Optional[pulumi.Input[int]]:
74
78
  """
75
79
  Configurable sleep time (seconds) when enable PrivateLink.
76
- Default set to 10 seconds. *Available from v1.29.0*
80
+ Default set to 10 seconds.
81
+
82
+ ***Note:*** Available from [v1.29.0]
77
83
  """
78
84
  return pulumi.get(self, "sleep")
79
85
 
@@ -86,7 +92,9 @@ class PrivatelinkAzureArgs:
86
92
  def timeout(self) -> Optional[pulumi.Input[int]]:
87
93
  """
88
94
  Configurable timeout time (seconds) when enable PrivateLink.
89
- Default set to 1800 seconds. *Available from v1.29.0*
95
+ Default set to 1800 seconds.
96
+
97
+ ***Note:*** Available from [v1.29.0]
90
98
 
91
99
  Approved subscriptions format (GUID): <br>
92
100
  `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`
@@ -116,10 +124,14 @@ class _PrivatelinkAzureState:
116
124
  :param pulumi.Input[str] server_name: Name of the server having the PrivateLink enabled.
117
125
  :param pulumi.Input[str] service_name: Service name (alias) of the PrivateLink, needed when creating the endpoint.
118
126
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
119
- Default set to 10 seconds. *Available from v1.29.0*
127
+ Default set to 10 seconds.
128
+
129
+ ***Note:*** Available from [v1.29.0]
120
130
  :param pulumi.Input[str] status: PrivateLink status [enable, pending, disable]
121
131
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
122
- Default set to 1800 seconds. *Available from v1.29.0*
132
+ Default set to 1800 seconds.
133
+
134
+ ***Note:*** Available from [v1.29.0]
123
135
 
124
136
  Approved subscriptions format (GUID): <br>
125
137
  `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`
@@ -193,7 +205,9 @@ class _PrivatelinkAzureState:
193
205
  def sleep(self) -> Optional[pulumi.Input[int]]:
194
206
  """
195
207
  Configurable sleep time (seconds) when enable PrivateLink.
196
- Default set to 10 seconds. *Available from v1.29.0*
208
+ Default set to 10 seconds.
209
+
210
+ ***Note:*** Available from [v1.29.0]
197
211
  """
198
212
  return pulumi.get(self, "sleep")
199
213
 
@@ -218,7 +232,9 @@ class _PrivatelinkAzureState:
218
232
  def timeout(self) -> Optional[pulumi.Input[int]]:
219
233
  """
220
234
  Configurable timeout time (seconds) when enable PrivateLink.
221
- Default set to 1800 seconds. *Available from v1.29.0*
235
+ Default set to 1800 seconds.
236
+
237
+ ***Note:*** Available from [v1.29.0]
222
238
 
223
239
  Approved subscriptions format (GUID): <br>
224
240
  `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`
@@ -241,147 +257,31 @@ class PrivatelinkAzure(pulumi.CustomResource):
241
257
  timeout: Optional[pulumi.Input[int]] = None,
242
258
  __props__=None):
243
259
  """
244
- Enable PrivateLink for a CloudAMQP instance hosted in Azure. If no existing VPC available when
245
- enable PrivateLink, a new VPC will be created with subnet `10.52.72.0/24`.
246
-
247
- > **Note:** Enabling PrivateLink will automatically add firewall rules for the peered subnet.
248
-
249
- <details>
250
- <summary>
251
- <i>Default PrivateLink firewall rule</i>
252
- </summary>
253
-
254
- ## Example Usage
255
-
256
- <details>
257
- <summary>
258
- <b>
259
- <i>CloudAMQP instance without existing VPC</i>
260
- </b>
261
- </summary>
262
-
263
- ```python
264
- import pulumi
265
- import pulumi_cloudamqp as cloudamqp
266
-
267
- instance = cloudamqp.Instance("instance",
268
- name="Instance 01",
269
- plan="bunny-1",
270
- region="azure-arm::westus",
271
- tags=[])
272
- privatelink = cloudamqp.PrivatelinkAzure("privatelink",
273
- instance_id=instance.id,
274
- approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
275
- ```
276
- </details>
277
-
278
- <details>
279
- <summary>
280
- <b>
281
- <i>CloudAMQP instance in an existing VPC</i>
282
- </b>
283
- </summary>
284
-
285
- ```python
286
- import pulumi
287
- import pulumi_cloudamqp as cloudamqp
288
-
289
- vpc = cloudamqp.Vpc("vpc",
290
- name="Standalone VPC",
291
- region="azure-arm::westus",
292
- subnet="10.56.72.0/24",
293
- tags=[])
294
- instance = cloudamqp.Instance("instance",
295
- name="Instance 01",
296
- plan="bunny-1",
297
- region="azure-arm::westus",
298
- tags=[],
299
- vpc_id=vpc.id,
300
- keep_associated_vpc=True)
301
- privatelink = cloudamqp.PrivatelinkAzure("privatelink",
302
- instance_id=instance.id,
303
- approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
304
- ```
260
+ ## Import
305
261
 
306
- </details>
307
-
308
- ### With Additional Firewall Rules
309
-
310
- <details>
311
- <summary>
312
- <b>
313
- <i>CloudAMQP instance in an existing VPC with managed firewall rules</i>
314
- </b>
315
- </summary>
316
-
317
- ```python
318
- import pulumi
319
- import pulumi_cloudamqp as cloudamqp
320
-
321
- vpc = cloudamqp.Vpc("vpc",
322
- name="Standalone VPC",
323
- region="azure-arm::westus",
324
- subnet="10.56.72.0/24",
325
- tags=[])
326
- instance = cloudamqp.Instance("instance",
327
- name="Instance 01",
328
- plan="bunny-1",
329
- region="azure-arm::westus",
330
- tags=[],
331
- vpc_id=vpc.id,
332
- keep_associated_vpc=True)
333
- privatelink = cloudamqp.PrivatelinkAzure("privatelink",
334
- instance_id=instance.id,
335
- approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
336
- firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
337
- instance_id=instance.id,
338
- rules=[
339
- {
340
- "description": "Custom PrivateLink setup",
341
- "ip": vpc.subnet,
342
- "ports": [],
343
- "services": [
344
- "AMQP",
345
- "AMQPS",
346
- "HTTPS",
347
- "STREAM",
348
- "STREAM_SSL",
349
- ],
350
- },
351
- {
352
- "description": "MGMT interface",
353
- "ip": "0.0.0.0/0",
354
- "ports": [],
355
- "services": ["HTTPS"],
356
- },
357
- ],
358
- opts = pulumi.ResourceOptions(depends_on=[privatelink]))
359
- ```
262
+ `cloudamqp_privatelink_azure` can be imported using CloudAMQP instance identifier. To retrieve the
360
263
 
361
- </details>
264
+ identifier, use [CloudAMQP API list intances].
362
265
 
363
- ## Depedency
266
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
364
267
 
365
- This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
268
+ hcl
366
269
 
367
- ## Create PrivateLink with additional firewall rules
270
+ import {
368
271
 
369
- To create a PrivateLink configuration with additional firewall rules, it's required to chain the SecurityFirewall
370
- resource to avoid parallel conflicting resource calls. You can do this by making the firewall
371
- resource depend on the PrivateLink resource, `cloudamqp_privatelink_azure.privatelink`.
272
+ to = cloudamqp_privatelink_azure.privatelink
372
273
 
373
- Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
374
- the PrivateLink also needs to be added.
274
+ id = cloudamqp_instance.instance.id
375
275
 
376
- ## Import
276
+ }
377
277
 
378
- `cloudamqp_privatelink_aws` can be imported using CloudAMQP internal identifier.
278
+ Or use Terraform CLI:
379
279
 
380
280
  ```sh
381
281
  $ pulumi import cloudamqp:index/privatelinkAzure:PrivatelinkAzure privatelink <id>`
382
282
  ```
383
283
 
384
- The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
284
+ `cloudamqp_privatelink_aws` can be imported using CloudAMQP instance identifier.
385
285
 
386
286
  :param str resource_name: The name of the resource.
387
287
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -389,9 +289,13 @@ class PrivatelinkAzure(pulumi.CustomResource):
389
289
  See format below.
390
290
  :param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
391
291
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
392
- Default set to 10 seconds. *Available from v1.29.0*
292
+ Default set to 10 seconds.
293
+
294
+ ***Note:*** Available from [v1.29.0]
393
295
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
394
- Default set to 1800 seconds. *Available from v1.29.0*
296
+ Default set to 1800 seconds.
297
+
298
+ ***Note:*** Available from [v1.29.0]
395
299
 
396
300
  Approved subscriptions format (GUID): <br>
397
301
  `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`
@@ -403,147 +307,31 @@ class PrivatelinkAzure(pulumi.CustomResource):
403
307
  args: PrivatelinkAzureArgs,
404
308
  opts: Optional[pulumi.ResourceOptions] = None):
405
309
  """
406
- Enable PrivateLink for a CloudAMQP instance hosted in Azure. If no existing VPC available when
407
- enable PrivateLink, a new VPC will be created with subnet `10.52.72.0/24`.
408
-
409
- > **Note:** Enabling PrivateLink will automatically add firewall rules for the peered subnet.
410
-
411
- <details>
412
- <summary>
413
- <i>Default PrivateLink firewall rule</i>
414
- </summary>
415
-
416
- ## Example Usage
417
-
418
- <details>
419
- <summary>
420
- <b>
421
- <i>CloudAMQP instance without existing VPC</i>
422
- </b>
423
- </summary>
424
-
425
- ```python
426
- import pulumi
427
- import pulumi_cloudamqp as cloudamqp
428
-
429
- instance = cloudamqp.Instance("instance",
430
- name="Instance 01",
431
- plan="bunny-1",
432
- region="azure-arm::westus",
433
- tags=[])
434
- privatelink = cloudamqp.PrivatelinkAzure("privatelink",
435
- instance_id=instance.id,
436
- approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
437
- ```
438
- </details>
439
-
440
- <details>
441
- <summary>
442
- <b>
443
- <i>CloudAMQP instance in an existing VPC</i>
444
- </b>
445
- </summary>
446
-
447
- ```python
448
- import pulumi
449
- import pulumi_cloudamqp as cloudamqp
450
-
451
- vpc = cloudamqp.Vpc("vpc",
452
- name="Standalone VPC",
453
- region="azure-arm::westus",
454
- subnet="10.56.72.0/24",
455
- tags=[])
456
- instance = cloudamqp.Instance("instance",
457
- name="Instance 01",
458
- plan="bunny-1",
459
- region="azure-arm::westus",
460
- tags=[],
461
- vpc_id=vpc.id,
462
- keep_associated_vpc=True)
463
- privatelink = cloudamqp.PrivatelinkAzure("privatelink",
464
- instance_id=instance.id,
465
- approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
466
- ```
310
+ ## Import
467
311
 
468
- </details>
469
-
470
- ### With Additional Firewall Rules
471
-
472
- <details>
473
- <summary>
474
- <b>
475
- <i>CloudAMQP instance in an existing VPC with managed firewall rules</i>
476
- </b>
477
- </summary>
478
-
479
- ```python
480
- import pulumi
481
- import pulumi_cloudamqp as cloudamqp
482
-
483
- vpc = cloudamqp.Vpc("vpc",
484
- name="Standalone VPC",
485
- region="azure-arm::westus",
486
- subnet="10.56.72.0/24",
487
- tags=[])
488
- instance = cloudamqp.Instance("instance",
489
- name="Instance 01",
490
- plan="bunny-1",
491
- region="azure-arm::westus",
492
- tags=[],
493
- vpc_id=vpc.id,
494
- keep_associated_vpc=True)
495
- privatelink = cloudamqp.PrivatelinkAzure("privatelink",
496
- instance_id=instance.id,
497
- approved_subscriptions=["XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"])
498
- firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
499
- instance_id=instance.id,
500
- rules=[
501
- {
502
- "description": "Custom PrivateLink setup",
503
- "ip": vpc.subnet,
504
- "ports": [],
505
- "services": [
506
- "AMQP",
507
- "AMQPS",
508
- "HTTPS",
509
- "STREAM",
510
- "STREAM_SSL",
511
- ],
512
- },
513
- {
514
- "description": "MGMT interface",
515
- "ip": "0.0.0.0/0",
516
- "ports": [],
517
- "services": ["HTTPS"],
518
- },
519
- ],
520
- opts = pulumi.ResourceOptions(depends_on=[privatelink]))
521
- ```
312
+ `cloudamqp_privatelink_azure` can be imported using CloudAMQP instance identifier. To retrieve the
522
313
 
523
- </details>
314
+ identifier, use [CloudAMQP API list intances].
524
315
 
525
- ## Depedency
316
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
526
317
 
527
- This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
318
+ hcl
528
319
 
529
- ## Create PrivateLink with additional firewall rules
320
+ import {
530
321
 
531
- To create a PrivateLink configuration with additional firewall rules, it's required to chain the SecurityFirewall
532
- resource to avoid parallel conflicting resource calls. You can do this by making the firewall
533
- resource depend on the PrivateLink resource, `cloudamqp_privatelink_azure.privatelink`.
322
+ to = cloudamqp_privatelink_azure.privatelink
534
323
 
535
- Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
536
- the PrivateLink also needs to be added.
324
+ id = cloudamqp_instance.instance.id
537
325
 
538
- ## Import
326
+ }
539
327
 
540
- `cloudamqp_privatelink_aws` can be imported using CloudAMQP internal identifier.
328
+ Or use Terraform CLI:
541
329
 
542
330
  ```sh
543
331
  $ pulumi import cloudamqp:index/privatelinkAzure:PrivatelinkAzure privatelink <id>`
544
332
  ```
545
333
 
546
- The resource uses the same identifier as the CloudAMQP instance. To retrieve the identifier for an instance, either use [CloudAMQP customer API](https://docs.cloudamqp.com/#list-instances) or use the data source [`cloudamqp_account`](./data-sources/account.md).
334
+ `cloudamqp_privatelink_aws` can be imported using CloudAMQP instance identifier.
547
335
 
548
336
  :param str resource_name: The name of the resource.
549
337
  :param PrivatelinkAzureArgs args: The arguments to use to populate this resource's properties.
@@ -614,10 +402,14 @@ class PrivatelinkAzure(pulumi.CustomResource):
614
402
  :param pulumi.Input[str] server_name: Name of the server having the PrivateLink enabled.
615
403
  :param pulumi.Input[str] service_name: Service name (alias) of the PrivateLink, needed when creating the endpoint.
616
404
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
617
- Default set to 10 seconds. *Available from v1.29.0*
405
+ Default set to 10 seconds.
406
+
407
+ ***Note:*** Available from [v1.29.0]
618
408
  :param pulumi.Input[str] status: PrivateLink status [enable, pending, disable]
619
409
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
620
- Default set to 1800 seconds. *Available from v1.29.0*
410
+ Default set to 1800 seconds.
411
+
412
+ ***Note:*** Available from [v1.29.0]
621
413
 
622
414
  Approved subscriptions format (GUID): <br>
623
415
  `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`
@@ -673,7 +465,9 @@ class PrivatelinkAzure(pulumi.CustomResource):
673
465
  def sleep(self) -> pulumi.Output[Optional[int]]:
674
466
  """
675
467
  Configurable sleep time (seconds) when enable PrivateLink.
676
- Default set to 10 seconds. *Available from v1.29.0*
468
+ Default set to 10 seconds.
469
+
470
+ ***Note:*** Available from [v1.29.0]
677
471
  """
678
472
  return pulumi.get(self, "sleep")
679
473
 
@@ -690,7 +484,9 @@ class PrivatelinkAzure(pulumi.CustomResource):
690
484
  def timeout(self) -> pulumi.Output[Optional[int]]:
691
485
  """
692
486
  Configurable timeout time (seconds) when enable PrivateLink.
693
- Default set to 1800 seconds. *Available from v1.29.0*
487
+ Default set to 1800 seconds.
488
+
489
+ ***Note:*** Available from [v1.29.0]
694
490
 
695
491
  Approved subscriptions format (GUID): <br>
696
492
  `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "cloudamqp",
4
- "version": "3.21.0-alpha.1743485311"
4
+ "version": "3.21.0-alpha.1744082841"
5
5
  }