pulumi-cloudamqp 3.18.0a1711603348__py3-none-any.whl → 3.18.0a1712318184__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 +100 -2
- {pulumi_cloudamqp-3.18.0a1711603348.dist-info → pulumi_cloudamqp-3.18.0a1712318184.dist-info}/METADATA +1 -1
- {pulumi_cloudamqp-3.18.0a1711603348.dist-info → pulumi_cloudamqp-3.18.0a1712318184.dist-info}/RECORD +5 -5
- {pulumi_cloudamqp-3.18.0a1711603348.dist-info → pulumi_cloudamqp-3.18.0a1712318184.dist-info}/WHEEL +0 -0
- {pulumi_cloudamqp-3.18.0a1711603348.dist-info → pulumi_cloudamqp-3.18.0a1712318184.dist-info}/top_level.txt +0 -0
pulumi_cloudamqp/alarm.py
CHANGED
|
@@ -417,6 +417,13 @@ 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
|
+
|
|
420
427
|
<!--Start PulumiCodeChooser -->
|
|
421
428
|
```python
|
|
422
429
|
import pulumi
|
|
@@ -448,6 +455,38 @@ class Alarm(pulumi.CustomResource):
|
|
|
448
455
|
```
|
|
449
456
|
<!--End PulumiCodeChooser -->
|
|
450
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
|
+
|
|
451
490
|
## Alarm Type reference
|
|
452
491
|
|
|
453
492
|
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
@@ -468,12 +507,22 @@ class Alarm(pulumi.CustomResource):
|
|
|
468
507
|
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
469
508
|
| Notice | notice | ✔ | ✔ | |
|
|
470
509
|
|
|
471
|
-
> 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.
|
|
472
511
|
|
|
473
512
|
## Dependency
|
|
474
513
|
|
|
475
514
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
476
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
|
+
|
|
477
526
|
## Import
|
|
478
527
|
|
|
479
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)
|
|
@@ -515,6 +564,13 @@ class Alarm(pulumi.CustomResource):
|
|
|
515
564
|
|
|
516
565
|
## Example Usage
|
|
517
566
|
|
|
567
|
+
<details>
|
|
568
|
+
<summary>
|
|
569
|
+
<b>
|
|
570
|
+
<i>Basic example of CPU and memory alarm</i>
|
|
571
|
+
</b>
|
|
572
|
+
</summary>
|
|
573
|
+
|
|
518
574
|
<!--Start PulumiCodeChooser -->
|
|
519
575
|
```python
|
|
520
576
|
import pulumi
|
|
@@ -546,6 +602,38 @@ class Alarm(pulumi.CustomResource):
|
|
|
546
602
|
```
|
|
547
603
|
<!--End PulumiCodeChooser -->
|
|
548
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
|
+
|
|
549
637
|
## Alarm Type reference
|
|
550
638
|
|
|
551
639
|
Supported alarm types: `cpu, memory, disk, queue, connection, flow, consumer, netsplit, server_unreachable, notice`
|
|
@@ -566,12 +654,22 @@ class Alarm(pulumi.CustomResource):
|
|
|
566
654
|
| Server unreachable | server_unreachable | - | ✔ | time_threshold |
|
|
567
655
|
| Notice | notice | ✔ | ✔ | |
|
|
568
656
|
|
|
569
|
-
> 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.
|
|
570
658
|
|
|
571
659
|
## Dependency
|
|
572
660
|
|
|
573
661
|
This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
|
|
574
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
|
+
|
|
575
673
|
## Import
|
|
576
674
|
|
|
577
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)
|
{pulumi_cloudamqp-3.18.0a1711603348.dist-info → pulumi_cloudamqp-3.18.0a1712318184.dist-info}/RECORD
RENAMED
|
@@ -2,7 +2,7 @@ pulumi_cloudamqp/__init__.py,sha256=ewe1_AokqUeqzc8ZVq3PWAYhkNk4xBk4V3VNEWhk3uE,
|
|
|
2
2
|
pulumi_cloudamqp/_inputs.py,sha256=oKjcIeymBER8EgwRCQVWe2s7w2oVPdgRZJiltk3XvqQ,8830
|
|
3
3
|
pulumi_cloudamqp/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
|
|
4
4
|
pulumi_cloudamqp/account_action.py,sha256=s-hJMsKAoKNPDUW3sNI-I8jtoLEy6g57e5gQ3nXzk6U,7688
|
|
5
|
-
pulumi_cloudamqp/alarm.py,sha256=
|
|
5
|
+
pulumi_cloudamqp/alarm.py,sha256=Qtedgf2hkAwtP11gSSAkhhEvhe8XQuwYVEWQJAoP7o0,38629
|
|
6
6
|
pulumi_cloudamqp/custom_domain.py,sha256=Wkd2aRnrofFtFls-c4a7kQioE5_Woo4rLYG6LkGJrmQ,10195
|
|
7
7
|
pulumi_cloudamqp/extra_disk_size.py,sha256=hFBEjj6fcL945pJ1ZSMfLC3drkcpYZwa5jYttJeksU4,27058
|
|
8
8
|
pulumi_cloudamqp/get_account.py,sha256=N9vhfkSt8gDTfYhT5JSAu9qXglKv8xkSZgS5ZoLTZQE,5113
|
|
@@ -42,7 +42,7 @@ pulumi_cloudamqp/webhook.py,sha256=E3CcbC2fCP4viiiVA2a7Vk9mGB8-mGn81M-QyREjeIg,1
|
|
|
42
42
|
pulumi_cloudamqp/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
|
43
43
|
pulumi_cloudamqp/config/__init__.pyi,sha256=UHTIxCey3Zv15sJPQ4FzkPz4--aJNEcw9OwBw7Q2kzc,549
|
|
44
44
|
pulumi_cloudamqp/config/vars.py,sha256=oFfIlqwVoffHyMowmkb9op1W1MBcSamLeviHi6IZino,939
|
|
45
|
-
pulumi_cloudamqp-3.18.
|
|
46
|
-
pulumi_cloudamqp-3.18.
|
|
47
|
-
pulumi_cloudamqp-3.18.
|
|
48
|
-
pulumi_cloudamqp-3.18.
|
|
45
|
+
pulumi_cloudamqp-3.18.0a1712318184.dist-info/METADATA,sha256=z0PA8NJZFdwPI40TKpgN89iHuUdQsJ0_bE-D6k1-7m4,2755
|
|
46
|
+
pulumi_cloudamqp-3.18.0a1712318184.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
47
|
+
pulumi_cloudamqp-3.18.0a1712318184.dist-info/top_level.txt,sha256=GzOcAz5c3r2TOma1_ftIXuXYIElI_XHfdRiJARoRz2g,17
|
|
48
|
+
pulumi_cloudamqp-3.18.0a1712318184.dist-info/RECORD,,
|
{pulumi_cloudamqp-3.18.0a1711603348.dist-info → pulumi_cloudamqp-3.18.0a1712318184.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|