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.

Files changed (48) hide show
  1. pulumi_cloudamqp/__init__.py +9 -0
  2. pulumi_cloudamqp/_inputs.py +157 -6
  3. pulumi_cloudamqp/_utilities.py +41 -5
  4. pulumi_cloudamqp/account_action.py +5 -0
  5. pulumi_cloudamqp/alarm.py +5 -124
  6. pulumi_cloudamqp/config/__init__.pyi +5 -0
  7. pulumi_cloudamqp/config/vars.py +5 -0
  8. pulumi_cloudamqp/custom_domain.py +9 -2
  9. pulumi_cloudamqp/extra_disk_size.py +46 -15
  10. pulumi_cloudamqp/get_account.py +12 -71
  11. pulumi_cloudamqp/get_account_vpcs.py +14 -5
  12. pulumi_cloudamqp/get_alarm.py +31 -7
  13. pulumi_cloudamqp/get_credentials.py +19 -7
  14. pulumi_cloudamqp/get_instance.py +30 -47
  15. pulumi_cloudamqp/get_nodes.py +22 -7
  16. pulumi_cloudamqp/get_notification.py +25 -7
  17. pulumi_cloudamqp/get_plugins.py +51 -10
  18. pulumi_cloudamqp/get_plugins_community.py +51 -10
  19. pulumi_cloudamqp/get_upgradable_versions.py +19 -7
  20. pulumi_cloudamqp/get_vpc_gcp_info.py +28 -9
  21. pulumi_cloudamqp/get_vpc_info.py +25 -9
  22. pulumi_cloudamqp/instance.py +70 -115
  23. pulumi_cloudamqp/integration_aws_eventbridge.py +11 -2
  24. pulumi_cloudamqp/integration_log.py +432 -43
  25. pulumi_cloudamqp/integration_metric.py +326 -23
  26. pulumi_cloudamqp/node_actions.py +59 -46
  27. pulumi_cloudamqp/notification.py +118 -61
  28. pulumi_cloudamqp/outputs.py +71 -60
  29. pulumi_cloudamqp/plugin.py +54 -35
  30. pulumi_cloudamqp/plugin_community.py +56 -37
  31. pulumi_cloudamqp/privatelink_aws.py +49 -60
  32. pulumi_cloudamqp/privatelink_azure.py +49 -60
  33. pulumi_cloudamqp/provider.py +5 -5
  34. pulumi_cloudamqp/pulumi-plugin.json +2 -1
  35. pulumi_cloudamqp/rabbit_configuration.py +5 -0
  36. pulumi_cloudamqp/security_firewall.py +70 -24
  37. pulumi_cloudamqp/upgrade_lavinmq.py +276 -0
  38. pulumi_cloudamqp/upgrade_rabbitmq.py +300 -27
  39. pulumi_cloudamqp/vpc.py +17 -6
  40. pulumi_cloudamqp/vpc_connect.py +63 -80
  41. pulumi_cloudamqp/vpc_gcp_peering.py +310 -103
  42. pulumi_cloudamqp/vpc_peering.py +19 -2
  43. pulumi_cloudamqp/webhook.py +91 -84
  44. {pulumi_cloudamqp-3.18.0a1709359306.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/METADATA +7 -6
  45. pulumi_cloudamqp-3.21.0a1736832130.dist-info/RECORD +49 -0
  46. {pulumi_cloudamqp-3.18.0a1709359306.dist-info → pulumi_cloudamqp-3.21.0a1736832130.dist-info}/WHEEL +1 -1
  47. pulumi_cloudamqp-3.18.0a1709359306.dist-info/RECORD +0 -48
  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
  from . import outputs
12
17
  from ._inputs import *
@@ -568,7 +573,7 @@ class Instance(pulumi.CustomResource):
568
573
  def __init__(__self__,
569
574
  resource_name: str,
570
575
  opts: Optional[pulumi.ResourceOptions] = None,
571
- copy_settings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceCopySettingArgs']]]]] = None,
576
+ copy_settings: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceCopySettingArgs', 'InstanceCopySettingArgsDict']]]]] = None,
572
577
  keep_associated_vpc: Optional[pulumi.Input[bool]] = None,
573
578
  name: Optional[pulumi.Input[str]] = None,
574
579
  no_default_alarms: Optional[pulumi.Input[bool]] = None,
@@ -601,27 +606,31 @@ class Instance(pulumi.CustomResource):
601
606
  import pulumi_cloudamqp as cloudamqp
602
607
 
603
608
  # Minimum free lemur instance running RabbitMQ
604
- lemur_instance = cloudamqp.Instance("lemurInstance",
609
+ lemur_instance = cloudamqp.Instance("lemur_instance",
610
+ name="cloudamqp-free-instance",
605
611
  plan="lemur",
606
612
  region="amazon-web-services::us-west-1",
607
613
  tags=["rabbitmq"])
608
614
  # Minimum free lemming instance running LavinMQ
609
- lemming_instance = cloudamqp.Instance("lemmingInstance",
615
+ lemming_instance = cloudamqp.Instance("lemming_instance",
616
+ name="cloudamqp-free-instance",
610
617
  plan="lemming",
611
618
  region="amazon-web-services::us-west-1",
612
619
  tags=["lavinmq"])
613
620
  # New dedicated bunny instance running RabbitMQ
614
621
  instance = cloudamqp.Instance("instance",
622
+ name="terraform-cloudamqp-instance",
615
623
  plan="bunny-1",
616
624
  region="amazon-web-services::us-west-1",
617
625
  tags=["terraform"])
618
626
  ```
627
+
619
628
  </details>
620
629
 
621
630
  <details>
622
631
  <summary>
623
632
  <b>
624
- <i>Dedicated instance using attribute vpc_subnet to create VPC, pre v1.16.0</i>
633
+ <i>Dedicated instance using attribute vpc_subnet to create VPC, before v1.16.0</i>
625
634
  </b>
626
635
  </summary>
627
636
 
@@ -630,17 +639,19 @@ class Instance(pulumi.CustomResource):
630
639
  import pulumi_cloudamqp as cloudamqp
631
640
 
632
641
  instance = cloudamqp.Instance("instance",
642
+ name="terraform-cloudamqp-instance",
633
643
  plan="bunny-1",
634
644
  region="amazon-web-services::us-west-1",
635
645
  tags=["terraform"],
636
646
  vpc_subnet="10.56.72.0/24")
637
647
  ```
648
+
638
649
  </details>
639
650
 
640
651
  <details>
641
652
  <summary>
642
653
  <b>
643
- <i>Dedicated instance using attribute vpc_subnet to create VPC and then import managed VPC, post v1.16.0 (Managed VPC)</i>
654
+ <i>Dedicated instance using attribute vpc_subnet to create VPC and then import managed VPC, from v1.16.0 (Managed VPC)</i>
644
655
  </b>
645
656
  </summary>
646
657
 
@@ -649,7 +660,8 @@ class Instance(pulumi.CustomResource):
649
660
  import pulumi_cloudamqp as cloudamqp
650
661
 
651
662
  # Dedicated instance that also creates VPC
652
- instance01 = cloudamqp.Instance("instance01",
663
+ instance01 = cloudamqp.Instance("instance_01",
664
+ name="terraform-cloudamqp-instance-01",
653
665
  plan="bunny-1",
654
666
  region="amazon-web-services::us-west-1",
655
667
  tags=["terraform"],
@@ -666,23 +678,26 @@ class Instance(pulumi.CustomResource):
666
678
 
667
679
  # Imported managed VPC
668
680
  vpc = cloudamqp.Vpc("vpc",
681
+ name="<vpc-name>",
669
682
  region="amazon-web-services::us-east-1",
670
683
  subnet="10.56.72.0/24",
671
684
  tags=[])
672
685
  # Add vpc_id and keep_associated_vpc attributes
673
- instance01 = cloudamqp.Instance("instance01",
686
+ instance01 = cloudamqp.Instance("instance_01",
687
+ name="terraform-cloudamqp-instance-01",
674
688
  plan="bunny-1",
675
689
  region="amazon-web-services::us-west-1",
676
690
  tags=["terraform"],
677
691
  vpc_id=vpc.id,
678
692
  keep_associated_vpc=True)
679
693
  ```
694
+
680
695
  </details>
681
696
 
682
697
  <details>
683
698
  <summary>
684
699
  <b>
685
- <i>Dedicated instances and managed VPC, post v1.16.0 (Managed VPC)</i>
700
+ <i>Dedicated instances and managed VPC, from v1.16.0 (Managed VPC)</i>
686
701
  </b>
687
702
  </summary>
688
703
 
@@ -692,18 +707,21 @@ class Instance(pulumi.CustomResource):
692
707
 
693
708
  # Managed VPC
694
709
  vpc = cloudamqp.Vpc("vpc",
710
+ name="<vpc-name>",
695
711
  region="amazon-web-services::us-east-1",
696
712
  subnet="10.56.72.0/24",
697
713
  tags=[])
698
714
  # First instance added to managed VPC
699
- instance01 = cloudamqp.Instance("instance01",
715
+ instance01 = cloudamqp.Instance("instance_01",
716
+ name="terraform-cloudamqp-instance-01",
700
717
  plan="bunny-1",
701
718
  region="amazon-web-services::us-west-1",
702
719
  tags=["terraform"],
703
720
  vpc_id=vpc.id,
704
721
  keep_associated_vpc=True)
705
722
  # Second instance added to managed VPC
706
- instance02 = cloudamqp.Instance("instance02",
723
+ instance02 = cloudamqp.Instance("instance_02",
724
+ name="terraform-cloudamqp-instance-02",
707
725
  plan="bunny-1",
708
726
  region="amazon-web-services::us-west-1",
709
727
  tags=["terraform"],
@@ -712,47 +730,7 @@ class Instance(pulumi.CustomResource):
712
730
  ```
713
731
 
714
732
  Set attribute `keep_associated_vpc` to true, will keep managed VPC when deleting the instances.
715
- </details>
716
- ## Upgrade and downgrade
717
-
718
- It's possible to upgrade or downgrade your subscription plan, this will either increase or decrease the underlying resource used for by the CloudAMQP instance. To do this, change the argument `plan` in the configuration and apply the changes. See available plans.
719
-
720
- <details>
721
- <summary>
722
- <b>
723
- <i>Upgrade the subscription plan</i>
724
- </b>
725
- </summary>
726
-
727
- ```python
728
- import pulumi
729
- import pulumi_cloudamqp as cloudamqp
730
-
731
- # Upgraded CloudAMQP instance configuration
732
- instance = cloudamqp.Instance("instance",
733
- plan="bunny-1",
734
- region="amazon-web-services::us-west-1",
735
- tags=["terraform"])
736
- ```
737
- </details>
738
-
739
- <details>
740
- <summary>
741
- <b>
742
- <i>Downgrade number of nodes from 3 to 1</i>
743
- </b>
744
- </summary>
745
733
 
746
- ```python
747
- import pulumi
748
- import pulumi_cloudamqp as cloudamqp
749
-
750
- # Downgraded CloudAMQP instance configuration
751
- instance = cloudamqp.Instance("instance",
752
- plan="bunny-1",
753
- region="amazon-web-services::us-west-1",
754
- tags=["terraform"])
755
- ```
756
734
  </details>
757
735
 
758
736
  ## Copy settings to a new dedicated instance
@@ -774,14 +752,15 @@ class Instance(pulumi.CustomResource):
774
752
  import pulumi
775
753
  import pulumi_cloudamqp as cloudamqp
776
754
 
777
- instance02 = cloudamqp.Instance("instance02",
755
+ instance02 = cloudamqp.Instance("instance_02",
756
+ name="terraform-cloudamqp-instance-02",
778
757
  plan="squirrel-1",
779
758
  region="amazon-web-services::us-west-1",
780
759
  rmq_version="3.12.2",
781
760
  tags=["terraform"],
782
- copy_settings=[cloudamqp.InstanceCopySettingArgs(
783
- subscription_id=var["instance_id"],
784
- settings=[
761
+ copy_settings=[{
762
+ "subscription_id": instance_id,
763
+ "settings": [
785
764
  "alarms",
786
765
  "config",
787
766
  "definitions",
@@ -790,8 +769,9 @@ class Instance(pulumi.CustomResource):
790
769
  "metrics",
791
770
  "plugins",
792
771
  ],
793
- )])
772
+ }])
794
773
  ```
774
+
795
775
  </details>
796
776
 
797
777
  ## Import
@@ -802,11 +782,11 @@ class Instance(pulumi.CustomResource):
802
782
  $ pulumi import cloudamqp:index/instance:Instance instance <id>`
803
783
  ```
804
784
 
805
- 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) to list all available instances for an account.
785
+ 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) to list all available instances for an account.
806
786
 
807
787
  :param str resource_name: The name of the resource.
808
788
  :param pulumi.ResourceOptions opts: Options for the resource.
809
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceCopySettingArgs']]]] copy_settings: Copy settings from one CloudAMQP instance to a new. Consists of the block documented below.
789
+ :param pulumi.Input[Sequence[pulumi.Input[Union['InstanceCopySettingArgs', 'InstanceCopySettingArgsDict']]]] copy_settings: Copy settings from one CloudAMQP instance to a new. Consists of the block documented below.
810
790
 
811
791
  ___
812
792
 
@@ -859,27 +839,31 @@ class Instance(pulumi.CustomResource):
859
839
  import pulumi_cloudamqp as cloudamqp
860
840
 
861
841
  # Minimum free lemur instance running RabbitMQ
862
- lemur_instance = cloudamqp.Instance("lemurInstance",
842
+ lemur_instance = cloudamqp.Instance("lemur_instance",
843
+ name="cloudamqp-free-instance",
863
844
  plan="lemur",
864
845
  region="amazon-web-services::us-west-1",
865
846
  tags=["rabbitmq"])
866
847
  # Minimum free lemming instance running LavinMQ
867
- lemming_instance = cloudamqp.Instance("lemmingInstance",
848
+ lemming_instance = cloudamqp.Instance("lemming_instance",
849
+ name="cloudamqp-free-instance",
868
850
  plan="lemming",
869
851
  region="amazon-web-services::us-west-1",
870
852
  tags=["lavinmq"])
871
853
  # New dedicated bunny instance running RabbitMQ
872
854
  instance = cloudamqp.Instance("instance",
855
+ name="terraform-cloudamqp-instance",
873
856
  plan="bunny-1",
874
857
  region="amazon-web-services::us-west-1",
875
858
  tags=["terraform"])
876
859
  ```
860
+
877
861
  </details>
878
862
 
879
863
  <details>
880
864
  <summary>
881
865
  <b>
882
- <i>Dedicated instance using attribute vpc_subnet to create VPC, pre v1.16.0</i>
866
+ <i>Dedicated instance using attribute vpc_subnet to create VPC, before v1.16.0</i>
883
867
  </b>
884
868
  </summary>
885
869
 
@@ -888,17 +872,19 @@ class Instance(pulumi.CustomResource):
888
872
  import pulumi_cloudamqp as cloudamqp
889
873
 
890
874
  instance = cloudamqp.Instance("instance",
875
+ name="terraform-cloudamqp-instance",
891
876
  plan="bunny-1",
892
877
  region="amazon-web-services::us-west-1",
893
878
  tags=["terraform"],
894
879
  vpc_subnet="10.56.72.0/24")
895
880
  ```
881
+
896
882
  </details>
897
883
 
898
884
  <details>
899
885
  <summary>
900
886
  <b>
901
- <i>Dedicated instance using attribute vpc_subnet to create VPC and then import managed VPC, post v1.16.0 (Managed VPC)</i>
887
+ <i>Dedicated instance using attribute vpc_subnet to create VPC and then import managed VPC, from v1.16.0 (Managed VPC)</i>
902
888
  </b>
903
889
  </summary>
904
890
 
@@ -907,7 +893,8 @@ class Instance(pulumi.CustomResource):
907
893
  import pulumi_cloudamqp as cloudamqp
908
894
 
909
895
  # Dedicated instance that also creates VPC
910
- instance01 = cloudamqp.Instance("instance01",
896
+ instance01 = cloudamqp.Instance("instance_01",
897
+ name="terraform-cloudamqp-instance-01",
911
898
  plan="bunny-1",
912
899
  region="amazon-web-services::us-west-1",
913
900
  tags=["terraform"],
@@ -924,23 +911,26 @@ class Instance(pulumi.CustomResource):
924
911
 
925
912
  # Imported managed VPC
926
913
  vpc = cloudamqp.Vpc("vpc",
914
+ name="<vpc-name>",
927
915
  region="amazon-web-services::us-east-1",
928
916
  subnet="10.56.72.0/24",
929
917
  tags=[])
930
918
  # Add vpc_id and keep_associated_vpc attributes
931
- instance01 = cloudamqp.Instance("instance01",
919
+ instance01 = cloudamqp.Instance("instance_01",
920
+ name="terraform-cloudamqp-instance-01",
932
921
  plan="bunny-1",
933
922
  region="amazon-web-services::us-west-1",
934
923
  tags=["terraform"],
935
924
  vpc_id=vpc.id,
936
925
  keep_associated_vpc=True)
937
926
  ```
927
+
938
928
  </details>
939
929
 
940
930
  <details>
941
931
  <summary>
942
932
  <b>
943
- <i>Dedicated instances and managed VPC, post v1.16.0 (Managed VPC)</i>
933
+ <i>Dedicated instances and managed VPC, from v1.16.0 (Managed VPC)</i>
944
934
  </b>
945
935
  </summary>
946
936
 
@@ -950,18 +940,21 @@ class Instance(pulumi.CustomResource):
950
940
 
951
941
  # Managed VPC
952
942
  vpc = cloudamqp.Vpc("vpc",
943
+ name="<vpc-name>",
953
944
  region="amazon-web-services::us-east-1",
954
945
  subnet="10.56.72.0/24",
955
946
  tags=[])
956
947
  # First instance added to managed VPC
957
- instance01 = cloudamqp.Instance("instance01",
948
+ instance01 = cloudamqp.Instance("instance_01",
949
+ name="terraform-cloudamqp-instance-01",
958
950
  plan="bunny-1",
959
951
  region="amazon-web-services::us-west-1",
960
952
  tags=["terraform"],
961
953
  vpc_id=vpc.id,
962
954
  keep_associated_vpc=True)
963
955
  # Second instance added to managed VPC
964
- instance02 = cloudamqp.Instance("instance02",
956
+ instance02 = cloudamqp.Instance("instance_02",
957
+ name="terraform-cloudamqp-instance-02",
965
958
  plan="bunny-1",
966
959
  region="amazon-web-services::us-west-1",
967
960
  tags=["terraform"],
@@ -970,47 +963,7 @@ class Instance(pulumi.CustomResource):
970
963
  ```
971
964
 
972
965
  Set attribute `keep_associated_vpc` to true, will keep managed VPC when deleting the instances.
973
- </details>
974
- ## Upgrade and downgrade
975
-
976
- It's possible to upgrade or downgrade your subscription plan, this will either increase or decrease the underlying resource used for by the CloudAMQP instance. To do this, change the argument `plan` in the configuration and apply the changes. See available plans.
977
-
978
- <details>
979
- <summary>
980
- <b>
981
- <i>Upgrade the subscription plan</i>
982
- </b>
983
- </summary>
984
-
985
- ```python
986
- import pulumi
987
- import pulumi_cloudamqp as cloudamqp
988
-
989
- # Upgraded CloudAMQP instance configuration
990
- instance = cloudamqp.Instance("instance",
991
- plan="bunny-1",
992
- region="amazon-web-services::us-west-1",
993
- tags=["terraform"])
994
- ```
995
- </details>
996
-
997
- <details>
998
- <summary>
999
- <b>
1000
- <i>Downgrade number of nodes from 3 to 1</i>
1001
- </b>
1002
- </summary>
1003
966
 
1004
- ```python
1005
- import pulumi
1006
- import pulumi_cloudamqp as cloudamqp
1007
-
1008
- # Downgraded CloudAMQP instance configuration
1009
- instance = cloudamqp.Instance("instance",
1010
- plan="bunny-1",
1011
- region="amazon-web-services::us-west-1",
1012
- tags=["terraform"])
1013
- ```
1014
967
  </details>
1015
968
 
1016
969
  ## Copy settings to a new dedicated instance
@@ -1032,14 +985,15 @@ class Instance(pulumi.CustomResource):
1032
985
  import pulumi
1033
986
  import pulumi_cloudamqp as cloudamqp
1034
987
 
1035
- instance02 = cloudamqp.Instance("instance02",
988
+ instance02 = cloudamqp.Instance("instance_02",
989
+ name="terraform-cloudamqp-instance-02",
1036
990
  plan="squirrel-1",
1037
991
  region="amazon-web-services::us-west-1",
1038
992
  rmq_version="3.12.2",
1039
993
  tags=["terraform"],
1040
- copy_settings=[cloudamqp.InstanceCopySettingArgs(
1041
- subscription_id=var["instance_id"],
1042
- settings=[
994
+ copy_settings=[{
995
+ "subscription_id": instance_id,
996
+ "settings": [
1043
997
  "alarms",
1044
998
  "config",
1045
999
  "definitions",
@@ -1048,8 +1002,9 @@ class Instance(pulumi.CustomResource):
1048
1002
  "metrics",
1049
1003
  "plugins",
1050
1004
  ],
1051
- )])
1005
+ }])
1052
1006
  ```
1007
+
1053
1008
  </details>
1054
1009
 
1055
1010
  ## Import
@@ -1060,7 +1015,7 @@ class Instance(pulumi.CustomResource):
1060
1015
  $ pulumi import cloudamqp:index/instance:Instance instance <id>`
1061
1016
  ```
1062
1017
 
1063
- 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) to list all available instances for an account.
1018
+ 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) to list all available instances for an account.
1064
1019
 
1065
1020
  :param str resource_name: The name of the resource.
1066
1021
  :param InstanceArgs args: The arguments to use to populate this resource's properties.
@@ -1077,7 +1032,7 @@ class Instance(pulumi.CustomResource):
1077
1032
  def _internal_init(__self__,
1078
1033
  resource_name: str,
1079
1034
  opts: Optional[pulumi.ResourceOptions] = None,
1080
- copy_settings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceCopySettingArgs']]]]] = None,
1035
+ copy_settings: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceCopySettingArgs', 'InstanceCopySettingArgsDict']]]]] = None,
1081
1036
  keep_associated_vpc: Optional[pulumi.Input[bool]] = None,
1082
1037
  name: Optional[pulumi.Input[str]] = None,
1083
1038
  no_default_alarms: Optional[pulumi.Input[bool]] = None,
@@ -1134,7 +1089,7 @@ class Instance(pulumi.CustomResource):
1134
1089
  opts: Optional[pulumi.ResourceOptions] = None,
1135
1090
  apikey: Optional[pulumi.Input[str]] = None,
1136
1091
  backend: Optional[pulumi.Input[str]] = None,
1137
- copy_settings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceCopySettingArgs']]]]] = None,
1092
+ copy_settings: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceCopySettingArgs', 'InstanceCopySettingArgsDict']]]]] = None,
1138
1093
  dedicated: Optional[pulumi.Input[bool]] = None,
1139
1094
  host: Optional[pulumi.Input[str]] = None,
1140
1095
  host_internal: Optional[pulumi.Input[str]] = None,
@@ -1160,7 +1115,7 @@ class Instance(pulumi.CustomResource):
1160
1115
  :param pulumi.ResourceOptions opts: Options for the resource.
1161
1116
  :param pulumi.Input[str] apikey: API key needed to communicate to CloudAMQP's second API. The second API is used to manage alarms, integration and more, full description [CloudAMQP API](https://docs.cloudamqp.com/cloudamqp_api.html).
1162
1117
  :param pulumi.Input[str] backend: Information if the CloudAMQP instance runs either RabbitMQ or LavinMQ.
1163
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceCopySettingArgs']]]] copy_settings: Copy settings from one CloudAMQP instance to a new. Consists of the block documented below.
1118
+ :param pulumi.Input[Sequence[pulumi.Input[Union['InstanceCopySettingArgs', 'InstanceCopySettingArgsDict']]]] copy_settings: Copy settings from one CloudAMQP instance to a new. Consists of the block documented below.
1164
1119
 
1165
1120
  ___
1166
1121
 
@@ -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__ = ['IntegrationAwsEventbridgeArgs', 'IntegrationAwsEventbridge']
@@ -257,11 +262,12 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
257
262
  import pulumi_cloudamqp as cloudamqp
258
263
 
259
264
  instance = cloudamqp.Instance("instance",
265
+ name="Test instance",
260
266
  plan="squirrel-1",
261
267
  region="amazon-web-services::us-west-1",
262
268
  rmq_version="3.11.5",
263
269
  tags=["aws"])
264
- aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("awsEventbridge",
270
+ aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
265
271
  instance_id=instance.id,
266
272
  vhost=instance.vhost,
267
273
  queue="<QUEUE-NAME>",
@@ -269,6 +275,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
269
275
  aws_region="us-west-1",
270
276
  with_headers=True)
271
277
  ```
278
+
272
279
  ## Argument references
273
280
 
274
281
  The following arguments are supported:
@@ -322,11 +329,12 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
322
329
  import pulumi_cloudamqp as cloudamqp
323
330
 
324
331
  instance = cloudamqp.Instance("instance",
332
+ name="Test instance",
325
333
  plan="squirrel-1",
326
334
  region="amazon-web-services::us-west-1",
327
335
  rmq_version="3.11.5",
328
336
  tags=["aws"])
329
- aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("awsEventbridge",
337
+ aws_eventbridge = cloudamqp.IntegrationAwsEventbridge("aws_eventbridge",
330
338
  instance_id=instance.id,
331
339
  vhost=instance.vhost,
332
340
  queue="<QUEUE-NAME>",
@@ -334,6 +342,7 @@ class IntegrationAwsEventbridge(pulumi.CustomResource):
334
342
  aws_region="us-west-1",
335
343
  with_headers=True)
336
344
  ```
345
+
337
346
  ## Argument references
338
347
 
339
348
  The following arguments are supported: