pulumi-gcp 8.0.0rc0__py3-none-any.whl → 8.1.0__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.
Files changed (101) hide show
  1. pulumi_gcp/__init__.py +24 -0
  2. pulumi_gcp/alloydb/_inputs.py +94 -0
  3. pulumi_gcp/alloydb/cluster.py +94 -1
  4. pulumi_gcp/alloydb/outputs.py +79 -0
  5. pulumi_gcp/assuredworkloads/workload.py +135 -16
  6. pulumi_gcp/backupdisasterrecovery/__init__.py +1 -0
  7. pulumi_gcp/backupdisasterrecovery/backup_vault.py +1203 -0
  8. pulumi_gcp/bigquery/_inputs.py +33 -0
  9. pulumi_gcp/bigquery/data_transfer_config.py +134 -6
  10. pulumi_gcp/bigquery/outputs.py +36 -0
  11. pulumi_gcp/bigqueryanalyticshub/_inputs.py +169 -7
  12. pulumi_gcp/bigqueryanalyticshub/data_exchange.py +96 -3
  13. pulumi_gcp/bigqueryanalyticshub/listing.py +114 -0
  14. pulumi_gcp/bigqueryanalyticshub/outputs.py +138 -5
  15. pulumi_gcp/bigtable/_inputs.py +21 -1
  16. pulumi_gcp/bigtable/outputs.py +13 -1
  17. pulumi_gcp/bigtable/table.py +34 -0
  18. pulumi_gcp/certificateauthority/authority.py +14 -7
  19. pulumi_gcp/certificatemanager/__init__.py +1 -0
  20. pulumi_gcp/certificatemanager/certificate.py +28 -0
  21. pulumi_gcp/certificatemanager/get_certificates.py +150 -0
  22. pulumi_gcp/certificatemanager/outputs.py +322 -0
  23. pulumi_gcp/cloudbuild/_inputs.py +6 -6
  24. pulumi_gcp/cloudbuild/outputs.py +4 -4
  25. pulumi_gcp/cloudrun/_inputs.py +6 -12
  26. pulumi_gcp/cloudrun/outputs.py +8 -16
  27. pulumi_gcp/cloudrunv2/_inputs.py +72 -15
  28. pulumi_gcp/cloudrunv2/outputs.py +82 -16
  29. pulumi_gcp/cloudrunv2/service.py +50 -4
  30. pulumi_gcp/cloudtasks/_inputs.py +630 -0
  31. pulumi_gcp/cloudtasks/outputs.py +479 -0
  32. pulumi_gcp/cloudtasks/queue.py +238 -0
  33. pulumi_gcp/compute/_inputs.py +129 -9
  34. pulumi_gcp/compute/get_instance.py +1 -1
  35. pulumi_gcp/compute/health_check.py +114 -0
  36. pulumi_gcp/compute/instance.py +86 -4
  37. pulumi_gcp/compute/instance_template.py +66 -0
  38. pulumi_gcp/compute/interconnect.py +28 -21
  39. pulumi_gcp/compute/node_template.py +93 -0
  40. pulumi_gcp/compute/outputs.py +108 -6
  41. pulumi_gcp/compute/target_https_proxy.py +28 -0
  42. pulumi_gcp/container/_inputs.py +140 -3
  43. pulumi_gcp/container/attached_cluster.py +7 -7
  44. pulumi_gcp/container/outputs.py +174 -2
  45. pulumi_gcp/databasemigrationservice/_inputs.py +176 -148
  46. pulumi_gcp/databasemigrationservice/connection_profile.py +206 -0
  47. pulumi_gcp/databasemigrationservice/outputs.py +109 -87
  48. pulumi_gcp/dataloss/_inputs.py +353 -1
  49. pulumi_gcp/dataloss/outputs.py +274 -3
  50. pulumi_gcp/dataproc/_inputs.py +27 -27
  51. pulumi_gcp/dataproc/outputs.py +18 -18
  52. pulumi_gcp/datastream/_inputs.py +69 -1
  53. pulumi_gcp/datastream/outputs.py +44 -2
  54. pulumi_gcp/datastream/stream.py +194 -7
  55. pulumi_gcp/discoveryengine/_inputs.py +188 -0
  56. pulumi_gcp/discoveryengine/data_store.py +14 -14
  57. pulumi_gcp/discoveryengine/outputs.py +153 -1
  58. pulumi_gcp/firebase/database_instance.py +7 -7
  59. pulumi_gcp/gkehub/_inputs.py +25 -1
  60. pulumi_gcp/gkehub/feature_membership.py +12 -6
  61. pulumi_gcp/gkehub/outputs.py +17 -1
  62. pulumi_gcp/iam/_inputs.py +196 -0
  63. pulumi_gcp/iam/get_workload_identity_pool_provider.py +13 -3
  64. pulumi_gcp/iam/outputs.py +295 -0
  65. pulumi_gcp/iam/workload_identity_pool_provider.py +164 -3
  66. pulumi_gcp/kms/__init__.py +2 -0
  67. pulumi_gcp/kms/autokey_config.py +10 -2
  68. pulumi_gcp/kms/get_crypto_key_latest_version.py +222 -0
  69. pulumi_gcp/kms/get_crypto_key_versions.py +175 -0
  70. pulumi_gcp/kms/outputs.py +164 -0
  71. pulumi_gcp/netapp/active_directory.py +6 -6
  72. pulumi_gcp/netapp/backup.py +6 -6
  73. pulumi_gcp/netapp/backup_policy.py +6 -6
  74. pulumi_gcp/netapp/backup_vault.py +6 -6
  75. pulumi_gcp/netapp/storage_pool.py +4 -4
  76. pulumi_gcp/netapp/volume.py +7 -0
  77. pulumi_gcp/networkconnectivity/_inputs.py +21 -1
  78. pulumi_gcp/networkconnectivity/outputs.py +15 -1
  79. pulumi_gcp/networkconnectivity/spoke.py +8 -0
  80. pulumi_gcp/networksecurity/client_tls_policy.py +24 -22
  81. pulumi_gcp/networksecurity/server_tls_policy.py +20 -32
  82. pulumi_gcp/organizations/get_project.py +13 -3
  83. pulumi_gcp/organizations/project.py +88 -3
  84. pulumi_gcp/parallelstore/instance.py +121 -121
  85. pulumi_gcp/projects/iam_member_remove.py +26 -0
  86. pulumi_gcp/projects/usage_export_bucket.py +38 -0
  87. pulumi_gcp/pubsub/_inputs.py +40 -0
  88. pulumi_gcp/pubsub/outputs.py +51 -1
  89. pulumi_gcp/pubsub/subscription.py +6 -0
  90. pulumi_gcp/pulumi-plugin.json +1 -1
  91. pulumi_gcp/redis/_inputs.py +419 -0
  92. pulumi_gcp/redis/cluster.py +123 -0
  93. pulumi_gcp/redis/outputs.py +315 -0
  94. pulumi_gcp/securitycenter/__init__.py +2 -0
  95. pulumi_gcp/securitycenter/v2_folder_scc_big_query_export.py +857 -0
  96. pulumi_gcp/securitycenter/v2_organization_scc_big_query_exports.py +4 -4
  97. pulumi_gcp/securitycenter/v2_project_scc_big_query_export.py +796 -0
  98. {pulumi_gcp-8.0.0rc0.dist-info → pulumi_gcp-8.1.0.dist-info}/METADATA +1 -1
  99. {pulumi_gcp-8.0.0rc0.dist-info → pulumi_gcp-8.1.0.dist-info}/RECORD +101 -95
  100. {pulumi_gcp-8.0.0rc0.dist-info → pulumi_gcp-8.1.0.dist-info}/WHEEL +1 -1
  101. {pulumi_gcp-8.0.0rc0.dist-info → pulumi_gcp-8.1.0.dist-info}/top_level.txt +0 -0
@@ -734,6 +734,109 @@ class ConnectionProfile(pulumi.CustomResource):
734
734
  },
735
735
  opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
736
736
  ```
737
+ ### Database Migration Service Connection Profile Existing Mysql
738
+
739
+ ```python
740
+ import pulumi
741
+ import pulumi_gcp as gcp
742
+
743
+ project = gcp.organizations.get_project()
744
+ destination_csql = gcp.sql.DatabaseInstance("destination_csql",
745
+ name="destination-csql",
746
+ database_version="MYSQL_5_7",
747
+ settings={
748
+ "tier": "db-n1-standard-1",
749
+ "deletion_protection_enabled": False,
750
+ },
751
+ deletion_protection=False)
752
+ existing_mysql = gcp.databasemigrationservice.ConnectionProfile("existing-mysql",
753
+ location="us-central1",
754
+ connection_profile_id="destination-cp",
755
+ display_name="destination-cp_display",
756
+ labels={
757
+ "foo": "bar",
758
+ },
759
+ mysql={
760
+ "cloud_sql_id": "destination-csql",
761
+ },
762
+ opts = pulumi.ResourceOptions(depends_on=[destination_csql]))
763
+ ```
764
+ ### Database Migration Service Connection Profile Existing Postgres
765
+
766
+ ```python
767
+ import pulumi
768
+ import pulumi_gcp as gcp
769
+
770
+ project = gcp.organizations.get_project()
771
+ destination_csql = gcp.sql.DatabaseInstance("destination_csql",
772
+ name="destination-csql",
773
+ database_version="POSTGRES_15",
774
+ settings={
775
+ "tier": "db-custom-2-13312",
776
+ "deletion_protection_enabled": False,
777
+ },
778
+ deletion_protection=False)
779
+ existing_psql = gcp.databasemigrationservice.ConnectionProfile("existing-psql",
780
+ location="us-central1",
781
+ connection_profile_id="destination-cp",
782
+ display_name="destination-cp_display",
783
+ labels={
784
+ "foo": "bar",
785
+ },
786
+ postgresql={
787
+ "cloud_sql_id": "destination-csql",
788
+ },
789
+ opts = pulumi.ResourceOptions(depends_on=[destination_csql]))
790
+ ```
791
+ ### Database Migration Service Connection Profile Existing Alloydb
792
+
793
+ ```python
794
+ import pulumi
795
+ import pulumi_gcp as gcp
796
+
797
+ project = gcp.organizations.get_project()
798
+ default = gcp.compute.Network("default", name="destination-alloydb")
799
+ destination_alloydb = gcp.alloydb.Cluster("destination_alloydb",
800
+ cluster_id="destination-alloydb",
801
+ location="us-central1",
802
+ network_config={
803
+ "network": default.id,
804
+ },
805
+ database_version="POSTGRES_15",
806
+ initial_user={
807
+ "user": "destination-alloydb",
808
+ "password": "destination-alloydb",
809
+ })
810
+ private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
811
+ name="destination-alloydb",
812
+ address_type="INTERNAL",
813
+ purpose="VPC_PEERING",
814
+ prefix_length=16,
815
+ network=default.id)
816
+ vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
817
+ network=default.id,
818
+ service="servicenetworking.googleapis.com",
819
+ reserved_peering_ranges=[private_ip_alloc.name])
820
+ destination_alloydb_primary = gcp.alloydb.Instance("destination_alloydb_primary",
821
+ cluster=destination_alloydb.name,
822
+ instance_id="destination-alloydb-primary",
823
+ instance_type="PRIMARY",
824
+ opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
825
+ existing_alloydb = gcp.databasemigrationservice.ConnectionProfile("existing-alloydb",
826
+ location="us-central1",
827
+ connection_profile_id="destination-cp",
828
+ display_name="destination-cp_display",
829
+ labels={
830
+ "foo": "bar",
831
+ },
832
+ postgresql={
833
+ "alloydb_cluster_id": "destination-alloydb",
834
+ },
835
+ opts = pulumi.ResourceOptions(depends_on=[
836
+ destination_alloydb,
837
+ destination_alloydb_primary,
838
+ ]))
839
+ ```
737
840
 
738
841
  ## Import
739
842
 
@@ -991,6 +1094,109 @@ class ConnectionProfile(pulumi.CustomResource):
991
1094
  },
992
1095
  opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
993
1096
  ```
1097
+ ### Database Migration Service Connection Profile Existing Mysql
1098
+
1099
+ ```python
1100
+ import pulumi
1101
+ import pulumi_gcp as gcp
1102
+
1103
+ project = gcp.organizations.get_project()
1104
+ destination_csql = gcp.sql.DatabaseInstance("destination_csql",
1105
+ name="destination-csql",
1106
+ database_version="MYSQL_5_7",
1107
+ settings={
1108
+ "tier": "db-n1-standard-1",
1109
+ "deletion_protection_enabled": False,
1110
+ },
1111
+ deletion_protection=False)
1112
+ existing_mysql = gcp.databasemigrationservice.ConnectionProfile("existing-mysql",
1113
+ location="us-central1",
1114
+ connection_profile_id="destination-cp",
1115
+ display_name="destination-cp_display",
1116
+ labels={
1117
+ "foo": "bar",
1118
+ },
1119
+ mysql={
1120
+ "cloud_sql_id": "destination-csql",
1121
+ },
1122
+ opts = pulumi.ResourceOptions(depends_on=[destination_csql]))
1123
+ ```
1124
+ ### Database Migration Service Connection Profile Existing Postgres
1125
+
1126
+ ```python
1127
+ import pulumi
1128
+ import pulumi_gcp as gcp
1129
+
1130
+ project = gcp.organizations.get_project()
1131
+ destination_csql = gcp.sql.DatabaseInstance("destination_csql",
1132
+ name="destination-csql",
1133
+ database_version="POSTGRES_15",
1134
+ settings={
1135
+ "tier": "db-custom-2-13312",
1136
+ "deletion_protection_enabled": False,
1137
+ },
1138
+ deletion_protection=False)
1139
+ existing_psql = gcp.databasemigrationservice.ConnectionProfile("existing-psql",
1140
+ location="us-central1",
1141
+ connection_profile_id="destination-cp",
1142
+ display_name="destination-cp_display",
1143
+ labels={
1144
+ "foo": "bar",
1145
+ },
1146
+ postgresql={
1147
+ "cloud_sql_id": "destination-csql",
1148
+ },
1149
+ opts = pulumi.ResourceOptions(depends_on=[destination_csql]))
1150
+ ```
1151
+ ### Database Migration Service Connection Profile Existing Alloydb
1152
+
1153
+ ```python
1154
+ import pulumi
1155
+ import pulumi_gcp as gcp
1156
+
1157
+ project = gcp.organizations.get_project()
1158
+ default = gcp.compute.Network("default", name="destination-alloydb")
1159
+ destination_alloydb = gcp.alloydb.Cluster("destination_alloydb",
1160
+ cluster_id="destination-alloydb",
1161
+ location="us-central1",
1162
+ network_config={
1163
+ "network": default.id,
1164
+ },
1165
+ database_version="POSTGRES_15",
1166
+ initial_user={
1167
+ "user": "destination-alloydb",
1168
+ "password": "destination-alloydb",
1169
+ })
1170
+ private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
1171
+ name="destination-alloydb",
1172
+ address_type="INTERNAL",
1173
+ purpose="VPC_PEERING",
1174
+ prefix_length=16,
1175
+ network=default.id)
1176
+ vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
1177
+ network=default.id,
1178
+ service="servicenetworking.googleapis.com",
1179
+ reserved_peering_ranges=[private_ip_alloc.name])
1180
+ destination_alloydb_primary = gcp.alloydb.Instance("destination_alloydb_primary",
1181
+ cluster=destination_alloydb.name,
1182
+ instance_id="destination-alloydb-primary",
1183
+ instance_type="PRIMARY",
1184
+ opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
1185
+ existing_alloydb = gcp.databasemigrationservice.ConnectionProfile("existing-alloydb",
1186
+ location="us-central1",
1187
+ connection_profile_id="destination-cp",
1188
+ display_name="destination-cp_display",
1189
+ labels={
1190
+ "foo": "bar",
1191
+ },
1192
+ postgresql={
1193
+ "alloydb_cluster_id": "destination-alloydb",
1194
+ },
1195
+ opts = pulumi.ResourceOptions(depends_on=[
1196
+ destination_alloydb,
1197
+ destination_alloydb_primary,
1198
+ ]))
1199
+ ```
994
1200
 
995
1201
  ## Import
996
1202
 
@@ -932,78 +932,66 @@ class ConnectionProfileMysql(dict):
932
932
  return super().get(key, default)
933
933
 
934
934
  def __init__(__self__, *,
935
- host: str,
936
- password: str,
937
- port: int,
938
- username: str,
939
935
  cloud_sql_id: Optional[str] = None,
936
+ host: Optional[str] = None,
937
+ password: Optional[str] = None,
940
938
  password_set: Optional[bool] = None,
941
- ssl: Optional['outputs.ConnectionProfileMysqlSsl'] = None):
939
+ port: Optional[int] = None,
940
+ ssl: Optional['outputs.ConnectionProfileMysqlSsl'] = None,
941
+ username: Optional[str] = None):
942
942
  """
943
- :param str host: Required. The IP or hostname of the source MySQL database.
944
- :param str password: Required. Input only. The password for the user that Database Migration Service will be using to connect to the database.
943
+ :param str cloud_sql_id: If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
944
+ :param str host: The IP or hostname of the source MySQL database.
945
+ :param str password: Input only. The password for the user that Database Migration Service will be using to connect to the database.
945
946
  This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
946
947
  **Note**: This property is sensitive and will not be displayed in the plan.
947
- :param int port: Required. The network port of the source MySQL database.
948
- :param str username: Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
949
- :param str cloud_sql_id: If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
950
948
  :param bool password_set: (Output)
951
949
  Output only. Indicates If this connection profile password is stored.
950
+ :param int port: The network port of the source MySQL database.
952
951
  :param 'ConnectionProfileMysqlSslArgs' ssl: SSL configuration for the destination to connect to the source database.
953
952
  Structure is documented below.
953
+ :param str username: The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
954
954
  """
