pulumi-cloudamqp 3.18.0a1718169430__py3-none-any.whl → 3.18.0a1718244895__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.

@@ -717,7 +717,162 @@ class IntegrationMetric(pulumi.CustomResource):
717
717
  vhost_whitelist: Optional[pulumi.Input[str]] = None,
718
718
  __props__=None):
719
719
  """
720
- Create a IntegrationMetric resource with the given unique name, props, and options.
720
+ 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.
721
+
722
+ Only available for dedicated subscription plans.
723
+
724
+ ## Example Usage
725
+
726
+ <details>
727
+ <summary>
728
+ <b>
729
+ <i>Cloudwatch v1 and v2 metric integration</i>
730
+ </b>
731
+ </summary>
732
+
733
+ ***Access key***
734
+
735
+ ```python
736
+ import pulumi
737
+ import pulumi_cloudamqp as cloudamqp
738
+
739
+ cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
740
+ instance_id=instance["id"],
741
+ name="cloudwatch",
742
+ access_key_id=aws_access_key_id,
743
+ secret_access_key=var_aws_secret_acccess_key,
744
+ region=aws_region)
745
+ cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
746
+ instance_id=instance["id"],
747
+ name="cloudwatch_v2",
748
+ access_key_id=aws_access_key_id,
749
+ secret_access_key=var_aws_secret_acccess_key,
750
+ region=aws_region)
751
+ ```
752
+
753
+ ***Assume role***
754
+
755
+ ```python
756
+ import pulumi
757
+ import pulumi_cloudamqp as cloudamqp
758
+
759
+ cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
760
+ instance_id=instance["id"],
761
+ name="cloudwatch",
762
+ iam_role=aws_iam_role,
763
+ iam_external_id=external_id,
764
+ region=aws_region)
765
+ cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
766
+ instance_id=instance["id"],
767
+ name="cloudwatch_v2",
768
+ iam_role=aws_iam_role,
769
+ iam_external_id=external_id,
770
+ region=aws_region)
771
+ ```
772
+
773
+ * AWS IAM role: arn:aws:iam::ACCOUNT-ID:role/ROLE-NAME
774
+ * External id: Create own external identifier that match the role created. E.g. "cloudamqp-abc123".
775
+
776
+ </details>
777
+
778
+ <details>
779
+ <summary>
780
+ <b>
781
+ <i>Datadog v1 and v2 metric integration</i>
782
+ </b>
783
+ </summary>
784
+
785
+ ```python
786
+ import pulumi
787
+ import pulumi_cloudamqp as cloudamqp
788
+
789
+ datadog = cloudamqp.IntegrationMetric("datadog",
790
+ instance_id=instance["id"],
791
+ name="datadog",
792
+ api_key=datadog_api_key,
793
+ region=datadog_region,
794
+ tags="env=prod,region=us1,version=v1.0")
795
+ datadog_v2 = cloudamqp.IntegrationMetric("datadog_v2",
796
+ instance_id=instance["id"],
797
+ name="datadog_v2",
798
+ api_key=datadog_api_key,
799
+ region=datadog_region,
800
+ tags="env=prod,region=us1,version=v1.0")
801
+ ```
802
+
803
+ </details>
804
+
805
+ <details>
806
+ <summary>
807
+ <b>
808
+ <i>Librato metric integration</i>
809
+ </b>
810
+ </summary>
811
+
812
+ ```python
813
+ import pulumi
814
+ import pulumi_cloudamqp as cloudamqp
815
+
816
+ librato = cloudamqp.IntegrationMetric("librato",
817
+ instance_id=instance["id"],
818
+ name="librato",
819
+ email=librato_email,
820
+ api_key=librato_api_key)
821
+ ```
822
+
823
+ </details>
824
+
825
+ <details>
826
+ <summary>
827
+ <b>
828
+ <i>New relic v2 metric integration</i>
829
+ </b>
830
+ </summary>
831
+
832
+ ```python
833
+ import pulumi
834
+ import pulumi_cloudamqp as cloudamqp
835
+
836
+ newrelic = cloudamqp.IntegrationMetric("newrelic",
837
+ instance_id=instance["id"],
838
+ name="newrelic_v2",
839
+ api_key=newrelic_api_key,
840
+ region=newrelic_region)
841
+ ```
842
+
843
+ </details>
844
+
845
+ <details>
846
+ <summary>
847
+ <b>
848
+ <i>Stackdriver metric integration (v1.20.2 or earlier versions)</i>
849
+ </b>
850
+ </summary>
851
+
852
+ Use variable file populated with project_id, private_key and client_email
853
+
854
+ ```python
855
+ import pulumi
856
+ import pulumi_cloudamqp as cloudamqp
857
+
858
+ stackdriver = cloudamqp.IntegrationMetric("stackdriver",
859
+ instance_id=instance["id"],
860
+ name="stackdriver",
861
+ project_id=stackdriver_project_id,
862
+ private_key=stackdriver_private_key,
863
+ client_email=stackriver_email)
864
+ ```
865
+
866
+ or by using google_service_account_key resource from Google provider
867
+
868
+ ## Import
869
+
870
+ `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.
871
+
872
+ ```sh
873
+ $ pulumi import cloudamqp:index/integrationMetric:IntegrationMetric <resource_name> <resource_id>,<instance_id>`
874
+ ```
875
+
721
876
  :param str resource_name: The name of the resource.
722
877
  :param pulumi.ResourceOptions opts: Options for the resource.
723
878
  :param pulumi.Input[str] access_key_id: AWS access key identifier. (Cloudwatch)
@@ -748,7 +903,162 @@ class IntegrationMetric(pulumi.CustomResource):
748
903
  args: IntegrationMetricArgs,
749
904
  opts: Optional[pulumi.ResourceOptions] = None):
750
905
  """
