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
@@ -28,9 +28,13 @@ class PrivatelinkAwsArgs:
28
28
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_principals: Allowed principals to access the endpoint service.
29
29
  :param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
30
30
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
31
- Default set to 10 seconds. *Available from v1.29.0*
31
+ Default set to 10 seconds.
32
+
33
+ ***Note:*** Available from [v1.29.0]
32
34
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
33
- Default set to 1800 seconds. *Available from v1.29.0*
35
+ Default set to 1800 seconds.
36
+
37
+ ***Note:*** Available from [v1.29.0]
34
38
 
35
39
  Allowed principals format: <br>
36
40
  `arn:aws:iam::aws-account-id:root` <br>
@@ -73,7 +77,9 @@ class PrivatelinkAwsArgs:
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 PrivatelinkAwsArgs:
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
  Allowed principals format: <br>
92
100
  `arn:aws:iam::aws-account-id:root` <br>
@@ -117,10 +125,14 @@ class _PrivatelinkAwsState:
117
125
  :param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
118
126
  :param pulumi.Input[str] service_name: Service name of the PrivateLink used when creating the endpoint from other VPC.
119
127
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
120
- Default set to 10 seconds. *Available from v1.29.0*
128
+ Default set to 10 seconds.
129
+
130
+ ***Note:*** Available from [v1.29.0]
121
131
  :param pulumi.Input[str] status: PrivateLink status [enable, pending, disable]
122
132
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
123
- Default set to 1800 seconds. *Available from v1.29.0*
133
+ Default set to 1800 seconds.
134
+
135
+ ***Note:*** Available from [v1.29.0]
124
136
 
125
137
  Allowed principals format: <br>
126
138
  `arn:aws:iam::aws-account-id:root` <br>
@@ -195,7 +207,9 @@ class _PrivatelinkAwsState:
195
207
  def sleep(self) -> Optional[pulumi.Input[int]]:
196
208
  """
197
209
  Configurable sleep time (seconds) when enable PrivateLink.
198
- Default set to 10 seconds. *Available from v1.29.0*
210
+ Default set to 10 seconds.
211
+
212
+ ***Note:*** Available from [v1.29.0]
199
213
  """
200
214
  return pulumi.get(self, "sleep")
201
215
 
@@ -220,7 +234,9 @@ class _PrivatelinkAwsState:
220
234
  def timeout(self) -> Optional[pulumi.Input[int]]:
221
235
  """
222
236
  Configurable timeout time (seconds) when enable PrivateLink.
223
- Default set to 1800 seconds. *Available from v1.29.0*
237
+ Default set to 1800 seconds.
238
+
239
+ ***Note:*** Available from [v1.29.0]
224
240
 
225
241
  Allowed principals format: <br>
226
242
  `arn:aws:iam::aws-account-id:root` <br>
@@ -245,156 +261,42 @@ class PrivatelinkAws(pulumi.CustomResource):
245
261
  timeout: Optional[pulumi.Input[int]] = None,
246
262
  __props__=None):
247
263
  """
248
- Enable PrivateLink for a CloudAMQP instance hosted in AWS. If no existing VPC available when enable
249
- PrivateLink, a new VPC will be created with subnet `10.52.72.0/24`.
250
-
251
- > **Note:** Enabling PrivateLink will automatically add firewall rules for the peered subnet.
252
- <details>
253
- <summary>
254
- <i>Default PrivateLink firewall rule</i>
255
- </summary>
256
-
257
- ## Example Usage
258
-
259
- <details>
260
- <summary>
261
- <b>
262
- <i>CloudAMQP instance without existing VPC</i>
263
- </b>
264
- </summary>
265
-
266
- ```python
267
- import pulumi
268
- import pulumi_cloudamqp as cloudamqp
269
-
270
- instance = cloudamqp.Instance("instance",
271
- name="Instance 01",
272
- plan="bunny-1",
273
- region="amazon-web-services::us-west-1",
274
- tags=[])
275
- privatelink = cloudamqp.PrivatelinkAws("privatelink",
276
- instance_id=instance.id,
277
- allowed_principals=["arn:aws:iam::aws-account-id:user/user-name"])
278
- ```
279
-
280
- </details>
281
-
282
- <details>
283
- <summary>
284
- <b>
285
- <i>CloudAMQP instance in an existing VPC</i>
286
- </b>
287
- </summary>
288
-
289
- ```python
290
- import pulumi
291
- import pulumi_cloudamqp as cloudamqp
292
-
293
- vpc = cloudamqp.Vpc("vpc",
294
- name="Standalone VPC",
295
- region="amazon-web-services::us-west-1",
296
- subnet="10.56.72.0/24",
297
- tags=[])
298
- instance = cloudamqp.Instance("instance",
299
- name="Instance 01",
300
- plan="bunny-1",
301
- region="amazon-web-services::us-west-1",
302
- tags=[],
303
- vpc_id=vpc.id,
304
- keep_associated_vpc=True)
305
- privatelink = cloudamqp.PrivatelinkAws("privatelink",
306
- instance_id=instance.id,
307
- allowed_principals=["arn:aws:iam::aws-account-id:user/user-name"])
308
- ```
264
+ ## Import
309
265
 
310
- </details>
311
-
312
- ### With Additional Firewall Rules
313
-
314
- <details>
315
- <summary>
316
- <b>
317
- <i>CloudAMQP instance in an existing VPC with managed firewall rules</i>
318
- </b>
319
- </summary>
320
-
321
- ```python
322
- import pulumi
323
- import pulumi_cloudamqp as cloudamqp
324
-
325
- vpc = cloudamqp.Vpc("vpc",
326
- name="Standalone VPC",
327
- region="amazon-web-services::us-west-1",
328
- subnet="10.56.72.0/24",
329
- tags=[])
330
- instance = cloudamqp.Instance("instance",
331
- name="Instance 01",
332
- plan="bunny-1",
333
- region="amazon-web-services::us-west-1",
334
- tags=[],
335
- vpc_id=vpc.id,
336
- keep_associated_vpc=True)
337
- privatelink = cloudamqp.PrivatelinkAws("privatelink",
338
- instance_id=instance.id,
339
- allowed_principals=["arn:aws:iam::aws-account-id:user/user-name"])
340
- firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
341
- instance_id=instance.id,
342
- rules=[
343
- {
344
- "description": "Custom PrivateLink setup",
345
- "ip": vpc.subnet,
346
- "ports": [],
347
- "services": [
348
- "AMQP",
349
- "AMQPS",
350
- "HTTPS",
351
- "STREAM",
352
- "STREAM_SSL",
353
- ],
354
- },
355
- {
356
- "description": "MGMT interface",
357
- "ip": "0.0.0.0/0",
358
- "ports": [],
359
- "services": ["HTTPS"],
360
- },
361
- ],
362
- opts = pulumi.ResourceOptions(depends_on=[privatelink]))
363
- ```
266
+ `cloudamqp_privatelink_aws` can be imported using CloudAMQP instance identifier. To retrieve the
364
267
 
365
- </details>
268
+ identifier, use [CloudAMQP API list intances].
366
269
 
367
- ## Depedency
270
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
368
271
 
369
- This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
272
+ hcl
370
273
 
371
- ## Create PrivateLink with additional firewall rules
274
+ import {
372
275
 
373
- To create a PrivateLink configuration with additional firewall rules, it's required to chain the SecurityFirewall
374
- resource to avoid parallel conflicting resource calls. You can do this by making the firewall
375
- resource depend on the PrivateLink resource, `cloudamqp_privatelink_aws.privatelink`.
276
+ to = cloudamqp_privatelink_aws.privatelink
376
277
 
377
- Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
378
- the PrivateLink also needs to be added.
278
+ id = cloudamqp_instance.instance.id
379
279
 
380
- ## Import
280
+ }
381
281
 
382
- `cloudamqp_privatelink_aws` can be imported using CloudAMQP internal identifier.
282
+ Or use Terraform CLI:
383
283
 
384
284
  ```sh
385
285
  $ pulumi import cloudamqp:index/privatelinkAws:PrivatelinkAws privatelink <id>`