955
- pulumi.set(__self__, "host", host)
956
- pulumi.set(__self__, "password", password)
957
- pulumi.set(__self__, "port", port)
958
- pulumi.set(__self__, "username", username)
959
955
  if cloud_sql_id is not None:
960
956
  pulumi.set(__self__, "cloud_sql_id", cloud_sql_id)
957
+ if host is not None:
958
+ pulumi.set(__self__, "host", host)
959
+ if password is not None:
960
+ pulumi.set(__self__, "password", password)
961
961
  if password_set is not None:
962
962
  pulumi.set(__self__, "password_set", password_set)
963
+ if port is not None:
964
+ pulumi.set(__self__, "port", port)
963
965
  if ssl is not None:
964
966
  pulumi.set(__self__, "ssl", ssl)
967
+ if username is not None:
968
+ pulumi.set(__self__, "username", username)
965
969
 
966
970
  @property
967
- @pulumi.getter
968
- def host(self) -> str:
969
- """
970
- Required. The IP or hostname of the source MySQL database.
971
- """
972
- return pulumi.get(self, "host")
973
-
974
- @property
975
- @pulumi.getter
976
- def password(self) -> str:
971
+ @pulumi.getter(name="cloudSqlId")
972
+ def cloud_sql_id(self) -> Optional[str]:
977
973
  """
978
- Required. Input only. The password for the user that Database Migration Service will be using to connect to the database.
979
- This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
980
- **Note**: This property is sensitive and will not be displayed in the plan.
974
+ If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
981
975
  """