751
- Create a IntegrationMetric resource with the given unique name, props, and options.
906
+ 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.
907
+
908
+ Only available for dedicated subscription plans.
909
+
910
+ ## Example Usage
911
+
912
+ <details>
913
+ <summary>
914
+ <b>
915
+ <i>Cloudwatch v1 and v2 metric integration</i>
916
+ </b>
917
+ </summary>
918
+
919
+ ***Access key***
920
+
921
+ ```python
922
+ import pulumi
923
+ import pulumi_cloudamqp as cloudamqp
924
+
925
+ cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
926
+ instance_id=instance["id"],
927
+ name="cloudwatch",
928
+ access_key_id=aws_access_key_id,
929
+ secret_access_key=var_aws_secret_acccess_key,
930
+ region=aws_region)
931
+ cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
932
+ instance_id=instance["id"],
933
+ name="cloudwatch_v2",
934
+ access_key_id=aws_access_key_id,
935
+ secret_access_key=var_aws_secret_acccess_key,
936
+ region=aws_region)
937
+ ```
938
+
939
+ ***Assume role***
940
+
941
+ ```python
942
+ import pulumi
943
+ import pulumi_cloudamqp as cloudamqp
944
+
945
+ cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
946
+ instance_id=instance["id"],
947
+ name="cloudwatch",
948
+ iam_role=aws_iam_role,
949
+ iam_external_id=external_id,
950
+ region=aws_region)
951
+ cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
952
+ instance_id=instance["id"],
953
+ name="cloudwatch_v2",
954
+ iam_role=aws_iam_role,
955
+ iam_external_id=external_id,
956
+ region=aws_region)
957
+ ```
958
+
959
+ * AWS IAM role: arn:aws:iam::ACCOUNT-ID:role/ROLE-NAME
960
+ * External id: Create own external identifier that match the role created. E.g. "cloudamqp-abc123".
961
+
962
+ </details>
963
+
964
+ <details>
965
+ <summary>
966
+ <b>
967
+ <i>Datadog v1 and v2 metric integration</i>
968
+ </b>
969
+ </summary>
970
+
971
+ ```python
972
+ import pulumi
973
+ import pulumi_cloudamqp as cloudamqp
974
+
975
+ datadog = cloudamqp.IntegrationMetric("datadog",
976
+ instance_id=instance["id"],
977
+ name="datadog",
978
+ api_key=datadog_api_key,
979
+ region=datadog_region,
980
+ tags="env=prod,region=us1,version=v1.0")
981
+ datadog_v2 = cloudamqp.IntegrationMetric("datadog_v2",
982
+ instance_id=instance["id"],
983
+ name="datadog_v2",
984
+ api_key=datadog_api_key,
985
+ region=datadog_region,
986
+ tags="env=prod,region=us1,version=v1.0")
987
+ ```
988
+
989
+ </details>
990
+
991
+ <details>
992
+ <summary>
993
+ <b>
994
+ <i>Librato metric integration</i>
995
+ </b>
996
+ </summary>
997
+
998
+ ```python
999
+ import pulumi
1000
+ import pulumi_cloudamqp as cloudamqp
1001
+
1002
+ librato = cloudamqp.IntegrationMetric("librato",
1003
+ instance_id=instance["id"],
1004
+ name="librato",
1005
+ email=librato_email,
1006
+ api_key=librato_api_key)
1007
+ ```
1008
+
1009
+ </details>
1010
+
1011
+ <details>
1012
+ <summary>
1013
+ <b>
1014
+ <i>New relic v2 metric integration</i>
1015
+ </b>
1016
+ </summary>
1017
+
1018
+ ```python
1019
+ import pulumi
1020
+ import pulumi_cloudamqp as cloudamqp
1021
+
1022
+ newrelic = cloudamqp.IntegrationMetric("newrelic",
1023
+ instance_id=instance["id"],
1024
+ name="newrelic_v2",
1025
+ api_key=newrelic_api_key,
1026
+ region=newrelic_region)
1027
+ ```
1028
+
1029
+ </details>
1030
+
1031
+ <details>
1032
+ <summary>
1033
+ <b>
1034
+ <i>Stackdriver metric integration (v1.20.2 or earlier versions)</i>
1035
+ </b>
1036
+ </summary>
1037
+
1038
+ Use variable file populated with project_id, private_key and client_email
1039
+
1040
+ ```python
1041
+ import pulumi
1042
+ import pulumi_cloudamqp as cloudamqp
1043
+
1044
+ stackdriver = cloudamqp.IntegrationMetric("stackdriver",
1045
+ instance_id=instance["id"],
1046
+ name="stackdriver",
1047
+ project_id=stackdriver_project_id,
1048
+ private_key=stackdriver_private_key,
1049
+ client_email=stackriver_email)
1050
+ ```
1051
+
1052
+ or by using google_service_account_key resource from Google provider
1053
+
1054
+ ## Import
1055
+
1056
+ `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.
1057
+
1058
+ ```sh
1059
+ $ pulumi import cloudamqp:index/integrationMetric:IntegrationMetric <resource_name> <resource_id>,<instance_id>`
1060
+ ```
1061
+
752
1062
  :param str resource_name: The name of the resource.