386
286
  ```
387
287
 
388
- 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).
389
-
390
288
  :param str resource_name: The name of the resource.
391
289
  :param pulumi.ResourceOptions opts: Options for the resource.
392
290
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_principals: Allowed principals to access the endpoint service.
393
291
  :param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
394
292
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
395
- Default set to 10 seconds. *Available from v1.29.0*
293
+ Default set to 10 seconds.
294
+
295
+ ***Note:*** Available from [v1.29.0]
396
296
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
397
- Default set to 1800 seconds. *Available from v1.29.0*
297
+ Default set to 1800 seconds.
298
+
299
+ ***Note:*** Available from [v1.29.0]
398
300
 
399
301
  Allowed principals format: <br>
400
302
  `arn:aws:iam::aws-account-id:root` <br>
@@ -408,148 +310,30 @@ class PrivatelinkAws(pulumi.CustomResource):
408
310
  args: PrivatelinkAwsArgs,
409
311
  opts: Optional[pulumi.ResourceOptions] = None):
410
312
  """
411
- Enable PrivateLink for a CloudAMQP instance hosted in AWS. If no existing VPC available when enable
412
- PrivateLink, a new VPC will be created with subnet `10.52.72.0/24`.
413
-
414
- > **Note:** Enabling PrivateLink will automatically add firewall rules for the peered subnet.
415
- <details>
416
- <summary>
417
- <i>Default PrivateLink firewall rule</i>
418
- </summary>
419
-
420
- ## Example Usage
421
-
422
- <details>
423
- <summary>
424
- <b>
425
- <i>CloudAMQP instance without existing VPC</i>
426
- </b>
427
- </summary>
428
-
429
- ```python
430
- import pulumi
431
- import pulumi_cloudamqp as cloudamqp
432
-
433
- instance = cloudamqp.Instance("instance",
434
- name="Instance 01",
435
- plan="bunny-1",
436
- region="amazon-web-services::us-west-1",
437
- tags=[])
438
- privatelink = cloudamqp.PrivatelinkAws("privatelink",
439
- instance_id=instance.id,
440
- allowed_principals=["arn:aws:iam::aws-account-id:user/user-name"])
441
- ```
442
-
443
- </details>
444
-
445
- <details>
446
- <summary>
447
- <b>
448
- <i>CloudAMQP instance in an existing VPC</i>
449
- </b>
450
- </summary>
451
-
452
- ```python
453
- import pulumi
454
- import pulumi_cloudamqp as cloudamqp
455
-
456
- vpc = cloudamqp.Vpc("vpc",
457
- name="Standalone VPC",
458
- region="amazon-web-services::us-west-1",
459
- subnet="10.56.72.0/24",
460
- tags=[])
461
- instance = cloudamqp.Instance("instance",
462
- name="Instance 01",
463
- plan="bunny-1",
464
- region="amazon-web-services::us-west-1",
465
- tags=[],
466
- vpc_id=vpc.id,
467
- keep_associated_vpc=True)
468
- privatelink = cloudamqp.PrivatelinkAws("privatelink",
469
- instance_id=instance.id,
470
- allowed_principals=["arn:aws:iam::aws-account-id:user/user-name"])
471
- ```
313
+ ## Import
472
314
 
473
- </details>
474
-
475
- ### With Additional Firewall Rules
476
-
477
- <details>
478
- <summary>
479
- <b>
480
- <i>CloudAMQP instance in an existing VPC with managed firewall rules</i>
481
- </b>
482
- </summary>
483
-
484
- ```python
485
- import pulumi
486
- import pulumi_cloudamqp as cloudamqp
487
-
488
- vpc = cloudamqp.Vpc("vpc",
489
- name="Standalone VPC",
490
- region="amazon-web-services::us-west-1",
491
- subnet="10.56.72.0/24",
492
- tags=[])
493
- instance = cloudamqp.Instance("instance",
494
- name="Instance 01",
495
- plan="bunny-1",
496
- region="amazon-web-services::us-west-1",
497
- tags=[],
498
- vpc_id=vpc.id,
499
- keep_associated_vpc=True)
500
- privatelink = cloudamqp.PrivatelinkAws("privatelink",
501
- instance_id=instance.id,
502
- allowed_principals=["arn:aws:iam::aws-account-id:user/user-name"])
503
- firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
504
- instance_id=instance.id,
505
- rules=[
506
- {
507
- "description": "Custom PrivateLink setup",
508
- "ip": vpc.subnet,
509
- "ports": [],
510
- "services": [
511
- "AMQP",
512
- "AMQPS",
513
- "HTTPS",
514
- "STREAM",
515
- "STREAM_SSL",
516
- ],
517
- },
518
- {
519
- "description": "MGMT interface",
520
- "ip": "0.0.0.0/0",
521
- "ports": [],
522
- "services": ["HTTPS"],
523
- },
524
- ],
525
- opts = pulumi.ResourceOptions(depends_on=[privatelink]))
526
- ```
315
+ `cloudamqp_privatelink_aws` can be imported using CloudAMQP instance identifier. To retrieve the
527
316
 
528
- </details>
317
+ identifier, use [CloudAMQP API list intances].
529
318
 
530
- ## Depedency
319
+ From Terraform v1.5.0, the `import` block can be used to import this resource:
531
320
 
532
- This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
321
+ hcl
533
322
 
534
- ## Create PrivateLink with additional firewall rules
323
+ import {
535
324
 
536
- To create a PrivateLink configuration with additional firewall rules, it's required to chain the SecurityFirewall
537
- resource to avoid parallel conflicting resource calls. You can do this by making the firewall
538
- resource depend on the PrivateLink resource, `cloudamqp_privatelink_aws.privatelink`.
325
+ to = cloudamqp_privatelink_aws.privatelink
539
326
 
540
- Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for
541
- the PrivateLink also needs to be added.
327
+ id = cloudamqp_instance.instance.id
542
328
 
543
- ## Import
329
+ }
544
330
 
545
- `cloudamqp_privatelink_aws` can be imported using CloudAMQP internal identifier.
331
+ Or use Terraform CLI:
546
332
 
547
333
  ```sh