982
- return pulumi.get(self, "password")
976
+ return pulumi.get(self, "cloud_sql_id")
983
977
 
984
978
  @property
985
979
  @pulumi.getter
986
- def port(self) -> int:
980
+ def host(self) -> Optional[str]:
987
981
  """
988
- Required. The network port of the source MySQL database.
982
+ The IP or hostname of the source MySQL database.
989
983
  """
990
- return pulumi.get(self, "port")
984
+ return pulumi.get(self, "host")
991
985
 
992
986
  @property
993
987
  @pulumi.getter
994
- def username(self) -> str:
995
- """
996
- Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
997
- """
998
- return pulumi.get(self, "username")
999
-
1000
- @property
1001
- @pulumi.getter(name="cloudSqlId")
1002
- def cloud_sql_id(self) -> Optional[str]:
988
+ def password(self) -> Optional[str]:
1003
989
  """
1004
- If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
990
+ Input only. The password for the user that Database Migration Service will be using to connect to the database.
991
+ This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
992
+ **Note**: This property is sensitive and will not be displayed in the plan.
1005
993
  """
1006
- return pulumi.get(self, "cloud_sql_id")
994
+ return pulumi.get(self, "password")
1007
995
 
1008
996
  @property
1009
997
  @pulumi.getter(name="passwordSet")