753
1063
  :param IntegrationMetricArgs args: The arguments to use to populate this resource's properties.
754
1064
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -794,7 +1104,7 @@ class IntegrationMetric(pulumi.CustomResource):
794
1104
  __props__ = IntegrationMetricArgs.__new__(IntegrationMetricArgs)
795
1105
 
796
1106
  __props__.__dict__["access_key_id"] = access_key_id
797
- __props__.__dict__["api_key"] = api_key
1107
+ __props__.__dict__["api_key"] = None if api_key is None else pulumi.Output.secret(api_key)
798
1108
  __props__.__dict__["client_email"] = client_email
799
1109
  __props__.__dict__["credentials"] = None if credentials is None else pulumi.Output.secret(credentials)
800
1110
  __props__.__dict__["email"] = email
@@ -803,7 +1113,7 @@ class IntegrationMetric(pulumi.CustomResource):
803
1113
  if instance_id is None and not opts.urn:
804
1114
  raise TypeError("Missing required property 'instance_id'")
805
1115
  __props__.__dict__["instance_id"] = instance_id
806
- __props__.__dict__["license_key"] = license_key
1116
+ __props__.__dict__["license_key"] = None if license_key is None else pulumi.Output.secret(license_key)
807
1117
  __props__.__dict__["name"] = name