548
334
  $ pulumi import cloudamqp:index/privatelinkAws:PrivatelinkAws privatelink <id>`
549
335
  ```
550
336
 
551
- 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).
552
-
553
337
  :param str resource_name: The name of the resource.
554
338
  :param PrivatelinkAwsArgs args: The arguments to use to populate this resource's properties.
555
339
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -618,10 +402,14 @@ class PrivatelinkAws(pulumi.CustomResource):
618
402
  :param pulumi.Input[int] instance_id: The CloudAMQP instance identifier.
619
403
  :param pulumi.Input[str] service_name: Service name of the PrivateLink used when creating the endpoint from other VPC.
620
404
  :param pulumi.Input[int] sleep: Configurable sleep time (seconds) when enable PrivateLink.
621
- Default set to 10 seconds. *Available from v1.29.0*
405
+ Default set to 10 seconds.
406
+
407
+ ***Note:*** Available from [v1.29.0]
622
408
  :param pulumi.Input[str] status: PrivateLink status [enable, pending, disable]
623
409
  :param pulumi.Input[int] timeout: Configurable timeout time (seconds) when enable PrivateLink.
624
- Default set to 1800 seconds. *Available from v1.29.0*
410
+ Default set to 1800 seconds.
411
+
412
+ ***Note:*** Available from [v1.29.0]
625
413
 
626
414
  Allowed principals format: <br>
627
415
  `arn:aws:iam::aws-account-id:root` <br>
@@ -678,7 +466,9 @@ class PrivatelinkAws(pulumi.CustomResource):
678
466
  def sleep(self) -> pulumi.Output[Optional[int]]:
679
467
  """
680
468
  Configurable sleep time (seconds) when enable PrivateLink.
681
- Default set to 10 seconds. *Available from v1.29.0*
469
+ Default set to 10 seconds.
470
+
471
+ ***Note:*** Available from [v1.29.0]
682
472
  """
683
473
  return pulumi.get(self, "sleep")
684
474
 
@@ -695,7 +485,9 @@ class PrivatelinkAws(pulumi.CustomResource):
695
485
  def timeout(self) -> pulumi.Output[Optional[int]]:
696
486
  """
697
487
  Configurable timeout time (seconds) when enable PrivateLink.
698
- Default set to 1800 seconds. *Available from v1.29.0*
488
+ Default set to 1800 seconds.
489
+
490
+ ***Note:*** Available from [v1.29.0]
699
491
 
700
492
  Allowed principals format: <br>
701
493
  `arn:aws:iam::aws-account-id:root` <br>