@@ -1014,6 +1002,14 @@ class ConnectionProfileMysql(dict):
1014
1002
  """
1015
1003
  return pulumi.get(self, "password_set")
1016
1004
 
1005
+ @property
1006
+ @pulumi.getter
1007
+ def port(self) -> Optional[int]:
1008
+ """
1009
+ The network port of the source MySQL database.
1010
+ """
1011
+ return pulumi.get(self, "port")
1012
+
1017
1013
  @property
1018
1014
  @pulumi.getter
1019
1015
  def ssl(self) -> Optional['outputs.ConnectionProfileMysqlSsl']:
@@ -1023,6 +1019,14 @@ class ConnectionProfileMysql(dict):
1023
1019
  """
1024
1020
  return pulumi.get(self, "ssl")
1025
1021
 
1022
+ @property
1023
+ @pulumi.getter
1024
+ def username(self) -> Optional[str]:
1025
+ """
1026
+ The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
1027
+ """
1028
+ return pulumi.get(self, "username")
1029
+
1026
1030
 
1027
1031
  @pulumi.output_type
1028
1032
  class ConnectionProfileMysqlSsl(dict):
@@ -1494,7 +1498,9 @@ class ConnectionProfilePostgresql(dict):
1494
1498
  @staticmethod
1495
1499
  def __key_warning(key: str):