808
1118
  __props__.__dict__["private_key"] = None if private_key is None else pulumi.Output.secret(private_key)
809
1119
  __props__.__dict__["private_key_id"] = None if private_key_id is None else pulumi.Output.secret(private_key_id)
@@ -815,7 +1125,7 @@ class IntegrationMetric(pulumi.CustomResource):
815
1125
  __props__.__dict__["tags"] = tags
816
1126
  __props__.__dict__["vhost_allowlist"] = vhost_allowlist
817
1127
  __props__.__dict__["vhost_whitelist"] = vhost_whitelist
818
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["credentials", "privateKey", "privateKeyId", "secretAccessKey"])
1128
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["apiKey", "credentials", "licenseKey", "privateKey", "privateKeyId", "secretAccessKey"])
819
1129
  opts = pulumi.ResourceOptions.merge(opts, secret_opts)
820
1130
  super(IntegrationMetric, __self__).__init__(
821
1131
  'cloudamqp:index/integrationMetric:IntegrationMetric',
@@ -169,6 +169,7 @@ class NodeActions(pulumi.CustomResource):
169
169
  node_name="<node name>",
170
170
  action="restart")
171
171
  ```
172
+
172
173
  </details>
173
174
 
174
175
  Using data source `get_nodes` to restart RabbitMQ on all nodes.</br>
@@ -204,6 +205,7 @@ class NodeActions(pulumi.CustomResource):
204
205
  restart02,
205
206
  ]))
206
207
  ```
208
+
207
209
  </details>
208
210
 
209
211
  <details>
@@ -244,6 +246,7 @@ class NodeActions(pulumi.CustomResource):
244
246
  restart02,
245
247
  ]))
246
248
  ```
249
+
247
250
  </details>
248
251
 
249
252
  ## Action reference
@@ -302,6 +305,7 @@ class NodeActions(pulumi.CustomResource):
302
305
  node_name="<node name>",
303
306
  action="restart")
304
307
  ```
308
+
305
309
  </details>
306
310
 
307
311
  Using data source `get_nodes` to restart RabbitMQ on all nodes.</br>
@@ -337,6 +341,7 @@ class NodeActions(pulumi.CustomResource):
337
341
  restart02,
338
342
  ]))
339
343
  ```
344
+
340
345
  </details>
341
346
 
342
347
  <details>
@@ -377,6 +382,7 @@ class NodeActions(pulumi.CustomResource):
377
382
  restart02,
378
383
  ]))
379
384
  ```
385
+
380
386
  </details>
381
387
 
382
388
  ## Action reference
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "cloudamqp",
4
- "version": "3.18.0-alpha.1718169430"
4
+ "version": "3.18.0-alpha.1718244895"
5
5
  }
@@ -305,7 +305,7 @@ class VpcGcpPeering(pulumi.CustomResource):
305
305
  <details>
306
306
  <summary>
307
307
  <b>
308
- <i>VPC peering pre v1.16.0</i>
308
+ <i>VPC peering before v1.16.0</i>
309
309
  </b>
310
310
  </summary>
311
311
 
@@ -333,7 +333,7 @@ class VpcGcpPeering(pulumi.CustomResource):
333
333
  <details>
334
334
  <summary>
335
335
  <b>
336
- <i>VPC peering post v1.16.0 (Managed VPC)</i>
336
+ <i>VPC peering from v1.16.0 (Managed VPC)</i>
337
337
  </b>
338
338
  </summary>
339
339
 
@@ -367,7 +367,7 @@ class VpcGcpPeering(pulumi.CustomResource):
367
367
  <details>
368
368
  <summary>
369
369
  <b>
370
- <i>VPC peering post v1.28.0, wait_on_peering_status </i>
370
+ <i>VPC peering from v1.28.0, wait_on_peering_status </i>
371
371
  </b>
372
372
  </summary>
373
373
 
@@ -401,7 +401,7 @@ class VpcGcpPeering(pulumi.CustomResource):
401
401
  <details>
402
402
  <summary>
403
403
  <b>
404
- <i>VPC peering pre v1.16.0</i>
404
+ <i>VPC peering before v1.16.0</i>
405
405
  </b>
406
406
  </summary>
407
407
 
@@ -449,7 +449,7 @@ class VpcGcpPeering(pulumi.CustomResource):
449
449
  <details>
450
450
  <summary>
451
451
  <b>
452
- <i>VPC peering post v1.16.0 (Managed VPC)</i>
452
+ <i>VPC peering from v1.16.0 (Managed VPC)</i>
453
453
  </b>
454
454
  </summary>
455
455
 
@@ -490,10 +490,10 @@ class VpcGcpPeering(pulumi.CustomResource):
490
490
 
491
491
  ## Depedency
492
492
 
493
- *Pre v1.16.0*
493
+ *Before v1.16.0*
494
494
  This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
495
495
 
496
- *Post v1.16.0*
496
+ *From v1.16.0*
497
497
  This resource depends on CloudAMQP managed VPC identifier, `cloudamqp_vpc.vpc.id` or instance identifier, `cloudamqp_instance.instance.id`.
498
498
 
499
499
  ## Create VPC Peering with additional firewall rules
@@ -542,7 +542,7 @@ class VpcGcpPeering(pulumi.CustomResource):
542
542
  <details>
543
543
  <summary>
544
544
  <b>
545
- <i>VPC peering pre v1.16.0</i>
545
+ <i>VPC peering before v1.16.0</i>
546
546
  </b>
547
547
  </summary>
548
548
 
@@ -570,7 +570,7 @@ class VpcGcpPeering(pulumi.CustomResource):
570
570
  <details>
571
571
  <summary>
572
572
  <b>
573
- <i>VPC peering post v1.16.0 (Managed VPC)</i>
573
+ <i>VPC peering from v1.16.0 (Managed VPC)</i>
574
574
  </b>
575
575
  </summary>
576
576
 
@@ -604,7 +604,7 @@ class VpcGcpPeering(pulumi.CustomResource):
604
604
  <details>
605
605
  <summary>
606
606
  <b>
607
- <i>VPC peering post v1.28.0, wait_on_peering_status </i>
607
+ <i>VPC peering from v1.28.0, wait_on_peering_status </i>
608
608
  </b>
609
609
  </summary>
610
610
 
@@ -638,7 +638,7 @@ class VpcGcpPeering(pulumi.CustomResource):
638
638
  <details>
639
639
  <summary>
640
640
  <b>
641
- <i>VPC peering pre v1.16.0</i>
641
+ <i>VPC peering before v1.16.0</i>
642
642
  </b>
643
643
  </summary>
644
644
 
@@ -686,7 +686,7 @@ class VpcGcpPeering(pulumi.CustomResource):
686
686
  <details>
687
687
  <summary>
688
688
  <b>
689
- <i>VPC peering post v1.16.0 (Managed VPC)</i>
689
+ <i>VPC peering from v1.16.0 (Managed VPC)</i>
690
690
  </b>
691
691
  </summary>
692
692
 
@@ -727,10 +727,10 @@ class VpcGcpPeering(pulumi.CustomResource):
727
727
 
728
728
  ## Depedency
729
729
 
730
- *Pre v1.16.0*
730
+ *Before v1.16.0*
731
731
  This resource depends on CloudAMQP instance identifier, `cloudamqp_instance.instance.id`.
732
732
 
733
- *Post v1.16.0*
733
+ *From v1.16.0*
734
734
  This resource depends on CloudAMQP managed VPC identifier, `cloudamqp_vpc.vpc.id` or instance identifier, `cloudamqp_instance.instance.id`.
735
735
 
736
736
  ## Create VPC Peering with additional firewall rules