pulumi-cloudamqp 3.17.4__py3-none-any.whl → 3.17.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-cloudamqp might be problematic. Click here for more details.
- pulumi_cloudamqp/alarm.py +106 -2
- pulumi_cloudamqp/custom_domain.py +6 -0
- pulumi_cloudamqp/extra_disk_size.py +18 -0
- pulumi_cloudamqp/get_account.py +6 -0
- pulumi_cloudamqp/get_account_vpcs.py +6 -0
- pulumi_cloudamqp/get_alarm.py +6 -0
- pulumi_cloudamqp/get_credentials.py +6 -0
- pulumi_cloudamqp/get_instance.py +0 -42
- pulumi_cloudamqp/get_nodes.py +6 -0
- pulumi_cloudamqp/get_notification.py +6 -0
- pulumi_cloudamqp/get_plugins.py +6 -0
- pulumi_cloudamqp/get_plugins_community.py +6 -0
- pulumi_cloudamqp/get_upgradable_versions.py +6 -0
- pulumi_cloudamqp/get_vpc_gcp_info.py +10 -0
- pulumi_cloudamqp/get_vpc_info.py +10 -0
- pulumi_cloudamqp/instance.py +36 -2
- pulumi_cloudamqp/integration_aws_eventbridge.py +6 -0
- pulumi_cloudamqp/integration_log.py +426 -36
- pulumi_cloudamqp/node_actions.py +14 -0
- pulumi_cloudamqp/notification.py +34 -4
- pulumi_cloudamqp/plugin_community.py +2 -2
- pulumi_cloudamqp/privatelink_aws.py +22 -2
- pulumi_cloudamqp/privatelink_azure.py +22 -2
- pulumi_cloudamqp/upgrade_rabbitmq.py +12 -0
- pulumi_cloudamqp/vpc.py +8 -4
- pulumi_cloudamqp/vpc_connect.py +30 -2
- pulumi_cloudamqp/vpc_gcp_peering.py +86 -0
- pulumi_cloudamqp/webhook.py +6 -0
- {pulumi_cloudamqp-3.17.4.dist-info → pulumi_cloudamqp-3.17.5.dist-info}/METADATA +1 -1
- pulumi_cloudamqp-3.17.5.dist-info/RECORD +48 -0
- {pulumi_cloudamqp-3.17.4.dist-info → pulumi_cloudamqp-3.17.5.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.17.4.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.17.4.dist-info → pulumi_cloudamqp-3.17.5.dist-info}/top_level.txt +0 -0
pulumi_cloudamqp/alarm.py
CHANGED
|
@@ -417,6 +417,14 @@ class Alarm(pulumi.CustomResource):
|
|
|
417
417
|
|
|
418
418
|
## Example Usage
|
|
419
419
|
|
|
420
|
+
<details>
|
|
421
|
+
<summary>
|
|
422
|
+
<b>
|
|
423
|
+
<i>Basic example of CPU and memory alarm</i>
|
|
424
|
+
</b>
|
|
425
|
+
</summary>
|
|
426
|
+
|
|
427
|
+
<!--Start PulumiCodeChooser -->
|
|
420
428
|
```python
|
|
421
429
|
import pulumi
|
|
422
430
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -445,6 +453,40 @@ class Alarm(pulumi.CustomResource):
|
|
|
445
453
|
time_threshold=600,
|
|
446
454
|
recipients=[recipient01.id])
|
|
447
455
|
```
|
|
456
|
+
<!--End PulumiCodeChooser -->
|
|
457
|
+
|
|
458
|
+
</details>
|
|
459
|
+
|
|
460
|
+
<details>
|
|
461
|
+
<summary>
|
|
462
|
+
<b>
|
|
463
|
+
<i>Manage notice alarm, available from v1.29.5</i>
|
|
464
|
+
</b>
|
|
465
|
+
</summary>
|
|
466
|
+
|
|
467
|
+
Only one notice alarm can exists and cannot be created, instead the alarm resource will be updated.
|
|
468
|
+
|
|
469
|
+
<!--Start PulumiCodeChooser -->
|
|
470
|
+
```python
|
|
471
|
+
import pulumi
|
|
472
|
+
import pulumi_cloudamqp as cloudamqp
|
|
473
|
+
|
|
474
|
+
# New recipient
|
|
475
|
+
recipient01 = cloudamqp.Notification("recipient01",
|
|
476
|
+
instance_id=cloudamqp_instance["instance"]["id"],
|
|
477
|
+
type="email",
|
|
478
|
+
value="alarm@example.com")
|
|
479
|
+
# Update existing notice alarm
|
|
480
|
+
notice = cloudamqp.Alarm("notice",
|
|
481
|
+
instance_id=cloudamqp_instance["instance"]["id"],
|
|
482
|
+
type="notice",
|
|
483
|
+
enabled=True,
|
|
484
|
+
recipients=[recipient01.id])
|
|
485
|
+
```
|
|
486
|
+
<!--End PulumiCodeChooser -->
|
|
487
|
+
|
|
488
|
+
</details>
|
|
489
|
+
|
|
448
490
|
## Alarm Type reference
|
|
449
491
|
|
|
450
492
|
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
@@ -465,12 +507,22 @@ class Alarm(pulumi.CustomResource):
|
|
|
465
507
|
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
466
508
|
| Notice | notice | ✔ | ✔ | |
|
|
467
509
|
|
|
468
|
-
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
|
|
510
|
+
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm. See updated changes to notice alarm below.
|
|
469
511
|
|
|
470
512
|
## Dependency
|
|
471
513
|
|
|
472
514
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
473
515
|
|
|
516
|
+
## Notice alarm
|
|
517
|
+
|
|
518
|
+
There is a limitation for notice alarm in the API backend. This alarm is mandatory, multiple
|
|
519
|
+
alarms cannot exists or be deleted.
|
|
520
|
+
|
|
521
|
+
From provider version v1.29.5
|
|
522
|
+
it's possible to manage the notice alarm and no longer needs to be imported. Just create the
|
|
523
|
+
alarm resource as usually and it will be updated with given recipients. If the alarm is deleted
|
|
524
|
+
it will only be removed from the state file, but will still be enabled in the backend.
|
|
525
|
+
|
|
474
526
|
## Import
|
|
475
527
|
|
|
476
528
|
`cloudamqp_alarm` can be imported using CloudAMQP internal identifier of the alarm together (CSV separated) with the instance identifier. To retrieve the alarm identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-alarms)
|
|
@@ -512,6 +564,14 @@ class Alarm(pulumi.CustomResource):
|
|
|
512
564
|
|
|
513
565
|
## Example Usage
|
|
514
566
|
|
|
567
|
+
<details>
|
|
568
|
+
<summary>
|
|
569
|
+
<b>
|
|
570
|
+
<i>Basic example of CPU and memory alarm</i>
|
|
571
|
+
</b>
|
|
572
|
+
</summary>
|
|
573
|
+
|
|
574
|
+
<!--Start PulumiCodeChooser -->
|
|
515
575
|
```python
|
|
516
576
|
import pulumi
|
|
517
577
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -540,6 +600,40 @@ class Alarm(pulumi.CustomResource):
|
|
|
540
600
|
time_threshold=600,
|
|
541
601
|
recipients=[recipient01.id])
|
|
542
602
|
```
|
|
603
|
+
<!--End PulumiCodeChooser -->
|
|
604
|
+
|
|
605
|
+
</details>
|
|
606
|
+
|
|
607
|
+
<details>
|
|
608
|
+
<summary>
|
|
609
|
+
<b>
|
|
610
|
+
<i>Manage notice alarm, available from v1.29.5</i>
|
|
611
|
+
</b>
|
|
612
|
+
</summary>
|
|
613
|
+
|
|
614
|
+
Only one notice alarm can exists and cannot be created, instead the alarm resource will be updated.
|
|
615
|
+
|
|
616
|
+
<!--Start PulumiCodeChooser -->
|
|
617
|
+
```python
|
|
618
|
+
import pulumi
|
|
619
|
+
import pulumi_cloudamqp as cloudamqp
|
|
620
|
+
|
|
621
|
+
# New recipient
|
|
622
|
+
recipient01 = cloudamqp.Notification("recipient01",
|
|
623
|
+
instance_id=cloudamqp_instance["instance"]["id"],
|
|
624
|
+
type="email",
|
|
625
|
+
value="alarm@example.com")
|
|
626
|
+
# Update existing notice alarm
|
|
627
|
+
notice = cloudamqp.Alarm("notice",
|
|
628
|
+
instance_id=cloudamqp_instance["instance"]["id"],
|
|
629
|
+
type="notice",
|
|
630
|
+
enabled=True,
|
|
631
|
+
recipients=[recipient01.id])
|
|
632
|
+
```
|
|
633
|
+
<!--End PulumiCodeChooser -->
|
|
634
|
+
|
|
635
|
+
</details>
|
|
636
|
+
|
|
543
637
|
## Alarm Type reference
|
|
544
638
|
|
|
545
639
|
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
@@ -560,12 +654,22 @@ class Alarm(pulumi.CustomResource):
|
|
|
560
654
|
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
561
655
|
| Notice | notice | ✔ | ✔ | |
|
|
562
656
|
|
|
563
|
-
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm.
|
|
657
|
+
> Notice alarm is manadatory! Only one can exists and cannot be deleted. Setting `no_default_alarm` to true, will still create this alarm. See updated changes to notice alarm below.
|
|
564
658
|
|
|
565
659
|
## Dependency
|
|
566
660
|
|
|
567
661
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
568
662
|
|
|
663
|
+
## Notice alarm
|
|
664
|
+
|
|
665
|
+
There is a limitation for notice alarm in the API backend. This alarm is mandatory, multiple
|
|
666
|
+
alarms cannot exists or be deleted.
|
|
667
|
+
|
|
668
|
+
From provider version v1.29.5
|
|
669
|
+
it's possible to manage the notice alarm and no longer needs to be imported. Just create the
|
|
670
|
+
alarm resource as usually and it will be updated with given recipients. If the alarm is deleted
|
|
671
|
+
it will only be removed from the state file, but will still be enabled in the backend.
|
|
672
|
+
|
|
569
673
|
## Import
|
|
570
674
|
|
|
571
675
|
`cloudamqp_alarm` can be imported using CloudAMQP internal identifier of the alarm together (CSV separated) with the instance identifier. To retrieve the alarm identifier, use [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html#list-alarms)
|
|
@@ -110,6 +110,7 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
110
110
|
|
|
111
111
|
## Example Usage
|
|
112
112
|
|
|
113
|
+
<!--Start PulumiCodeChooser -->
|
|
113
114
|
```python
|
|
114
115
|
import pulumi
|
|
115
116
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -118,6 +119,8 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
118
119
|
instance_id=cloudamqp_instance["instance"]["id"],
|
|
119
120
|
hostname="myname.mydomain")
|
|
120
121
|
```
|
|
122
|
+
<!--End PulumiCodeChooser -->
|
|
123
|
+
|
|
121
124
|
## Depedency
|
|
122
125
|
|
|
123
126
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -156,6 +159,7 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
156
159
|
|
|
157
160
|
## Example Usage
|
|
158
161
|
|
|
162
|
+
<!--Start PulumiCodeChooser -->
|
|
159
163
|
```python
|
|
160
164
|
import pulumi
|
|
161
165
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -164,6 +168,8 @@ class CustomDomain(pulumi.CustomResource):
|
|
|
164
168
|
instance_id=cloudamqp_instance["instance"]["id"],
|
|
165
169
|
hostname="myname.mydomain")
|
|
166
170
|
```
|
|
171
|
+
<!--End PulumiCodeChooser -->
|
|
172
|
+
|
|
167
173
|
## Depedency
|
|
168
174
|
|
|
169
175
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
@@ -251,6 +251,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
251
251
|
</b>
|
|
252
252
|
</summary>
|
|
253
253
|
|
|
254
|
+
<!--Start PulumiCodeChooser -->
|
|
254
255
|
```python
|
|
255
256
|
import pulumi
|
|
256
257
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -265,6 +266,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
265
266
|
extra_disk_size=25)
|
|
266
267
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
267
268
|
```
|
|
269
|
+
<!--End PulumiCodeChooser -->
|
|
268
270
|
|
|
269
271
|
</details>
|
|
270
272
|
|
|
@@ -275,6 +277,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
275
277
|
</b>
|
|
276
278
|
</summary>
|
|
277
279
|
|
|
280
|
+
<!--Start PulumiCodeChooser -->
|
|
278
281
|
```python
|
|
279
282
|
import pulumi
|
|
280
283
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -289,6 +292,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
289
292
|
extra_disk_size=25)
|
|
290
293
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
291
294
|
```
|
|
295
|
+
<!--End PulumiCodeChooser -->
|
|
292
296
|
|
|
293
297
|
</details>
|
|
294
298
|
|
|
@@ -299,6 +303,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
299
303
|
</b>
|
|
300
304
|
</summary>
|
|
301
305
|
|
|
306
|
+
<!--Start PulumiCodeChooser -->
|
|
302
307
|
```python
|
|
303
308
|
import pulumi
|
|
304
309
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -313,6 +318,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
313
318
|
extra_disk_size=25)
|
|
314
319
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
315
320
|
```
|
|
321
|
+
<!--End PulumiCodeChooser -->
|
|
316
322
|
|
|
317
323
|
</details>
|
|
318
324
|
|
|
@@ -323,6 +329,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
323
329
|
</b>
|
|
324
330
|
</summary>
|
|
325
331
|
|
|
332
|
+
<!--Start PulumiCodeChooser -->
|
|
326
333
|
```python
|
|
327
334
|
import pulumi
|
|
328
335
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -338,8 +345,10 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
338
345
|
allow_downtime=True)
|
|
339
346
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
340
347
|
```
|
|
348
|
+
<!--End PulumiCodeChooser -->
|
|
341
349
|
|
|
342
350
|
</details>
|
|
351
|
+
|
|
343
352
|
## Attributes reference
|
|
344
353
|
|
|
345
354
|
All attributes reference are computed
|
|
@@ -414,6 +423,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
414
423
|
</b>
|
|
415
424
|
</summary>
|
|
416
425
|
|
|
426
|
+
<!--Start PulumiCodeChooser -->
|
|
417
427
|
```python
|
|
418
428
|
import pulumi
|
|
419
429
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -428,6 +438,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
428
438
|
extra_disk_size=25)
|
|
429
439
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
430
440
|
```
|
|
441
|
+
<!--End PulumiCodeChooser -->
|
|
431
442
|
|
|
432
443
|
</details>
|
|
433
444
|
|
|
@@ -438,6 +449,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
438
449
|
</b>
|
|
439
450
|
</summary>
|
|
440
451
|
|
|
452
|
+
<!--Start PulumiCodeChooser -->
|
|
441
453
|
```python
|
|
442
454
|
import pulumi
|
|
443
455
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -452,6 +464,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
452
464
|
extra_disk_size=25)
|
|
453
465
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
454
466
|
```
|
|
467
|
+
<!--End PulumiCodeChooser -->
|
|
455
468
|
|
|
456
469
|
</details>
|
|
457
470
|
|
|
@@ -462,6 +475,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
462
475
|
</b>
|
|
463
476
|
</summary>
|
|
464
477
|
|
|
478
|
+
<!--Start PulumiCodeChooser -->
|
|
465
479
|
```python
|
|
466
480
|
import pulumi
|
|
467
481
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -476,6 +490,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
476
490
|
extra_disk_size=25)
|
|
477
491
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
478
492
|
```
|
|
493
|
+
<!--End PulumiCodeChooser -->
|
|
479
494
|
|
|
480
495
|
</details>
|
|
481
496
|
|
|
@@ -486,6 +501,7 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
486
501
|
</b>
|
|
487
502
|
</summary>
|
|
488
503
|
|
|
504
|
+
<!--Start PulumiCodeChooser -->
|
|
489
505
|
```python
|
|
490
506
|
import pulumi
|
|
491
507
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -501,8 +517,10 @@ class ExtraDiskSize(pulumi.CustomResource):
|
|
|
501
517
|
allow_downtime=True)
|
|
502
518
|
nodes = instance.id.apply(lambda id: cloudamqp.get_nodes_output(instance_id=id))
|
|
503
519
|
```
|
|
520
|
+
<!--End PulumiCodeChooser -->
|
|
504
521
|
|
|
505
522
|
</details>
|
|
523
|
+
|
|
506
524
|
## Attributes reference
|
|
507
525
|
|
|
508
526
|
All attributes reference are computed
|
pulumi_cloudamqp/get_account.py
CHANGED
|
@@ -62,6 +62,7 @@ def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAcco
|
|
|
62
62
|
|
|
63
63
|
Can be used in other resources/data sources when instance identifier is unknown, while other attributes are known. E.g. find correct instance from `instance name`. Then iterate over instances to find the matching one and extract the instance identifier.
|
|
64
64
|
|
|
65
|
+
<!--Start PulumiCodeChooser -->
|
|
65
66
|
```python
|
|
66
67
|
import pulumi
|
|
67
68
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -70,6 +71,8 @@ def get_account(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAcco
|
|
|
70
71
|
instance_list = cloudamqp.get_account()
|
|
71
72
|
pulumi.export("instanceId", <nil>)
|
|
72
73
|
```
|
|
74
|
+
<!--End PulumiCodeChooser -->
|
|
75
|
+
|
|
73
76
|
## Attributes reference
|
|
74
77
|
|
|
75
78
|
All attributes reference are computed
|
|
@@ -109,6 +112,7 @@ def get_account_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Ou
|
|
|
109
112
|
|
|
110
113
|
Can be used in other resources/data sources when instance identifier is unknown, while other attributes are known. E.g. find correct instance from `instance name`. Then iterate over instances to find the matching one and extract the instance identifier.
|
|
111
114
|
|
|
115
|
+
<!--Start PulumiCodeChooser -->
|
|
112
116
|
```python
|
|
113
117
|
import pulumi
|
|
114
118
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -117,6 +121,8 @@ def get_account_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Ou
|
|
|
117
121
|
instance_list = cloudamqp.get_account()
|
|
118
122
|
pulumi.export("instanceId", <nil>)
|
|
119
123
|
```
|
|
124
|
+
<!--End PulumiCodeChooser -->
|
|
125
|
+
|
|
120
126
|
## Attributes reference
|
|
121
127
|
|
|
122
128
|
All attributes reference are computed
|
|
@@ -62,6 +62,7 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
62
62
|
|
|
63
63
|
Can be used in other resources/data sources when the VPC identifier is unknown, while other attributes are known. E.g. find correct VPC using the `name` you gave your VPC. Then iterate over VPCs to find the matching one and extract the VPC identifier.
|
|
64
64
|
|
|
65
|
+
<!--Start PulumiCodeChooser -->
|
|
65
66
|
```python
|
|
66
67
|
import pulumi
|
|
67
68
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -70,6 +71,8 @@ def get_account_vpcs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
70
71
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
71
72
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
72
73
|
```
|
|
74
|
+
<!--End PulumiCodeChooser -->
|
|
75
|
+
|
|
73
76
|
## Attributes reference
|
|
74
77
|
|
|
75
78
|
All attributes reference are computed
|
|
@@ -110,6 +113,7 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
110
113
|
|
|
111
114
|
Can be used in other resources/data sources when the VPC identifier is unknown, while other attributes are known. E.g. find correct VPC using the `name` you gave your VPC. Then iterate over VPCs to find the matching one and extract the VPC identifier.
|
|
112
115
|
|
|
116
|
+
<!--Start PulumiCodeChooser -->
|
|
113
117
|
```python
|
|
114
118
|
import pulumi
|
|
115
119
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -118,6 +122,8 @@ def get_account_vpcs_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
118
122
|
vpc_list = cloudamqp.get_account_vpcs()
|
|
119
123
|
pulumi.export("vpcId", [vpc for vpc in vpc_list.vpcs if vpc.name == my_vpc_name][0].id)
|
|
120
124
|
```
|
|
125
|
+
<!--End PulumiCodeChooser -->
|
|
126
|
+
|
|
121
127
|
## Attributes reference
|
|
122
128
|
|
|
123
129
|
All attributes reference are computed
|
pulumi_cloudamqp/get_alarm.py
CHANGED
|
@@ -162,6 +162,7 @@ def get_alarm(alarm_id: Optional[int] = None,
|
|
|
162
162
|
|
|
163
163
|
## Example Usage
|
|
164
164
|
|
|
165
|
+
<!--Start PulumiCodeChooser -->
|
|
165
166
|
```python
|
|
166
167
|
import pulumi
|
|
167
168
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -169,6 +170,8 @@ def get_alarm(alarm_id: Optional[int] = None,
|
|
|
169
170
|
default_cpu_alarm = cloudamqp.get_alarm(instance_id=cloudamqp_instance["instance"]["id"],
|
|
170
171
|
type="cpu")
|
|
171
172
|
```
|
|
173
|
+
<!--End PulumiCodeChooser -->
|
|
174
|
+
|
|
172
175
|
## Attributes reference
|
|
173
176
|
|
|
174
177
|
All attributes reference are computed
|
|
@@ -235,6 +238,7 @@ def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
|
235
238
|
|
|
236
239
|
## Example Usage
|
|
237
240
|
|
|
241
|
+
<!--Start PulumiCodeChooser -->
|
|
238
242
|
```python
|
|
239
243
|
import pulumi
|
|
240
244
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -242,6 +246,8 @@ def get_alarm_output(alarm_id: Optional[pulumi.Input[Optional[int]]] = None,
|
|
|
242
246
|
default_cpu_alarm = cloudamqp.get_alarm(instance_id=cloudamqp_instance["instance"]["id"],
|
|
243
247
|
type="cpu")
|
|
244
248
|
```
|
|
249
|
+
<!--End PulumiCodeChooser -->
|
|
250
|
+
|
|
245
251
|
## Attributes reference
|
|
246
252
|
|
|
247
253
|
All attributes reference are computed
|
|
@@ -78,12 +78,15 @@ def get_credentials(instance_id: Optional[int] = None,
|
|
|
78
78
|
|
|
79
79
|
## Example Usage
|
|
80
80
|
|
|
81
|
+
<!--Start PulumiCodeChooser -->
|
|
81
82
|
```python
|
|
82
83
|
import pulumi
|
|
83
84
|
import pulumi_cloudamqp as cloudamqp
|
|
84
85
|
|
|
85
86
|
credentials = cloudamqp.get_credentials(instance_id=cloudamqp_instance["instance"]["id"])
|
|
86
87
|
```
|
|
88
|
+
<!--End PulumiCodeChooser -->
|
|
89
|
+
|
|
87
90
|
## Attributes reference
|
|
88
91
|
|
|
89
92
|
All attributes reference are computed.
|
|
@@ -119,12 +122,15 @@ def get_credentials_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
119
122
|
|
|
120
123
|
## Example Usage
|
|
121
124
|
|
|
125
|
+
<!--Start PulumiCodeChooser -->
|
|
122
126
|
```python
|
|
123
127
|
import pulumi
|
|
124
128
|
import pulumi_cloudamqp as cloudamqp
|
|
125
129
|
|
|
126
130
|
credentials = cloudamqp.get_credentials(instance_id=cloudamqp_instance["instance"]["id"])
|
|
127
131
|
```
|
|
132
|
+
<!--End PulumiCodeChooser -->
|
|
133
|
+
|
|
128
134
|
## Attributes reference
|
|
129
135
|
|
|
130
136
|
All attributes reference are computed.
|
pulumi_cloudamqp/get_instance.py
CHANGED
|
@@ -211,27 +211,6 @@ def get_instance(instance_id: Optional[int] = None,
|
|
|
211
211
|
"""
|
|
212
212
|
Use this data source to retrieve information about an already created CloudAMQP instance. In order to retrieve the correct information, the CoudAMQP instance identifier is needed.
|
|
213
213
|
|
|
214
|
-
## Attributes reference
|
|
215
|
-
|
|
216
|
-
All attributes reference are computed
|
|
217
|
-
|
|
218
|
-
* `id` - The identifier for this resource.
|
|
219
|
-
* `name` - The name of the CloudAMQP instance.
|
|
220
|
-
* `plan` - The subscription plan for the CloudAMQP instance.
|
|
221
|
-
* `region` - The cloud platform and region that host the CloudAMQP instance, `{platform}::{region}`.
|
|
222
|
-
* `vpc_id` - ID of the VPC configured for the CloudAMQP instance.
|
|
223
|
-
* `vpc_subnet` - Dedicated VPC subnet configured for the CloudAMQP instance.
|
|
224
|
-
* `nodes` - Number of nodes in the cluster of the CloudAMQP instance.
|
|
225
|
-
* `rmq_version` - The version of installed Rabbit MQ.
|
|
226
|
-
* `url` - (Sensitive) The AMQP URL (uses the internal hostname if the instance was created with VPC), used by clients to connect for pub/sub.
|
|
227
|
-
* `apikey` - (Sensitive) The API key to secondary API handing alarms, integration etc.
|
|
228
|
-
* `tags` - Tags the CloudAMQP instance with categories.
|
|
229
|
-
* `host` - The external hostname for the CloudAMQP instance.
|
|
230
|
-
* `host_internal` - The internal hostname for the CloudAMQP instance.
|
|
231
|
-
* `vhost` - The virtual host configured in Rabbit MQ.
|
|
232
|
-
* `dedicated` - Information if the CloudAMQP instance is shared or dedicated.
|
|
233
|
-
* `backend` - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
|
|
234
|
-
|
|
235
214
|
|
|
236
215
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
237
216
|
"""
|
|
@@ -268,27 +247,6 @@ def get_instance_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
268
247
|
"""
|
|
269
248
|
Use this data source to retrieve information about an already created CloudAMQP instance. In order to retrieve the correct information, the CoudAMQP instance identifier is needed.
|
|
270
249
|
|
|
271
|
-
## Attributes reference
|
|
272
|
-
|
|
273
|
-
All attributes reference are computed
|
|
274
|
-
|
|
275
|
-
* `id` - The identifier for this resource.
|
|
276
|
-
* `name` - The name of the CloudAMQP instance.
|
|
277
|
-
* `plan` - The subscription plan for the CloudAMQP instance.
|
|
278
|
-
* `region` - The cloud platform and region that host the CloudAMQP instance, `{platform}::{region}`.
|
|
279
|
-
* `vpc_id` - ID of the VPC configured for the CloudAMQP instance.
|
|
280
|
-
* `vpc_subnet` - Dedicated VPC subnet configured for the CloudAMQP instance.
|
|
281
|
-
* `nodes` - Number of nodes in the cluster of the CloudAMQP instance.
|
|
282
|
-
* `rmq_version` - The version of installed Rabbit MQ.
|
|
283
|
-
* `url` - (Sensitive) The AMQP URL (uses the internal hostname if the instance was created with VPC), used by clients to connect for pub/sub.
|
|
284
|
-
* `apikey` - (Sensitive) The API key to secondary API handing alarms, integration etc.
|
|
285
|
-
* `tags` - Tags the CloudAMQP instance with categories.
|
|
286
|
-
* `host` - The external hostname for the CloudAMQP instance.
|
|
287
|
-
* `host_internal` - The internal hostname for the CloudAMQP instance.
|
|
288
|
-
* `vhost` - The virtual host configured in Rabbit MQ.
|
|
289
|
-
* `dedicated` - Information if the CloudAMQP instance is shared or dedicated.
|
|
290
|
-
* `backend` - Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
|
|
291
|
-
|
|
292
250
|
|
|
293
251
|
:param int instance_id: The CloudAMQP instance identifier.
|
|
294
252
|
"""
|
pulumi_cloudamqp/get_nodes.py
CHANGED
|
@@ -70,12 +70,15 @@ def get_nodes(instance_id: Optional[int] = None,
|
|
|
70
70
|
|
|
71
71
|
## Example Usage
|
|
72
72
|
|
|
73
|
+
<!--Start PulumiCodeChooser -->
|
|
73
74
|
```python
|
|
74
75
|
import pulumi
|
|
75
76
|
import pulumi_cloudamqp as cloudamqp
|
|
76
77
|
|
|
77
78
|
nodes = cloudamqp.get_nodes(instance_id=cloudamqp_instance["instance"]["id"])
|
|
78
79
|
```
|
|
80
|
+
<!--End PulumiCodeChooser -->
|
|
81
|
+
|
|
79
82
|
## Attributes reference
|
|
80
83
|
|
|
81
84
|
All attributes reference are computed
|
|
@@ -125,12 +128,15 @@ def get_nodes_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
125
128
|
|
|
126
129
|
## Example Usage
|
|
127
130
|
|
|
131
|
+
<!--Start PulumiCodeChooser -->
|
|
128
132
|
```python
|
|
129
133
|
import pulumi
|
|
130
134
|
import pulumi_cloudamqp as cloudamqp
|
|
131
135
|
|
|
132
136
|
nodes = cloudamqp.get_nodes(instance_id=cloudamqp_instance["instance"]["id"])
|
|
133
137
|
```
|
|
138
|
+
<!--End PulumiCodeChooser -->
|
|
139
|
+
|
|
134
140
|
## Attributes reference
|
|
135
141
|
|
|
136
142
|
All attributes reference are computed
|
|
@@ -108,6 +108,7 @@ def get_notification(instance_id: Optional[int] = None,
|
|
|
108
108
|
|
|
109
109
|
## Example Usage
|
|
110
110
|
|
|
111
|
+
<!--Start PulumiCodeChooser -->
|
|
111
112
|
```python
|
|
112
113
|
import pulumi
|
|
113
114
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -115,6 +116,8 @@ def get_notification(instance_id: Optional[int] = None,
|
|
|
115
116
|
default_recipient = cloudamqp.get_notification(instance_id=cloudamqp_instance["instance"]["id"],
|
|
116
117
|
name="default")
|
|
117
118
|
```
|
|
119
|
+
<!--End PulumiCodeChooser -->
|
|
120
|
+
|
|
118
121
|
## Attributes reference
|
|
119
122
|
|
|
120
123
|
All attributes reference are computed
|
|
@@ -162,6 +165,7 @@ def get_notification_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
162
165
|
|
|
163
166
|
## Example Usage
|
|
164
167
|
|
|
168
|
+
<!--Start PulumiCodeChooser -->
|
|
165
169
|
```python
|
|
166
170
|
import pulumi
|
|
167
171
|
import pulumi_cloudamqp as cloudamqp
|
|
@@ -169,6 +173,8 @@ def get_notification_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
169
173
|
default_recipient = cloudamqp.get_notification(instance_id=cloudamqp_instance["instance"]["id"],
|
|
170
174
|
name="default")
|
|
171
175
|
```
|
|
176
|
+
<!--End PulumiCodeChooser -->
|
|
177
|
+
|
|
172
178
|
## Attributes reference
|
|
173
179
|
|
|
174
180
|
All attributes reference are computed
|
pulumi_cloudamqp/get_plugins.py
CHANGED
|
@@ -70,12 +70,15 @@ def get_plugins(instance_id: Optional[int] = None,
|
|
|
70
70
|
|
|
71
71
|
## Example Usage
|
|
72
72
|
|
|
73
|
+
<!--Start PulumiCodeChooser -->
|
|
73
74
|
```python
|
|
74
75
|
import pulumi
|
|
75
76
|
import pulumi_cloudamqp as cloudamqp
|
|
76
77
|
|
|
77
78
|
plugins = cloudamqp.get_plugins(instance_id=cloudamqp_instance["instance"]["id"])
|
|
78
79
|
```
|
|
80
|
+
<!--End PulumiCodeChooser -->
|
|
81
|
+
|
|
79
82
|
## Attributes reference
|
|
80
83
|
|
|
81
84
|
All attributes reference are computed
|
|
@@ -122,12 +125,15 @@ def get_plugins_output(instance_id: Optional[pulumi.Input[int]] = None,
|
|
|
122
125
|
|
|
123
126
|
## Example Usage
|
|
124
127
|
|
|
128
|
+
<!--Start PulumiCodeChooser -->
|
|
125
129
|
```python
|
|
126
130
|
import pulumi
|
|
127
131
|
import pulumi_cloudamqp as cloudamqp
|
|
128
132
|
|
|
129
133
|
plugins = cloudamqp.get_plugins(instance_id=cloudamqp_instance["instance"]["id"])
|
|
130
134
|
```
|
|
135
|
+
<!--End PulumiCodeChooser -->
|
|
136
|
+
|
|
131
137
|
## Attributes reference
|
|
132
138
|
|
|
133
139
|
All attributes reference are computed
|
|
@@ -70,12 +70,15 @@ def get_plugins_community(instance_id: Optional[int] = None,
|
|
|
70
70
|
|
|
71
71
|
## Example Usage
|
|
72
72
|
|
|
73
|
+
<!--Start PulumiCodeChooser -->
|
|
73
74
|
```python
|
|
74
75
|
import pulumi
|
|
75
76
|
import pulumi_cloudamqp as cloudamqp
|
|
76
77
|
|
|
77
78
|
communit_plugins = cloudamqp.get_plugins_community(instance_id=cloudamqp_instance["instance"]["id"])
|
|
78
79
|
```
|
|
80
|
+
<!--End PulumiCodeChooser -->
|
|
81
|
+
|
|
79
82
|
## Attributes reference
|
|
80
83
|
|
|
81
84
|
All attributes reference are computed
|
|
@@ -121,12 +124,15 @@ def get_plugins_community_output(instance_id: Optional[pulumi.Input[int]] = None
|
|
|
121
124
|
|
|
122
125
|
## Example Usage
|
|
123
126
|
|
|
127
|
+
<!--Start PulumiCodeChooser -->
|
|
124
128
|
```python
|
|
125
129
|
import pulumi
|
|
126
130
|
import pulumi_cloudamqp as cloudamqp
|
|
127
131
|
|
|
128
132
|
communit_plugins = cloudamqp.get_plugins_community(instance_id=cloudamqp_instance["instance"]["id"])
|
|
129
133
|
```
|
|
134
|
+
<!--End PulumiCodeChooser -->
|
|
135
|
+
|
|
130
136
|
## Attributes reference
|
|
131
137
|
|
|
132
138
|
All attributes reference are computed
|
|
@@ -78,12 +78,15 @@ def get_upgradable_versions(instance_id: Optional[int] = None,
|
|
|
78
78
|
|
|
79
79
|
## Example Usage
|
|
80
80
|
|
|
81
|
+
<!--Start PulumiCodeChooser -->
|
|
81
82
|
```python
|
|
82
83
|
import pulumi
|
|
83
84
|
import pulumi_cloudamqp as cloudamqp
|
|
84
85
|
|
|
85
86
|
versions = cloudamqp.get_upgradable_versions(instance_id=cloudamqp_instance["instance"]["id"])
|
|
86
87
|
```
|
|
88
|
+
<!--End PulumiCodeChooser -->
|
|
89
|
+
|
|
87
90
|
## Attributes reference
|
|
88
91
|
|
|
89
92
|
All attributes reference are computed
|
|
@@ -118,12 +121,15 @@ def get_upgradable_versions_output(instance_id: Optional[pulumi.Input[int]] = No
|
|
|
118
121
|
|
|
119
122
|
## Example Usage
|
|
120
123
|
|
|
124
|
+
<!--Start PulumiCodeChooser -->
|
|
121
125
|
```python
|
|
122
126
|
import pulumi
|
|
123
127
|
import pulumi_cloudamqp as cloudamqp
|
|
124
128
|
|
|
125
129
|
versions = cloudamqp.get_upgradable_versions(instance_id=cloudamqp_instance["instance"]["id"])
|
|
126
130
|
```
|
|
131
|
+
<!--End PulumiCodeChooser -->
|
|
132
|
+
|
|
127
133
|
## Attributes reference
|
|
128
134
|
|
|
129
135
|
All attributes reference are computed
|