1496
1500
  suggest = None
1497
- if key == "cloudSqlId":
1501
+ if key == "alloydbClusterId":
1502
+ suggest = "alloydb_cluster_id"
1503
+ elif key == "cloudSqlId":
1498
1504
  suggest = "cloud_sql_id"
1499
1505
  elif key == "networkArchitecture":
1500
1506
  suggest = "network_architecture"
@@ -1513,83 +1519,73 @@ class ConnectionProfilePostgresql(dict):
1513
1519
  return super().get(key, default)
1514
1520
 
1515
1521
  def __init__(__self__, *,
1516
- host: str,
1517
- password: str,
1518
- port: int,
1519
- username: str,
1522
+ alloydb_cluster_id: Optional[str] = None,
1520
1523
  cloud_sql_id: Optional[str] = None,
1524
+ host: Optional[str] = None,
1521
1525
  network_architecture: Optional[str] = None,
1526
+ password: Optional[str] = None,
1522
1527
  password_set: Optional[bool] = None,
1523
- ssl: Optional['outputs.ConnectionProfilePostgresqlSsl'] = None):
1528
+ port: Optional[int] = None,
1529
+ ssl: Optional['outputs.ConnectionProfilePostgresqlSsl'] = None,
1530
+ username: Optional[str] = None):
1524
1531
  """
1525
- :param str host: Required. The IP or hostname of the source MySQL database.
1526
- :param str password: Required. Input only. The password for the user that Database Migration Service will be using to connect to the database.
1527
- This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
1528
- **Note**: This property is sensitive and will not be displayed in the plan.
1529
- :param int port: Required. The network port of the source MySQL database.
1530
- :param str username: Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
1532
+ :param str alloydb_cluster_id: If the connected database is an AlloyDB instance, use this field to provide the AlloyDB cluster ID.
1531
1533
  :param str cloud_sql_id: If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
1534
+ :param str host: The IP or hostname of the source MySQL database.
1532
1535
  :param str network_architecture: (Output)
1533
1536
  Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.
1537
+ :param str password: Input only. The password for the user that Database Migration Service will be using to connect to the database.
1538
+ This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
1539
+ **Note**: This property is sensitive and will not be displayed in the plan.
1534
1540
  :param bool password_set: (Output)
1535
1541
  Output only. Indicates If this connection profile password is stored.
1542
+ :param int port: The network port of the source MySQL database.
1536
1543
  :param 'ConnectionProfilePostgresqlSslArgs' ssl: SSL configuration for the destination to connect to the source database.
1537
1544
  Structure is documented below.
1545
+ :param str username: The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
1538
1546
  """
1539
- pulumi.set(__self__, "host", host)
1540
- pulumi.set(__self__, "password", password)
1541
- pulumi.set(__self__, "port", port)
1542
- pulumi.set(__self__, "username", username)
1547
+ if alloydb_cluster_id is not None:
1548
+ pulumi.set(__self__, "alloydb_cluster_id", alloydb_cluster_id)
1543
1549
  if cloud_sql_id is not None:
1544
1550
  pulumi.set(__self__, "cloud_sql_id", cloud_sql_id)
1551
+ if host is not None:
1552
+ pulumi.set(__self__, "host", host)
1545
1553
  if network_architecture is not None:
1546
1554
  pulumi.set(__self__, "network_architecture", network_architecture)
1555
+ if password is not None:
1556
+ pulumi.set(__self__, "password", password)
1547
1557
  if password_set is not None:
1548
1558
  pulumi.set(__self__, "password_set", password_set)
