pulumi-cloudamqp 3.18.0a1709359306__py3-none-any.whl → 3.21.0a1736832130__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/__init__.py +9 -0
- pulumi_cloudamqp/_inputs.py +157 -6
- pulumi_cloudamqp/_utilities.py +41 -5
- pulumi_cloudamqp/account_action.py +5 -0
- pulumi_cloudamqp/alarm.py +5 -124
- pulumi_cloudamqp/config/__init__.pyi +5 -0
- pulumi_cloudamqp/config/vars.py +5 -0
- pulumi_cloudamqp/custom_domain.py +9 -2
- pulumi_cloudamqp/extra_disk_size.py +46 -15
- pulumi_cloudamqp/get_account.py +12 -71
- pulumi_cloudamqp/get_account_vpcs.py +14 -5
- pulumi_cloudamqp/get_alarm.py +31 -7
- pulumi_cloudamqp/get_credentials.py +19 -7
- pulumi_cloudamqp/get_instance.py +30 -47
- pulumi_cloudamqp/get_nodes.py +22 -7
- pulumi_cloudamqp/get_notification.py +25 -7
- pulumi_cloudamqp/get_plugins.py +51 -10
- pulumi_cloudamqp/get_plugins_community.py +51 -10
- pulumi_cloudamqp/get_upgradable_versions.py +19 -7
- pulumi_cloudamqp/get_vpc_gcp_info.py +28 -9
- pulumi_cloudamqp/get_vpc_info.py +25 -9
- pulumi_cloudamqp/instance.py +70 -115
- pulumi_cloudamqp/integration_aws_eventbridge.py +11 -2
- pulumi_cloudamqp/integration_log.py +432 -43
- pulumi_cloudamqp/integration_metric.py +326 -23
- pulumi_cloudamqp/node_actions.py +59 -46
- pulumi_cloudamqp/notification.py +118 -61
- pulumi_cloudamqp/outputs.py +71 -60
- pulumi_cloudamqp/plugin.py +54 -35
- pulumi_cloudamqp/plugin_community.py +56 -37
- pulumi_cloudamqp/privatelink_aws.py +49 -60
- pulumi_cloudamqp/privatelink_azure.py +49 -60
- pulumi_cloudamqp/provider.py +5 -5
- pulumi_cloudamqp/pulumi-plugin.json +2 -1
- pulumi_cloudamqp/rabbit_configuration.py +5 -0
- pulumi_cloudamqp/security_firewall.py +70 -24
- pulumi_cloudamqp/upgrade_lavinmq.py +276 -0
- pulumi_cloudamqp/upgrade_rabbitmq.py +300 -27
- pulumi_cloudamqp/vpc.py +17 -6
- pulumi_cloudamqp/vpc_connect.py +63 -80
- pulumi_cloudamqp/vpc_gcp_peering.py +310 -103
- pulumi_cloudamqp/vpc_peering.py +19 -2
- pulumi_cloudamqp/webhook.py +91 -84
- {pulumi_cloudamqp-3.18.0a1709359306.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/METADATA +7 -6
- pulumi_cloudamqp-3.21.0a1736832130.dist-info/RECORD +49 -0
- {pulumi_cloudamqp-3.18.0a1709359306.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/WHEEL +1 -1
- pulumi_cloudamqp-3.18.0a1709359306.dist-info/RECORD +0 -48
- {pulumi_cloudamqp-3.18.0a1709359306.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['IntegrationMetricArgs', 'IntegrationMetric']
|
|
@@ -273,13 +278,11 @@ class IntegrationMetricArgs:
|
|
|
273
278
|
|
|
274
279
|
@property
|
|
275
280
|
@pulumi.getter(name="queueWhitelist")
|
|
281
|
+
@_utilities.deprecated("""use queue_allowlist instead""")
|
|
276
282
|
def queue_whitelist(self) -> Optional[pulumi.Input[str]]:
|
|
277
283
|
"""
|
|
278
284
|
**Deprecated**
|
|
279
285
|
"""
|
|
280
|
-
warnings.warn("""use queue_allowlist instead""", DeprecationWarning)
|
|
281
|
-
pulumi.log.warn("""queue_whitelist is deprecated: use queue_allowlist instead""")
|
|
282
|
-
|
|
283
286
|
return pulumi.get(self, "queue_whitelist")
|
|
284
287
|
|
|
285
288
|
@queue_whitelist.setter
|
|
@@ -336,13 +339,11 @@ class IntegrationMetricArgs:
|
|
|
336
339
|
|
|
337
340
|
@property
|
|
338
341
|
@pulumi.getter(name="vhostWhitelist")
|
|
342
|
+
@_utilities.deprecated("""use vhost_allowlist instead""")
|
|
339
343
|
def vhost_whitelist(self) -> Optional[pulumi.Input[str]]:
|
|
340
344
|
"""
|
|
341
345
|
**Deprecated**
|
|
342
346
|
"""
|
|
343
|
-
warnings.warn("""use vhost_allowlist instead""", DeprecationWarning)
|
|
344
|
-
pulumi.log.warn("""vhost_whitelist is deprecated: use vhost_allowlist instead""")
|
|
345
|
-
|
|
346
347
|
return pulumi.get(self, "vhost_whitelist")
|
|
347
348
|
|
|
348
349
|
@vhost_whitelist.setter
|
|
@@ -613,13 +614,11 @@ class _IntegrationMetricState:
|
|
|
613
614
|
|
|
614
615
|
@property
|
|
615
616
|
@pulumi.getter(name="queueWhitelist")
|
|
617
|
+
@_utilities.deprecated("""use queue_allowlist instead""")
|
|
616
618
|
def queue_whitelist(self) -> Optional[pulumi.Input[str]]:
|
|
617
619
|
"""
|
|
618
620
|
**Deprecated**
|
|
619
621
|
"""
|
|
620
|
-
warnings.warn("""use queue_allowlist instead""", DeprecationWarning)
|
|
621
|
-
pulumi.log.warn("""queue_whitelist is deprecated: use queue_allowlist instead""")
|
|
622
|
-
|
|
623
622
|
return pulumi.get(self, "queue_whitelist")
|
|
624
623
|
|
|
625
624
|
@queue_whitelist.setter
|
|
@@ -676,13 +675,11 @@ class _IntegrationMetricState:
|
|
|
676
675
|
|
|
677
676
|
@property
|
|
678
677
|
@pulumi.getter(name="vhostWhitelist")
|
|
678
|
+
@_utilities.deprecated("""use vhost_allowlist instead""")
|
|
679
679
|
def vhost_whitelist(self) -> Optional[pulumi.Input[str]]:
|
|
680
680
|
"""
|
|
681
681
|
**Deprecated**
|
|
682
682
|
"""
|
|
683
|
-
warnings.warn("""use vhost_allowlist instead""", DeprecationWarning)
|
|
684
|
-
pulumi.log.warn("""vhost_whitelist is deprecated: use vhost_allowlist instead""")
|
|
685
|
-
|
|
686
683
|
return pulumi.get(self, "vhost_whitelist")
|
|
687
684
|
|
|
688
685
|
@vhost_whitelist.setter
|
|
@@ -717,7 +714,162 @@ class IntegrationMetric(pulumi.CustomResource):
|
|
|
717
714
|
vhost_whitelist: Optional[pulumi.Input[str]] = None,
|
|
718
715
|
__props__=None):
|
|
719
716
|
"""
|
|
720
|
-
|
|
717
|
+
This resource allows you to create and manage, forwarding metrics to third party integrations for a CloudAMQP instance. Once configured, the metrics produced will be forward to corresponding integration.
|
|
718
|
+
|
|
719
|
+
Only available for dedicated subscription plans.
|
|
720
|
+
|
|
721
|
+
## Example Usage
|
|
722
|
+
|
|
723
|
+
<details>
|
|
724
|
+
<summary>
|
|
725
|
+
<b>
|
|
726
|
+
<i>Cloudwatch v1 and v2 metric integration</i>
|
|
727
|
+
</b>
|
|
728
|
+
</summary>
|
|
729
|
+
|
|
730
|
+
***Access key***
|
|
731
|
+
|
|
732
|
+
```python
|
|
733
|
+
import pulumi
|
|
734
|
+
import pulumi_cloudamqp as cloudamqp
|
|
735
|
+
|
|
736
|
+
cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
|
|
737
|
+
instance_id=instance["id"],
|
|
738
|
+
name="cloudwatch",
|
|
739
|
+
access_key_id=aws_access_key_id,
|
|
740
|
+
secret_access_key=var_aws_secret_acccess_key,
|
|
741
|
+
region=aws_region)
|
|
742
|
+
cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
|
|
743
|
+
instance_id=instance["id"],
|
|
744
|
+
name="cloudwatch_v2",
|
|
745
|
+
access_key_id=aws_access_key_id,
|
|
746
|
+
secret_access_key=var_aws_secret_acccess_key,
|
|
747
|
+
region=aws_region)
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
***Assume role***
|
|
751
|
+
|
|
752
|
+
```python
|
|
753
|
+
import pulumi
|
|
754
|
+
import pulumi_cloudamqp as cloudamqp
|
|
755
|
+
|
|
756
|
+
cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
|
|
757
|
+
instance_id=instance["id"],
|
|
758
|
+
name="cloudwatch",
|
|
759
|
+
iam_role=aws_iam_role,
|
|
760
|
+
iam_external_id=external_id,
|
|
761
|
+
region=aws_region)
|
|
762
|
+
cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
|
|
763
|
+
instance_id=instance["id"],
|
|
764
|
+
name="cloudwatch_v2",
|
|
765
|
+
iam_role=aws_iam_role,
|
|
766
|
+
iam_external_id=external_id,
|
|
767
|
+
region=aws_region)
|
|
768
|
+
```
|
|
769
|
+
|
|
770
|
+
* AWS IAM role: arn:aws:iam::ACCOUNT-ID:role/ROLE-NAME
|
|
771
|
+
* External id: Create own external identifier that match the role created. E.g. "cloudamqp-abc123".
|
|
772
|
+
|
|
773
|
+
</details>
|
|
774
|
+
|
|
775
|
+
<details>
|
|
776
|
+
<summary>
|
|
777
|
+
<b>
|
|
778
|
+
<i>Datadog v1 and v2 metric integration</i>
|
|
779
|
+
</b>
|
|
780
|
+
</summary>
|
|
781
|
+
|
|
782
|
+
```python
|
|
783
|
+
import pulumi
|
|
784
|
+
import pulumi_cloudamqp as cloudamqp
|
|
785
|
+
|
|
786
|
+
datadog = cloudamqp.IntegrationMetric("datadog",
|
|
787
|
+
instance_id=instance["id"],
|
|
788
|
+
name="datadog",
|
|
789
|
+
api_key=datadog_api_key,
|
|
790
|
+
region=datadog_region,
|
|
791
|
+
tags="env=prod,region=us1,version=v1.0")
|
|
792
|
+
datadog_v2 = cloudamqp.IntegrationMetric("datadog_v2",
|
|
793
|
+
instance_id=instance["id"],
|
|
794
|
+
name="datadog_v2",
|
|
795
|
+
api_key=datadog_api_key,
|
|
796
|
+
region=datadog_region,
|
|
797
|
+
tags="env=prod,region=us1,version=v1.0")
|
|
798
|
+
```
|
|
799
|
+
|
|
800
|
+
</details>
|
|
801
|
+
|
|
802
|
+
<details>
|
|
803
|
+
<summary>
|
|
804
|
+
<b>
|
|
805
|
+
<i>Librato metric integration</i>
|
|
806
|
+
</b>
|
|
807
|
+
</summary>
|
|
808
|
+
|
|
809
|
+
```python
|
|
810
|
+
import pulumi
|
|
811
|
+
import pulumi_cloudamqp as cloudamqp
|
|
812
|
+
|
|
813
|
+
librato = cloudamqp.IntegrationMetric("librato",
|
|
814
|
+
instance_id=instance["id"],
|
|
815
|
+
name="librato",
|
|
816
|
+
email=librato_email,
|
|
817
|
+
api_key=librato_api_key)
|
|
818
|
+
```
|
|
819
|
+
|
|
820
|
+
</details>
|
|
821
|
+
|
|
822
|
+
<details>
|
|
823
|
+
<summary>
|
|
824
|
+
<b>
|
|
825
|
+
<i>New relic v2 metric integration</i>
|
|
826
|
+
</b>
|
|
827
|
+
</summary>
|
|
828
|
+
|
|
829
|
+
```python
|
|
830
|
+
import pulumi
|
|
831
|
+
import pulumi_cloudamqp as cloudamqp
|
|
832
|
+
|
|
833
|
+
newrelic = cloudamqp.IntegrationMetric("newrelic",
|
|
834
|
+
instance_id=instance["id"],
|
|
835
|
+
name="newrelic_v2",
|
|
836
|
+
api_key=newrelic_api_key,
|
|
837
|
+
region=newrelic_region)
|
|
838
|
+
```
|
|
839
|
+
|
|
840
|
+
</details>
|
|
841
|
+
|
|
842
|
+
<details>
|
|
843
|
+
<summary>
|
|
844
|
+
<b>
|
|
845
|
+
<i>Stackdriver metric integration (v1.20.2 or earlier versions)</i>
|
|
846
|
+
</b>
|
|
847
|
+
</summary>
|
|
848
|
+
|
|
849
|
+
Use variable file populated with project_id, private_key and client_email
|
|
850
|
+
|
|
851
|
+
```python
|
|
852
|
+
import pulumi
|
|
853
|
+
import pulumi_cloudamqp as cloudamqp
|
|
854
|
+
|
|
855
|
+
stackdriver = cloudamqp.IntegrationMetric("stackdriver",
|
|
856
|
+
instance_id=instance["id"],
|
|
857
|
+
name="stackdriver",
|
|
858
|
+
project_id=stackdriver_project_id,
|
|
859
|
+
private_key=stackdriver_private_key,
|
|
860
|
+
client_email=stackriver_email)
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
or by using google_service_account_key resource from Google provider
|
|
864
|
+
|
|
865
|
+
## Import
|
|
866
|
+
|
|
867
|
+
`cloudamqp_integration_metric`can be imported using the resource identifier together with CloudAMQP instance identifier. The name and identifier are CSV separated, see example below.
|
|
868
|
+
|
|
869
|
+
```sh
|
|
870
|
+
$ pulumi import cloudamqp:index/integrationMetric:IntegrationMetric <resource_name> <resource_id>,<instance_id>`
|
|
871
|
+
```
|
|
872
|
+
|
|
721
873
|
:param str resource_name: The name of the resource.
|
|
722
874
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
723
875
|
:param pulumi.Input[str] access_key_id: AWS access key identifier. (Cloudwatch)
|
|
@@ -748,7 +900,162 @@ class IntegrationMetric(pulumi.CustomResource):
|
|
|
748
900
|
args: IntegrationMetricArgs,
|
|
749
901
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
750
902
|
"""
|
|
751
|
-
|
|
903
|
+
This resource allows you to create and manage, forwarding metrics to third party integrations for a CloudAMQP instance. Once configured, the metrics produced will be forward to corresponding integration.
|
|
904
|
+
|
|
905
|
+
Only available for dedicated subscription plans.
|
|
906
|
+
|
|
907
|
+
## Example Usage
|
|
908
|
+
|
|
909
|
+
<details>
|
|
910
|
+
<summary>
|
|
911
|
+
<b>
|
|
912
|
+
<i>Cloudwatch v1 and v2 metric integration</i>
|
|
913
|
+
</b>
|
|
914
|
+
</summary>
|
|
915
|
+
|
|
916
|
+
***Access key***
|
|
917
|
+
|
|
918
|
+
```python
|
|
919
|
+
import pulumi
|
|
920
|
+
import pulumi_cloudamqp as cloudamqp
|
|
921
|
+
|
|
922
|
+
cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
|
|
923
|
+
instance_id=instance["id"],
|
|
924
|
+
name="cloudwatch",
|
|
925
|
+
access_key_id=aws_access_key_id,
|
|
926
|
+
secret_access_key=var_aws_secret_acccess_key,
|
|
927
|
+
region=aws_region)
|
|
928
|
+
cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
|
|
929
|
+
instance_id=instance["id"],
|
|
930
|
+
name="cloudwatch_v2",
|
|
931
|
+
access_key_id=aws_access_key_id,
|
|
932
|
+
secret_access_key=var_aws_secret_acccess_key,
|
|
933
|
+
region=aws_region)
|
|
934
|
+
```
|
|
935
|
+
|
|
936
|
+
***Assume role***
|
|
937
|
+
|
|
938
|
+
```python
|
|
939
|
+
import pulumi
|
|
940
|
+
import pulumi_cloudamqp as cloudamqp
|
|
941
|
+
|
|
942
|
+
cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
|
|
943
|
+
instance_id=instance["id"],
|
|
944
|
+
name="cloudwatch",
|
|
945
|
+
iam_role=aws_iam_role,
|
|
946
|
+
iam_external_id=external_id,
|
|
947
|
+
region=aws_region)
|
|
948
|
+
cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
|
|
949
|
+
instance_id=instance["id"],
|
|
950
|
+
name="cloudwatch_v2",
|
|
951
|
+
iam_role=aws_iam_role,
|
|
952
|
+
iam_external_id=external_id,
|
|
953
|
+
region=aws_region)
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
* AWS IAM role: arn:aws:iam::ACCOUNT-ID:role/ROLE-NAME
|
|
957
|
+
* External id: Create own external identifier that match the role created. E.g. "cloudamqp-abc123".
|
|
958
|
+
|
|
959
|
+
</details>
|
|
960
|
+
|
|
961
|
+
<details>
|
|
962
|
+
<summary>
|
|
963
|
+
<b>
|
|
964
|
+
<i>Datadog v1 and v2 metric integration</i>
|
|
965
|
+
</b>
|
|
966
|
+
</summary>
|
|
967
|
+
|
|
968
|
+
```python
|
|
969
|
+
import pulumi
|
|
970
|
+
import pulumi_cloudamqp as cloudamqp
|
|
971
|
+
|
|
972
|
+
datadog = cloudamqp.IntegrationMetric("datadog",
|
|
973
|
+
instance_id=instance["id"],
|
|
974
|
+
name="datadog",
|
|
975
|
+
api_key=datadog_api_key,
|
|
976
|
+
region=datadog_region,
|
|
977
|
+
tags="env=prod,region=us1,version=v1.0")
|
|
978
|
+
datadog_v2 = cloudamqp.IntegrationMetric("datadog_v2",
|
|
979
|
+
instance_id=instance["id"],
|
|
980
|
+
name="datadog_v2",
|
|
981
|
+
api_key=datadog_api_key,
|
|
982
|
+
region=datadog_region,
|
|
983
|
+
tags="env=prod,region=us1,version=v1.0")
|
|
984
|
+
```
|
|
985
|
+
|
|
986
|
+
</details>
|
|
987
|
+
|
|
988
|
+
<details>
|
|
989
|
+
<summary>
|
|
990
|
+
<b>
|
|
991
|
+
<i>Librato metric integration</i>
|
|
992
|
+
</b>
|
|
993
|
+
</summary>
|
|
994
|
+
|
|
995
|
+
```python
|
|
996
|
+
import pulumi
|
|
997
|
+
import pulumi_cloudamqp as cloudamqp
|
|
998
|
+
|
|
999
|
+
librato = cloudamqp.IntegrationMetric("librato",
|
|
1000
|
+
instance_id=instance["id"],
|
|
1001
|
+
name="librato",
|
|
1002
|
+
email=librato_email,
|
|
1003
|
+
api_key=librato_api_key)
|
|
1004
|
+
```
|
|
1005
|
+
|
|
1006
|
+
</details>
|
|
1007
|
+
|
|
1008
|
+
<details>
|
|
1009
|
+
<summary>
|
|
1010
|
+
<b>
|
|
1011
|
+
<i>New relic v2 metric integration</i>
|
|
1012
|
+
</b>
|
|
1013
|
+
</summary>
|
|
1014
|
+
|
|
1015
|
+
```python
|
|
1016
|
+
import pulumi
|
|
1017
|
+
import pulumi_cloudamqp as cloudamqp
|
|
1018
|
+
|
|
1019
|
+
newrelic = cloudamqp.IntegrationMetric("newrelic",
|
|
1020
|
+
instance_id=instance["id"],
|
|
1021
|
+
name="newrelic_v2",
|
|
1022
|
+
api_key=newrelic_api_key,
|
|
1023
|
+
region=newrelic_region)
|
|
1024
|
+
```
|
|
1025
|
+
|
|
1026
|
+
</details>
|
|
1027
|
+
|
|
1028
|
+
<details>
|
|
1029
|
+
<summary>
|
|
1030
|
+
<b>
|
|
1031
|
+
<i>Stackdriver metric integration (v1.20.2 or earlier versions)</i>
|
|
1032
|
+
</b>
|
|
1033
|
+
</summary>
|
|
1034
|
+
|
|
1035
|
+
Use variable file populated with project_id, private_key and client_email
|
|
1036
|
+
|
|
1037
|
+
```python
|
|
1038
|
+
import pulumi
|
|
1039
|
+
import pulumi_cloudamqp as cloudamqp
|
|
1040
|
+
|
|
1041
|
+
stackdriver = cloudamqp.IntegrationMetric("stackdriver",
|
|
1042
|
+
instance_id=instance["id"],
|
|
1043
|
+
name="stackdriver",
|
|
1044
|
+
project_id=stackdriver_project_id,
|
|
1045
|
+
private_key=stackdriver_private_key,
|
|
1046
|
+
client_email=stackriver_email)
|
|
1047
|
+
```
|
|
1048
|
+
|
|
1049
|
+
or by using google_service_account_key resource from Google provider
|
|
1050
|
+
|
|
1051
|
+
## Import
|
|
1052
|
+
|
|
1053
|
+
`cloudamqp_integration_metric`can be imported using the resource identifier together with CloudAMQP instance identifier. The name and identifier are CSV separated, see example below.
|
|
1054
|
+
|
|
1055
|
+
```sh
|
|
1056
|
+
$ pulumi import cloudamqp:index/integrationMetric:IntegrationMetric <resource_name> <resource_id>,<instance_id>`
|
|
1057
|
+
```
|
|
1058
|
+
|
|
752
1059
|
:param str resource_name: The name of the resource.
|
|
753
1060
|
:param IntegrationMetricArgs args: The arguments to use to populate this resource's properties.
|
|
754
1061
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -794,7 +1101,7 @@ class IntegrationMetric(pulumi.CustomResource):
|
|
|
794
1101
|
__props__ = IntegrationMetricArgs.__new__(IntegrationMetricArgs)
|
|
795
1102
|
|
|
796
1103
|
__props__.__dict__["access_key_id"] = access_key_id
|
|
797
|
-
__props__.__dict__["api_key"] = api_key
|
|
1104
|
+
__props__.__dict__["api_key"] = None if api_key is None else pulumi.Output.secret(api_key)
|
|
798
1105
|
__props__.__dict__["client_email"] = client_email
|
|
799
1106
|
__props__.__dict__["credentials"] = None if credentials is None else pulumi.Output.secret(credentials)
|
|
800
1107
|
__props__.__dict__["email"] = email
|
|
@@ -803,7 +1110,7 @@ class IntegrationMetric(pulumi.CustomResource):
|
|
|
803
1110
|
if instance_id is None and not opts.urn:
|
|
804
1111
|
raise TypeError("Missing required property 'instance_id'")
|
|
805
1112
|
__props__.__dict__["instance_id"] = instance_id
|
|
806
|
-
__props__.__dict__["license_key"] = license_key
|
|
1113
|
+
__props__.__dict__["license_key"] = None if license_key is None else pulumi.Output.secret(license_key)
|
|
807
1114
|
__props__.__dict__["name"] = name
|
|
808
1115
|
__props__.__dict__["private_key"] = None if private_key is None else pulumi.Output.secret(private_key)
|
|
809
1116
|
__props__.__dict__["private_key_id"] = None if private_key_id is None else pulumi.Output.secret(private_key_id)
|
|
@@ -815,7 +1122,7 @@ class IntegrationMetric(pulumi.CustomResource):
|
|
|
815
1122
|
__props__.__dict__["tags"] = tags
|
|
816
1123
|
__props__.__dict__["vhost_allowlist"] = vhost_allowlist
|
|
817
1124
|
__props__.__dict__["vhost_whitelist"] = vhost_whitelist
|
|
818
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["credentials", "privateKey", "privateKeyId", "secretAccessKey"])
|
|
1125
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["apiKey", "credentials", "licenseKey", "privateKey", "privateKeyId", "secretAccessKey"])
|
|
819
1126
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
820
1127
|
super(IntegrationMetric, __self__).__init__(
|
|
821
1128
|
'cloudamqp:index/integrationMetric:IntegrationMetric',
|
|
@@ -1015,13 +1322,11 @@ class IntegrationMetric(pulumi.CustomResource):
|
|
|
1015
1322
|
|
|
1016
1323
|
@property
|
|
1017
1324
|
@pulumi.getter(name="queueWhitelist")
|
|
1325
|
+
@_utilities.deprecated("""use queue_allowlist instead""")
|
|
1018
1326
|
def queue_whitelist(self) -> pulumi.Output[Optional[str]]:
|
|
1019
1327
|
"""
|
|
1020
1328
|
**Deprecated**
|
|
1021
1329
|
"""
|
|
1022
|
-
warnings.warn("""use queue_allowlist instead""", DeprecationWarning)
|
|
1023
|
-
pulumi.log.warn("""queue_whitelist is deprecated: use queue_allowlist instead""")
|
|
1024
|
-
|
|
1025
1330
|
return pulumi.get(self, "queue_whitelist")
|
|
1026
1331
|
|
|
1027
1332
|
@property
|
|
@@ -1058,12 +1363,10 @@ class IntegrationMetric(pulumi.CustomResource):
|
|
|
1058
1363
|
|
|
1059
1364
|
@property
|
|
1060
1365
|
@pulumi.getter(name="vhostWhitelist")
|
|
1366
|
+
@_utilities.deprecated("""use vhost_allowlist instead""")
|
|
1061
1367
|
def vhost_whitelist(self) -> pulumi.Output[Optional[str]]:
|
|
1062
1368
|
"""
|
|
1063
1369
|
**Deprecated**
|
|
1064
1370
|
"""
|
|
1065
|
-
warnings.warn("""use vhost_allowlist instead""", DeprecationWarning)
|
|
1066
|
-
pulumi.log.warn("""vhost_whitelist is deprecated: use vhost_allowlist instead""")
|
|
1067
|
-
|
|
1068
1371
|
return pulumi.get(self, "vhost_whitelist")
|
|
1069
1372
|
|
pulumi_cloudamqp/node_actions.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['NodeActionsArgs', 'NodeActions']
|
|
@@ -164,11 +169,12 @@ class NodeActions(pulumi.CustomResource):
|
|
|
164
169
|
import pulumi_cloudamqp as cloudamqp
|
|
165
170
|
|
|
166
171
|
# New recipient to receieve notifications
|
|
167
|
-
node_action = cloudamqp.NodeActions("
|
|
168
|
-
instance_id=
|
|
172
|
+
node_action = cloudamqp.NodeActions("node_action",
|
|
173
|
+
instance_id=instance["id"],
|
|
169
174
|
node_name="<node name>",
|
|
170
175
|
action="restart")
|
|
171
176
|
```
|
|
177
|
+
|
|
172
178
|
</details>
|
|
173
179
|
|
|
174
180
|
Using data source `get_nodes` to restart RabbitMQ on all nodes.</br>
|
|
@@ -185,25 +191,26 @@ class NodeActions(pulumi.CustomResource):
|
|
|
185
191
|
import pulumi
|
|
186
192
|
import pulumi_cloudamqp as cloudamqp
|
|
187
193
|
|
|
188
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
189
|
-
restart01 = cloudamqp.NodeActions("
|
|
190
|
-
instance_id=
|
|
194
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
195
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
196
|
+
instance_id=instance["id"],
|
|
191
197
|
action="restart",
|
|
192
198
|
node_name=list_nodes.nodes[0].name)
|
|
193
|
-
restart02 = cloudamqp.NodeActions("
|
|
194
|
-
instance_id=
|
|
199
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
200
|
+
instance_id=instance["id"],
|
|
195
201
|
action="restart",
|
|
196
202
|
node_name=list_nodes.nodes[1].name,
|
|
197
|
-
opts=pulumi.ResourceOptions(depends_on=[restart01]))
|
|
198
|
-
restart03 = cloudamqp.NodeActions("
|
|
199
|
-
instance_id=
|
|
203
|
+
opts = pulumi.ResourceOptions(depends_on=[restart01]))
|
|
204
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
205
|
+
instance_id=instance["id"],
|
|
200
206
|
action="restart",
|
|
201
207
|
node_name=list_nodes.nodes[2].name,
|
|
202
|
-
opts=pulumi.ResourceOptions(depends_on=[
|
|
208
|
+
opts = pulumi.ResourceOptions(depends_on=[
|
|
203
209
|
restart01,
|
|
204
210
|
restart02,
|
|
205
211
|
]))
|
|
206
212
|
```
|
|
213
|
+
|
|
207
214
|
</details>
|
|
208
215
|
|
|
209
216
|
<details>
|
|
@@ -217,34 +224,36 @@ class NodeActions(pulumi.CustomResource):
|
|
|
217
224
|
import pulumi
|
|
218
225
|
import pulumi_cloudamqp as cloudamqp
|
|
219
226
|
|
|
220
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
221
|
-
rabbitmq_config = cloudamqp.RabbitConfiguration("
|
|
222
|
-
instance_id=
|
|
227
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
228
|
+
rabbitmq_config = cloudamqp.RabbitConfiguration("rabbitmq_config",
|
|
229
|
+
instance_id=instance["id"],
|
|
223
230
|
log_exchange_level="info")
|
|
224
|
-
restart01 = cloudamqp.NodeActions("
|
|
225
|
-
instance_id=
|
|
231
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
232
|
+
instance_id=instance["id"],
|
|
226
233
|
action="restart",
|
|
227
234
|
node_name=list_nodes.nodes[0].name,
|
|
228
|
-
opts=pulumi.ResourceOptions(depends_on=[rabbitmq_config]))
|
|
229
|
-
restart02 = cloudamqp.NodeActions("
|
|
230
|
-
instance_id=
|
|
235
|
+
opts = pulumi.ResourceOptions(depends_on=[rabbitmq_config]))
|
|
236
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
237
|
+
instance_id=instance["id"],
|
|
231
238
|
action="restart",
|
|
232
239
|
node_name=list_nodes.nodes[1].name,
|
|
233
|
-
opts=pulumi.ResourceOptions(depends_on=[
|
|
240
|
+
opts = pulumi.ResourceOptions(depends_on=[
|
|
234
241
|
rabbitmq_config,
|
|
235
242
|
restart01,
|
|
236
243
|
]))
|
|
237
|
-
restart03 = cloudamqp.NodeActions("
|
|
238
|
-
instance_id=
|
|
244
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
245
|
+
instance_id=instance["id"],
|
|
239
246
|
action="restart",
|
|
240
247
|
node_name=list_nodes.nodes[2].name,
|
|
241
|
-
opts=pulumi.ResourceOptions(depends_on=[
|
|
248
|
+
opts = pulumi.ResourceOptions(depends_on=[
|
|
242
249
|
rabbitmq_config,
|
|
243
250
|
restart01,
|
|
244
251
|
restart02,
|
|
245
252
|
]))
|
|
246
253
|
```
|
|
254
|
+
|
|
247
255
|
</details>
|
|
256
|
+
|
|
248
257
|
## Action reference
|
|
249
258
|
|
|
250
259
|
Valid options for action.
|
|
@@ -296,11 +305,12 @@ class NodeActions(pulumi.CustomResource):
|
|
|
296
305
|
import pulumi_cloudamqp as cloudamqp
|
|
297
306
|
|
|
298
307
|
# New recipient to receieve notifications
|
|
299
|
-
node_action = cloudamqp.NodeActions("
|
|
300
|
-
instance_id=
|
|
308
|
+
node_action = cloudamqp.NodeActions("node_action",
|
|
309
|
+
instance_id=instance["id"],
|
|
301
310
|
node_name="<node name>",
|
|
302
311
|
action="restart")
|
|
303
312
|
```
|
|
313
|
+
|
|
304
314
|
</details>
|
|
305
315
|
|
|
306
316
|
Using data source `get_nodes` to restart RabbitMQ on all nodes.</br>
|
|
@@ -317,25 +327,26 @@ class NodeActions(pulumi.CustomResource):
|
|
|
317
327
|
import pulumi
|
|
318
328
|
import pulumi_cloudamqp as cloudamqp
|
|
319
329
|
|
|
320
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
321
|
-
restart01 = cloudamqp.NodeActions("
|
|
322
|
-
instance_id=
|
|
330
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
331
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
332
|
+
instance_id=instance["id"],
|
|
323
333
|
action="restart",
|
|
324
334
|
node_name=list_nodes.nodes[0].name)
|
|
325
|
-
restart02 = cloudamqp.NodeActions("
|
|
326
|
-
instance_id=
|
|
335
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
336
|
+
instance_id=instance["id"],
|
|
327
337
|
action="restart",
|
|
328
338
|
node_name=list_nodes.nodes[1].name,
|
|
329
|
-
opts=pulumi.ResourceOptions(depends_on=[restart01]))
|
|
330
|
-
restart03 = cloudamqp.NodeActions("
|
|
331
|
-
instance_id=
|
|
339
|
+
opts = pulumi.ResourceOptions(depends_on=[restart01]))
|
|
340
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
341
|
+
instance_id=instance["id"],
|
|
332
342
|
action="restart",
|
|
333
343
|
node_name=list_nodes.nodes[2].name,
|
|
334
|
-
opts=pulumi.ResourceOptions(depends_on=[
|
|
344
|
+
opts = pulumi.ResourceOptions(depends_on=[
|
|
335
345
|
restart01,
|
|
336
346
|
restart02,
|
|
337
347
|
]))
|
|
338
348
|
```
|
|
349
|
+
|
|
339
350
|
</details>
|
|
340
351
|
|
|
341
352
|
<details>
|
|
@@ -349,34 +360,36 @@ class NodeActions(pulumi.CustomResource):
|
|
|
349
360
|
import pulumi
|
|
350
361
|
import pulumi_cloudamqp as cloudamqp
|
|
351
362
|
|
|
352
|
-
list_nodes = cloudamqp.get_nodes(instance_id=
|
|
353
|
-
rabbitmq_config = cloudamqp.RabbitConfiguration("
|
|
354
|
-
instance_id=
|
|
363
|
+
list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
|
|
364
|
+
rabbitmq_config = cloudamqp.RabbitConfiguration("rabbitmq_config",
|
|
365
|
+
instance_id=instance["id"],
|
|
355
366
|
log_exchange_level="info")
|
|
356
|
-
restart01 = cloudamqp.NodeActions("
|
|
357
|
-
instance_id=
|
|
367
|
+
restart01 = cloudamqp.NodeActions("restart_01",
|
|
368
|
+
instance_id=instance["id"],
|
|
358
369
|
action="restart",
|
|
359
370
|
node_name=list_nodes.nodes[0].name,
|
|
360
|
-
opts=pulumi.ResourceOptions(depends_on=[rabbitmq_config]))
|
|
361
|
-
restart02 = cloudamqp.NodeActions("
|
|
362
|
-
instance_id=
|
|
371
|
+
opts = pulumi.ResourceOptions(depends_on=[rabbitmq_config]))
|
|
372
|
+
restart02 = cloudamqp.NodeActions("restart_02",
|
|
373
|
+
instance_id=instance["id"],
|
|
363
374
|
action="restart",
|
|
364
375
|
node_name=list_nodes.nodes[1].name,
|
|
365
|
-
opts=pulumi.ResourceOptions(depends_on=[
|
|
376
|
+
opts = pulumi.ResourceOptions(depends_on=[
|
|
366
377
|
rabbitmq_config,
|
|
367
378
|
restart01,
|
|
368
379
|
]))
|
|
369
|
-
restart03 = cloudamqp.NodeActions("
|
|
370
|
-
instance_id=
|
|
380
|
+
restart03 = cloudamqp.NodeActions("restart_03",
|
|
381
|
+
instance_id=instance["id"],
|
|
371
382
|
action="restart",
|
|
372
383
|
node_name=list_nodes.nodes[2].name,
|
|
373
|
-
opts=pulumi.ResourceOptions(depends_on=[
|
|
384
|
+
opts = pulumi.ResourceOptions(depends_on=[
|
|
374
385
|
rabbitmq_config,
|
|
375
386
|
restart01,
|
|
376
387
|
restart02,
|
|
377
388
|
]))
|
|
378
389
|
```
|
|
390
|
+
|
|
379
391
|
</details>
|
|
392
|
+
|
|
380
393
|
## Action reference
|
|
381
394
|
|
|
382
395
|
Valid options for action.
|