1559
+ if port is not None:
1560
+ pulumi.set(__self__, "port", port)
1549
1561
  if ssl is not None:
1550
1562
  pulumi.set(__self__, "ssl", ssl)
1563
+ if username is not None:
1564
+ pulumi.set(__self__, "username", username)
1551
1565
 
1552
1566
  @property
1553
- @pulumi.getter
1554
- def host(self) -> str:
1567
+ @pulumi.getter(name="alloydbClusterId")
1568
+ def alloydb_cluster_id(self) -> Optional[str]:
1555
1569
  """
1556
- Required. The IP or hostname of the source MySQL database.
1570
+ If the connected database is an AlloyDB instance, use this field to provide the AlloyDB cluster ID.
1557
1571
  """
1558
- return pulumi.get(self, "host")
1572
+ return pulumi.get(self, "alloydb_cluster_id")
1559
1573
 
1560
1574
  @property
1561
- @pulumi.getter
1562
- def password(self) -> str:
1563
- """
1564
- Required. Input only. The password for the user that Database Migration Service will be using to connect to the database.
1565
- This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
1566
- **Note**: This property is sensitive and will not be displayed in the plan.
1567
- """
1568
- return pulumi.get(self, "password")
1569
-
1570
- @property
1571
- @pulumi.getter
1572
- def port(self) -> int:
1575
+ @pulumi.getter(name="cloudSqlId")
1576
+ def cloud_sql_id(self) -> Optional[str]:
1573
1577
  """
1574
- Required. The network port of the source MySQL database.
1578
+ If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
1575
1579
  """
1576
- return pulumi.get(self, "port")
1580
+ return pulumi.get(self, "cloud_sql_id")
1577
1581
 
1578
1582
  @property
1579
1583
  @pulumi.getter
1580
- def username(self) -> str:
1584
+ def host(self) -> Optional[str]:
1581
1585
  """
1582
- Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
1586
+ The IP or hostname of the source MySQL database.
1583
1587
  """
1584
- return pulumi.get(self, "username")
1585
-
1586
- @property
1587
- @pulumi.getter(name="cloudSqlId")
1588
- def cloud_sql_id(self) -> Optional[str]:
1589
- """
1590
- If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
1591
- """
1592
- return pulumi.get(self, "cloud_sql_id")
1588
+ return pulumi.get(self, "host")
1593
1589
 
1594
1590
  @property
1595
1591
  @pulumi.getter(name="networkArchitecture")
@@ -1600,6 +1596,16 @@ class ConnectionProfilePostgresql(dict):
1600
1596
  """
1601
1597
  return pulumi.get(self, "network_architecture")
1602
1598
 
1599
+ @property
1600
+ @pulumi.getter
1601
+ def password(self) -> Optional[str]:
1602
+ """
1603
+ Input only. The password for the user that Database Migration Service will be using to connect to the database.
1604
+ This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
1605
+ **Note**: This property is sensitive and will not be displayed in the plan.
1606
+ """
1607
+ return pulumi.get(self, "password")
1608
+
1603
1609
  @property
1604
1610
  @pulumi.getter(name="passwordSet")
1605
1611
  def password_set(self) -> Optional[bool]:
@@ -1609,6 +1615,14 @@ class ConnectionProfilePostgresql(dict):
1609
1615
  """
1610
1616
  return pulumi.get(self, "password_set")
1611
1617
 
1618
+ @property
1619
+ @pulumi.getter
1620
+ def port(self) -> Optional[int]:
1621
+ """
1622
+ The network port of the source MySQL database.
1623
+ """
1624
+ return pulumi.get(self, "port")
1625
+
1612
1626
  @property
1613
1627
  @pulumi.getter
1614
1628
  def ssl(self) -> Optional['outputs.ConnectionProfilePostgresqlSsl']:
@@ -1618,6 +1632,14 @@ class ConnectionProfilePostgresql(dict):
1618
1632
  """
1619
1633
  return pulumi.get(self, "ssl")
1620
1634
 
1635
+ @property
1636
+ @pulumi.getter
1637
+ def username(self) -> Optional[str]:
1638
+ """
1639
+ The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
1640
+ """
1641
+ return pulumi.get(self, "username")
1642
+
1621
1643
 
1622
1644
  @pulumi.output_type
1623
1645
  class ConnectionProfilePostgresqlSsl(dict):