pulumi-gcp 8.15.0a1737527599__py3-none-any.whl → 8.16.0a1737786862__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.
- pulumi_gcp/__init__.py +78 -0
- pulumi_gcp/accesscontextmanager/access_level_condition.py +28 -0
- pulumi_gcp/accesscontextmanager/egress_policy.py +28 -0
- pulumi_gcp/accesscontextmanager/ingress_policy.py +28 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_egress_policy.py +28 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_ingress_policy.py +28 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_resource.py +28 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_egress_policy.py +28 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_ingress_policy.py +28 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_resource.py +56 -0
- pulumi_gcp/apigee/__init__.py +1 -0
- pulumi_gcp/apigee/environment_addons_config.py +266 -0
- pulumi_gcp/artifactregistry/repository.py +32 -2
- pulumi_gcp/bigquery/connection.py +2 -2
- pulumi_gcp/bigquery/routine.py +2 -2
- pulumi_gcp/billing/project_info.py +4 -4
- pulumi_gcp/chronicle/__init__.py +3 -0
- pulumi_gcp/chronicle/_inputs.py +379 -0
- pulumi_gcp/chronicle/data_access_label.py +21 -21
- pulumi_gcp/chronicle/outputs.py +302 -0
- pulumi_gcp/chronicle/reference_list.py +788 -0
- pulumi_gcp/chronicle/rule.py +1308 -0
- pulumi_gcp/chronicle/rule_deployment.py +849 -0
- pulumi_gcp/colab/__init__.py +10 -0
- pulumi_gcp/colab/_inputs.py +359 -0
- pulumi_gcp/colab/outputs.py +344 -0
- pulumi_gcp/colab/runtime_template.py +1160 -0
- pulumi_gcp/compute/_inputs.py +9 -9
- pulumi_gcp/compute/interconnect_attachment.py +7 -7
- pulumi_gcp/compute/outputs.py +6 -6
- pulumi_gcp/compute/route.py +8 -16
- pulumi_gcp/compute/subnetwork.py +7 -7
- pulumi_gcp/compute/target_instance.py +4 -4
- pulumi_gcp/compute/url_map.py +4 -0
- pulumi_gcp/config/__init__.pyi +6 -0
- pulumi_gcp/config/vars.py +12 -0
- pulumi_gcp/databasemigrationservice/connection_profile.py +6 -6
- pulumi_gcp/dataplex/entry_type.py +2 -2
- pulumi_gcp/dataplex/task.py +16 -16
- pulumi_gcp/dataproc/batch.py +10 -10
- pulumi_gcp/discoveryengine/_inputs.py +54 -0
- pulumi_gcp/discoveryengine/data_store.py +94 -0
- pulumi_gcp/discoveryengine/outputs.py +51 -0
- pulumi_gcp/edgenetwork/__init__.py +1 -0
- pulumi_gcp/edgenetwork/interconnect_attachment.py +941 -0
- pulumi_gcp/firestore/field.py +4 -4
- pulumi_gcp/gemini/code_repository_index.py +47 -0
- pulumi_gcp/gkehub/membership_binding.py +6 -6
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +4 -4
- pulumi_gcp/gkehub/namespace.py +4 -4
- pulumi_gcp/gkehub/scope_rbac_role_binding.py +4 -4
- pulumi_gcp/iap/tunnel_dest_group.py +2 -2
- pulumi_gcp/integrationconnectors/managed_zone.py +8 -8
- pulumi_gcp/networkconnectivity/spoke.py +14 -14
- pulumi_gcp/networksecurity/authz_policy.py +0 -202
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/parametermanager/__init__.py +13 -0
- pulumi_gcp/parametermanager/_inputs.py +174 -0
- pulumi_gcp/parametermanager/get_regional_parameter.py +230 -0
- pulumi_gcp/parametermanager/outputs.py +191 -0
- pulumi_gcp/parametermanager/parameter.py +706 -0
- pulumi_gcp/parametermanager/regional_parameter.py +762 -0
- pulumi_gcp/parametermanager/regional_parameter_version.py +558 -0
- pulumi_gcp/provider.py +60 -0
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/sql/_inputs.py +54 -0
- pulumi_gcp/sql/database_instance.py +78 -16
- pulumi_gcp/sql/get_database_instance.py +12 -1
- pulumi_gcp/sql/outputs.py +122 -0
- pulumi_gcp/sql/source_representation_instance.py +7 -14
- pulumi_gcp/vertex/ai_endpoint.py +4 -4
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- {pulumi_gcp-8.15.0a1737527599.dist-info → pulumi_gcp-8.16.0a1737786862.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.15.0a1737527599.dist-info → pulumi_gcp-8.16.0a1737786862.dist-info}/RECORD +77 -61
- {pulumi_gcp-8.15.0a1737527599.dist-info → pulumi_gcp-8.16.0a1737786862.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.15.0a1737527599.dist-info → pulumi_gcp-8.16.0a1737786862.dist-info}/top_level.txt +0 -0
pulumi_gcp/provider.py
CHANGED
@@ -67,6 +67,7 @@ class ProviderArgs:
|
|
67
67
|
clouddeploy_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
68
68
|
clouddomains_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
69
69
|
cloudfunctions2_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
70
|
+
colab_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
70
71
|
composer_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
71
72
|
compute_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
72
73
|
container_analysis_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
@@ -151,6 +152,8 @@ class ProviderArgs:
|
|
151
152
|
os_config_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
152
153
|
os_login_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
153
154
|
parallelstore_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
155
|
+
parameter_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
156
|
+
parameter_manager_regional_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
154
157
|
privateca_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
155
158
|
privileged_access_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
156
159
|
project: Optional[pulumi.Input[str]] = None,
|
@@ -298,6 +301,8 @@ class ProviderArgs:
|
|
298
301
|
pulumi.set(__self__, "clouddomains_custom_endpoint", clouddomains_custom_endpoint)
|
299
302
|
if cloudfunctions2_custom_endpoint is not None:
|
300
303
|
pulumi.set(__self__, "cloudfunctions2_custom_endpoint", cloudfunctions2_custom_endpoint)
|
304
|
+
if colab_custom_endpoint is not None:
|
305
|
+
pulumi.set(__self__, "colab_custom_endpoint", colab_custom_endpoint)
|
301
306
|
if composer_custom_endpoint is not None:
|
302
307
|
pulumi.set(__self__, "composer_custom_endpoint", composer_custom_endpoint)
|
303
308
|
if compute_custom_endpoint is not None:
|
@@ -466,6 +471,10 @@ class ProviderArgs:
|
|
466
471
|
pulumi.set(__self__, "os_login_custom_endpoint", os_login_custom_endpoint)
|
467
472
|
if parallelstore_custom_endpoint is not None:
|
468
473
|
pulumi.set(__self__, "parallelstore_custom_endpoint", parallelstore_custom_endpoint)
|
474
|
+
if parameter_manager_custom_endpoint is not None:
|
475
|
+
pulumi.set(__self__, "parameter_manager_custom_endpoint", parameter_manager_custom_endpoint)
|
476
|
+
if parameter_manager_regional_custom_endpoint is not None:
|
477
|
+
pulumi.set(__self__, "parameter_manager_regional_custom_endpoint", parameter_manager_regional_custom_endpoint)
|
469
478
|
if privateca_custom_endpoint is not None:
|
470
479
|
pulumi.set(__self__, "privateca_custom_endpoint", privateca_custom_endpoint)
|
471
480
|
if privileged_access_manager_custom_endpoint is not None:
|
@@ -996,6 +1005,15 @@ class ProviderArgs:
|
|
996
1005
|
def cloudfunctions2_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
|
997
1006
|
pulumi.set(self, "cloudfunctions2_custom_endpoint", value)
|
998
1007
|
|
1008
|
+
@property
|
1009
|
+
@pulumi.getter(name="colabCustomEndpoint")
|
1010
|
+
def colab_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
|
1011
|
+
return pulumi.get(self, "colab_custom_endpoint")
|
1012
|
+
|
1013
|
+
@colab_custom_endpoint.setter
|
1014
|
+
def colab_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
|
1015
|
+
pulumi.set(self, "colab_custom_endpoint", value)
|
1016
|
+
|
999
1017
|
@property
|
1000
1018
|
@pulumi.getter(name="composerCustomEndpoint")
|
1001
1019
|
def composer_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
|
@@ -1752,6 +1770,24 @@ class ProviderArgs:
|
|
1752
1770
|
def parallelstore_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
|
1753
1771
|
pulumi.set(self, "parallelstore_custom_endpoint", value)
|
1754
1772
|
|
1773
|
+
@property
|
1774
|
+
@pulumi.getter(name="parameterManagerCustomEndpoint")
|
1775
|
+
def parameter_manager_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
|
1776
|
+
return pulumi.get(self, "parameter_manager_custom_endpoint")
|
1777
|
+
|
1778
|
+
@parameter_manager_custom_endpoint.setter
|
1779
|
+
def parameter_manager_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
|
1780
|
+
pulumi.set(self, "parameter_manager_custom_endpoint", value)
|
1781
|
+
|
1782
|
+
@property
|
1783
|
+
@pulumi.getter(name="parameterManagerRegionalCustomEndpoint")
|
1784
|
+
def parameter_manager_regional_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
|
1785
|
+
return pulumi.get(self, "parameter_manager_regional_custom_endpoint")
|
1786
|
+
|
1787
|
+
@parameter_manager_regional_custom_endpoint.setter
|
1788
|
+
def parameter_manager_regional_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
|
1789
|
+
pulumi.set(self, "parameter_manager_regional_custom_endpoint", value)
|
1790
|
+
|
1755
1791
|
@property
|
1756
1792
|
@pulumi.getter(name="privatecaCustomEndpoint")
|
1757
1793
|
def privateca_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
|
@@ -2255,6 +2291,7 @@ class Provider(pulumi.ProviderResource):
|
|
2255
2291
|
clouddeploy_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2256
2292
|
clouddomains_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2257
2293
|
cloudfunctions2_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2294
|
+
colab_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2258
2295
|
composer_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2259
2296
|
compute_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2260
2297
|
container_analysis_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
@@ -2339,6 +2376,8 @@ class Provider(pulumi.ProviderResource):
|
|
2339
2376
|
os_config_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2340
2377
|
os_login_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2341
2378
|
parallelstore_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2379
|
+
parameter_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2380
|
+
parameter_manager_regional_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2342
2381
|
privateca_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2343
2382
|
privileged_access_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2344
2383
|
project: Optional[pulumi.Input[str]] = None,
|
@@ -2473,6 +2512,7 @@ class Provider(pulumi.ProviderResource):
|
|
2473
2512
|
clouddeploy_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2474
2513
|
clouddomains_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2475
2514
|
cloudfunctions2_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2515
|
+
colab_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2476
2516
|
composer_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2477
2517
|
compute_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2478
2518
|
container_analysis_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
@@ -2557,6 +2597,8 @@ class Provider(pulumi.ProviderResource):
|
|
2557
2597
|
os_config_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2558
2598
|
os_login_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2559
2599
|
parallelstore_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2600
|
+
parameter_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2601
|
+
parameter_manager_regional_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2560
2602
|
privateca_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2561
2603
|
privileged_access_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
|
2562
2604
|
project: Optional[pulumi.Input[str]] = None,
|
@@ -2663,6 +2705,7 @@ class Provider(pulumi.ProviderResource):
|
|
2663
2705
|
__props__.__dict__["clouddeploy_custom_endpoint"] = clouddeploy_custom_endpoint
|
2664
2706
|
__props__.__dict__["clouddomains_custom_endpoint"] = clouddomains_custom_endpoint
|
2665
2707
|
__props__.__dict__["cloudfunctions2_custom_endpoint"] = cloudfunctions2_custom_endpoint
|
2708
|
+
__props__.__dict__["colab_custom_endpoint"] = colab_custom_endpoint
|
2666
2709
|
__props__.__dict__["composer_custom_endpoint"] = composer_custom_endpoint
|
2667
2710
|
__props__.__dict__["compute_custom_endpoint"] = compute_custom_endpoint
|
2668
2711
|
__props__.__dict__["container_analysis_custom_endpoint"] = container_analysis_custom_endpoint
|
@@ -2747,6 +2790,8 @@ class Provider(pulumi.ProviderResource):
|
|
2747
2790
|
__props__.__dict__["os_config_custom_endpoint"] = os_config_custom_endpoint
|
2748
2791
|
__props__.__dict__["os_login_custom_endpoint"] = os_login_custom_endpoint
|
2749
2792
|
__props__.__dict__["parallelstore_custom_endpoint"] = parallelstore_custom_endpoint
|
2793
|
+
__props__.__dict__["parameter_manager_custom_endpoint"] = parameter_manager_custom_endpoint
|
2794
|
+
__props__.__dict__["parameter_manager_regional_custom_endpoint"] = parameter_manager_regional_custom_endpoint
|
2750
2795
|
__props__.__dict__["privateca_custom_endpoint"] = privateca_custom_endpoint
|
2751
2796
|
__props__.__dict__["privileged_access_manager_custom_endpoint"] = privileged_access_manager_custom_endpoint
|
2752
2797
|
if project is None:
|
@@ -3036,6 +3081,11 @@ class Provider(pulumi.ProviderResource):
|
|
3036
3081
|
def cloudfunctions2_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
|
3037
3082
|
return pulumi.get(self, "cloudfunctions2_custom_endpoint")
|
3038
3083
|
|
3084
|
+
@property
|
3085
|
+
@pulumi.getter(name="colabCustomEndpoint")
|
3086
|
+
def colab_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
|
3087
|
+
return pulumi.get(self, "colab_custom_endpoint")
|
3088
|
+
|
3039
3089
|
@property
|
3040
3090
|
@pulumi.getter(name="composerCustomEndpoint")
|
3041
3091
|
def composer_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
|
@@ -3441,6 +3491,16 @@ class Provider(pulumi.ProviderResource):
|
|
3441
3491
|
def parallelstore_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
|
3442
3492
|
return pulumi.get(self, "parallelstore_custom_endpoint")
|
3443
3493
|
|
3494
|
+
@property
|
3495
|
+
@pulumi.getter(name="parameterManagerCustomEndpoint")
|
3496
|
+
def parameter_manager_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
|
3497
|
+
return pulumi.get(self, "parameter_manager_custom_endpoint")
|
3498
|
+
|
3499
|
+
@property
|
3500
|
+
@pulumi.getter(name="parameterManagerRegionalCustomEndpoint")
|
3501
|
+
def parameter_manager_regional_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
|
3502
|
+
return pulumi.get(self, "parameter_manager_regional_custom_endpoint")
|
3503
|
+
|
3444
3504
|
@property
|
3445
3505
|
@pulumi.getter(name="privatecaCustomEndpoint")
|
3446
3506
|
def privateca_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
|
@@ -1113,7 +1113,7 @@ class Subscription(pulumi.CustomResource):
|
|
1113
1113
|
cloud_storage_config={
|
1114
1114
|
"bucket": example.name,
|
1115
1115
|
"filename_prefix": "pre-",
|
1116
|
-
"filename_suffix": "-
|
1116
|
+
"filename_suffix": "-_8270",
|
1117
1117
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1118
1118
|
"max_bytes": 1000,
|
1119
1119
|
"max_duration": "300s",
|
@@ -1146,7 +1146,7 @@ class Subscription(pulumi.CustomResource):
|
|
1146
1146
|
cloud_storage_config={
|
1147
1147
|
"bucket": example.name,
|
1148
1148
|
"filename_prefix": "pre-",
|
1149
|
-
"filename_suffix": "-
|
1149
|
+
"filename_suffix": "-_41150",
|
1150
1150
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1151
1151
|
"max_bytes": 1000,
|
1152
1152
|
"max_duration": "300s",
|
@@ -1185,7 +1185,7 @@ class Subscription(pulumi.CustomResource):
|
|
1185
1185
|
cloud_storage_config={
|
1186
1186
|
"bucket": example.name,
|
1187
1187
|
"filename_prefix": "pre-",
|
1188
|
-
"filename_suffix": "-
|
1188
|
+
"filename_suffix": "-_89313",
|
1189
1189
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1190
1190
|
"max_bytes": 1000,
|
1191
1191
|
"max_duration": "300s",
|
@@ -1553,7 +1553,7 @@ class Subscription(pulumi.CustomResource):
|
|
1553
1553
|
cloud_storage_config={
|
1554
1554
|
"bucket": example.name,
|
1555
1555
|
"filename_prefix": "pre-",
|
1556
|
-
"filename_suffix": "-
|
1556
|
+
"filename_suffix": "-_8270",
|
1557
1557
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1558
1558
|
"max_bytes": 1000,
|
1559
1559
|
"max_duration": "300s",
|
@@ -1586,7 +1586,7 @@ class Subscription(pulumi.CustomResource):
|
|
1586
1586
|
cloud_storage_config={
|
1587
1587
|
"bucket": example.name,
|
1588
1588
|
"filename_prefix": "pre-",
|
1589
|
-
"filename_suffix": "-
|
1589
|
+
"filename_suffix": "-_41150",
|
1590
1590
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1591
1591
|
"max_bytes": 1000,
|
1592
1592
|
"max_duration": "300s",
|
@@ -1625,7 +1625,7 @@ class Subscription(pulumi.CustomResource):
|
|
1625
1625
|
cloud_storage_config={
|
1626
1626
|
"bucket": example.name,
|
1627
1627
|
"filename_prefix": "pre-",
|
1628
|
-
"filename_suffix": "-
|
1628
|
+
"filename_suffix": "-_89313",
|
1629
1629
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1630
1630
|
"max_bytes": 1000,
|
1631
1631
|
"max_duration": "300s",
|
pulumi_gcp/pulumi-plugin.json
CHANGED
pulumi_gcp/sql/_inputs.py
CHANGED
@@ -21,6 +21,8 @@ __all__ = [
|
|
21
21
|
'DatabaseInstanceIpAddressArgsDict',
|
22
22
|
'DatabaseInstanceReplicaConfigurationArgs',
|
23
23
|
'DatabaseInstanceReplicaConfigurationArgsDict',
|
24
|
+
'DatabaseInstanceReplicationClusterArgs',
|
25
|
+
'DatabaseInstanceReplicationClusterArgsDict',
|
24
26
|
'DatabaseInstanceRestoreBackupContextArgs',
|
25
27
|
'DatabaseInstanceRestoreBackupContextArgsDict',
|
26
28
|
'DatabaseInstanceServerCaCertArgs',
|
@@ -555,6 +557,58 @@ class DatabaseInstanceReplicaConfigurationArgs:
|
|
555
557
|
pulumi.set(self, "verify_server_certificate", value)
|
556
558
|
|
557
559
|
|
560
|
+
if not MYPY:
|
561
|
+
class DatabaseInstanceReplicationClusterArgsDict(TypedDict):
|
562
|
+
dr_replica: NotRequired[pulumi.Input[bool]]
|
563
|
+
"""
|
564
|
+
Read-only field that indicates whether the replica is a DR replica.
|
565
|
+
"""
|
566
|
+
failover_dr_replica_name: NotRequired[pulumi.Input[str]]
|
567
|
+
"""
|
568
|
+
If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
|
569
|
+
"""
|
570
|
+
elif False:
|
571
|
+
DatabaseInstanceReplicationClusterArgsDict: TypeAlias = Mapping[str, Any]
|
572
|
+
|
573
|
+
@pulumi.input_type
|
574
|
+
class DatabaseInstanceReplicationClusterArgs:
|
575
|
+
def __init__(__self__, *,
|
576
|
+
dr_replica: Optional[pulumi.Input[bool]] = None,
|
577
|
+
failover_dr_replica_name: Optional[pulumi.Input[str]] = None):
|
578
|
+
"""
|
579
|
+
:param pulumi.Input[bool] dr_replica: Read-only field that indicates whether the replica is a DR replica.
|
580
|
+
:param pulumi.Input[str] failover_dr_replica_name: If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
|
581
|
+
"""
|
582
|
+
if dr_replica is not None:
|
583
|
+
pulumi.set(__self__, "dr_replica", dr_replica)
|
584
|
+
if failover_dr_replica_name is not None:
|
585
|
+
pulumi.set(__self__, "failover_dr_replica_name", failover_dr_replica_name)
|
586
|
+
|
587
|
+
@property
|
588
|
+
@pulumi.getter(name="drReplica")
|
589
|
+
def dr_replica(self) -> Optional[pulumi.Input[bool]]:
|
590
|
+
"""
|
591
|
+
Read-only field that indicates whether the replica is a DR replica.
|
592
|
+
"""
|
593
|
+
return pulumi.get(self, "dr_replica")
|
594
|
+
|
595
|
+
@dr_replica.setter
|
596
|
+
def dr_replica(self, value: Optional[pulumi.Input[bool]]):
|
597
|
+
pulumi.set(self, "dr_replica", value)
|
598
|
+
|
599
|
+
@property
|
600
|
+
@pulumi.getter(name="failoverDrReplicaName")
|
601
|
+
def failover_dr_replica_name(self) -> Optional[pulumi.Input[str]]:
|
602
|
+
"""
|
603
|
+
If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
|
604
|
+
"""
|
605
|
+
return pulumi.get(self, "failover_dr_replica_name")
|
606
|
+
|
607
|
+
@failover_dr_replica_name.setter
|
608
|
+
def failover_dr_replica_name(self, value: Optional[pulumi.Input[str]]):
|
609
|
+
pulumi.set(self, "failover_dr_replica_name", value)
|
610
|
+
|
611
|
+
|
558
612
|
if not MYPY:
|
559
613
|
class DatabaseInstanceRestoreBackupContextArgsDict(TypedDict):
|
560
614
|
backup_run_id: pulumi.Input[int]
|
@@ -33,6 +33,7 @@ class DatabaseInstanceArgs:
|
|
33
33
|
region: Optional[pulumi.Input[str]] = None,
|
34
34
|
replica_configuration: Optional[pulumi.Input['DatabaseInstanceReplicaConfigurationArgs']] = None,
|
35
35
|
replica_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
36
|
+
replication_cluster: Optional[pulumi.Input['DatabaseInstanceReplicationClusterArgs']] = None,
|
36
37
|
restore_backup_context: Optional[pulumi.Input['DatabaseInstanceRestoreBackupContextArgs']] = None,
|
37
38
|
root_password: Optional[pulumi.Input[str]] = None,
|
38
39
|
settings: Optional[pulumi.Input['DatabaseInstanceSettingsArgs']] = None):
|
@@ -78,6 +79,8 @@ class DatabaseInstanceArgs:
|
|
78
79
|
:param pulumi.Input['DatabaseInstanceReplicaConfigurationArgs'] replica_configuration: The configuration for replication. The
|
79
80
|
configuration is detailed below.
|
80
81
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] replica_names: List of replica names. Can be updated.
|
82
|
+
:param pulumi.Input['DatabaseInstanceReplicationClusterArgs'] replication_cluster: A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only
|
83
|
+
after both the primary and replica are created.
|
81
84
|
:param pulumi.Input['DatabaseInstanceRestoreBackupContextArgs'] restore_backup_context: The context needed to restore the database to a backup run. This field will
|
82
85
|
cause the provider to trigger the database to restore from the backup run indicated. The configuration is detailed below.
|
83
86
|
**NOTE:** Restoring from a backup is an imperative action and not recommended via this provider. Adding or modifying this
|
@@ -109,6 +112,8 @@ class DatabaseInstanceArgs:
|
|
109
112
|
pulumi.set(__self__, "replica_configuration", replica_configuration)
|
110
113
|
if replica_names is not None:
|
111
114
|
pulumi.set(__self__, "replica_names", replica_names)
|
115
|
+
if replication_cluster is not None:
|
116
|
+
pulumi.set(__self__, "replication_cluster", replication_cluster)
|
112
117
|
if restore_backup_context is not None:
|
113
118
|
pulumi.set(__self__, "restore_backup_context", restore_backup_context)
|
114
119
|
if root_password is not None:
|
@@ -288,6 +293,19 @@ class DatabaseInstanceArgs:
|
|
288
293
|
def replica_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
289
294
|
pulumi.set(self, "replica_names", value)
|
290
295
|
|
296
|
+
@property
|
297
|
+
@pulumi.getter(name="replicationCluster")
|
298
|
+
def replication_cluster(self) -> Optional[pulumi.Input['DatabaseInstanceReplicationClusterArgs']]:
|
299
|
+
"""
|
300
|
+
A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only
|
301
|
+
after both the primary and replica are created.
|
302
|
+
"""
|
303
|
+
return pulumi.get(self, "replication_cluster")
|
304
|
+
|
305
|
+
@replication_cluster.setter
|
306
|
+
def replication_cluster(self, value: Optional[pulumi.Input['DatabaseInstanceReplicationClusterArgs']]):
|
307
|
+
pulumi.set(self, "replication_cluster", value)
|
308
|
+
|
291
309
|
@property
|
292
310
|
@pulumi.getter(name="restoreBackupContext")
|
293
311
|
def restore_backup_context(self) -> Optional[pulumi.Input['DatabaseInstanceRestoreBackupContextArgs']]:
|
@@ -352,6 +370,7 @@ class _DatabaseInstanceState:
|
|
352
370
|
region: Optional[pulumi.Input[str]] = None,
|
353
371
|
replica_configuration: Optional[pulumi.Input['DatabaseInstanceReplicaConfigurationArgs']] = None,
|
354
372
|
replica_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
373
|
+
replication_cluster: Optional[pulumi.Input['DatabaseInstanceReplicationClusterArgs']] = None,
|
355
374
|
restore_backup_context: Optional[pulumi.Input['DatabaseInstanceRestoreBackupContextArgs']] = None,
|
356
375
|
root_password: Optional[pulumi.Input[str]] = None,
|
357
376
|
self_link: Optional[pulumi.Input[str]] = None,
|
@@ -408,6 +427,8 @@ class _DatabaseInstanceState:
|
|
408
427
|
:param pulumi.Input['DatabaseInstanceReplicaConfigurationArgs'] replica_configuration: The configuration for replication. The
|
409
428
|
configuration is detailed below.
|
410
429
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] replica_names: List of replica names. Can be updated.
|
430
|
+
:param pulumi.Input['DatabaseInstanceReplicationClusterArgs'] replication_cluster: A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only
|
431
|
+
after both the primary and replica are created.
|
411
432
|
:param pulumi.Input['DatabaseInstanceRestoreBackupContextArgs'] restore_backup_context: The context needed to restore the database to a backup run. This field will
|
412
433
|
cause the provider to trigger the database to restore from the backup run indicated. The configuration is detailed below.
|
413
434
|
**NOTE:** Restoring from a backup is an imperative action and not recommended via this provider. Adding or modifying this
|
@@ -459,6 +480,8 @@ class _DatabaseInstanceState:
|
|
459
480
|
pulumi.set(__self__, "replica_configuration", replica_configuration)
|
460
481
|
if replica_names is not None:
|
461
482
|
pulumi.set(__self__, "replica_names", replica_names)
|
483
|
+
if replication_cluster is not None:
|
484
|
+
pulumi.set(__self__, "replication_cluster", replication_cluster)
|
462
485
|
if restore_backup_context is not None:
|
463
486
|
pulumi.set(__self__, "restore_backup_context", restore_backup_context)
|
464
487
|
if root_password is not None:
|
@@ -738,6 +761,19 @@ class _DatabaseInstanceState:
|
|
738
761
|
def replica_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
739
762
|
pulumi.set(self, "replica_names", value)
|
740
763
|
|
764
|
+
@property
|
765
|
+
@pulumi.getter(name="replicationCluster")
|
766
|
+
def replication_cluster(self) -> Optional[pulumi.Input['DatabaseInstanceReplicationClusterArgs']]:
|
767
|
+
"""
|
768
|
+
A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only
|
769
|
+
after both the primary and replica are created.
|
770
|
+
"""
|
771
|
+
return pulumi.get(self, "replication_cluster")
|
772
|
+
|
773
|
+
@replication_cluster.setter
|
774
|
+
def replication_cluster(self, value: Optional[pulumi.Input['DatabaseInstanceReplicationClusterArgs']]):
|
775
|
+
pulumi.set(self, "replication_cluster", value)
|
776
|
+
|
741
777
|
@property
|
742
778
|
@pulumi.getter(name="restoreBackupContext")
|
743
779
|
def restore_backup_context(self) -> Optional[pulumi.Input['DatabaseInstanceRestoreBackupContextArgs']]:
|
@@ -830,6 +866,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
830
866
|
region: Optional[pulumi.Input[str]] = None,
|
831
867
|
replica_configuration: Optional[pulumi.Input[Union['DatabaseInstanceReplicaConfigurationArgs', 'DatabaseInstanceReplicaConfigurationArgsDict']]] = None,
|
832
868
|
replica_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
869
|
+
replication_cluster: Optional[pulumi.Input[Union['DatabaseInstanceReplicationClusterArgs', 'DatabaseInstanceReplicationClusterArgsDict']]] = None,
|
833
870
|
restore_backup_context: Optional[pulumi.Input[Union['DatabaseInstanceRestoreBackupContextArgs', 'DatabaseInstanceRestoreBackupContextArgsDict']]] = None,
|
834
871
|
root_password: Optional[pulumi.Input[str]] = None,
|
835
872
|
settings: Optional[pulumi.Input[Union['DatabaseInstanceSettingsArgs', 'DatabaseInstanceSettingsArgsDict']]] = None,
|
@@ -973,9 +1010,9 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
973
1010
|
})
|
974
1011
|
```
|
975
1012
|
|
976
|
-
## Switchover
|
1013
|
+
## Switchover
|
977
1014
|
|
978
|
-
Users can perform a switchover on
|
1015
|
+
Users can perform a switchover on a replica by following the steps below.
|
979
1016
|
|
980
1017
|
~>**WARNING:** Failure to follow these steps can lead to data loss (You will be warned during plan stage). To prevent data loss during a switchover, please verify your plan with the checklist below.
|
981
1018
|
|
@@ -983,22 +1020,26 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
983
1020
|
|
984
1021
|
### Steps to Invoke Switchover
|
985
1022
|
|
986
|
-
Create a
|
1023
|
+
MySQL/PostgreSQL: Create a cross-region, Enterprise Plus edition primary and replica pair, then set the value of primary's `replication_cluster.failover_dr_replica_name` as the replica.
|
1024
|
+
|
1025
|
+
SQL Server: Create a `cascadable` replica in a different region from the primary (`cascadable_replica` is set to true in `replica_configuration`)
|
987
1026
|
|
988
1027
|
#### Invoking switchover in the replica resource:
|
989
1028
|
1. Change instance_type from `READ_REPLICA_INSTANCE` to `CLOUD_SQL_INSTANCE`
|
990
1029
|
2. Remove `master_instance_name`
|
991
|
-
3. Remove `replica_configuration`
|
1030
|
+
3. (SQL Server) Remove `replica_configuration`
|
992
1031
|
4. Add current primary's name to the replica's `replica_names` list
|
1032
|
+
5. (MySQL/PostgreSQL) Add current primary's name to the replica's `replication_cluster.failover_dr_replica_name`.
|
1033
|
+
6. (MySQL/PostgreSQL) Adjust `backup_configuration`. See Switchover Guide for details.
|
993
1034
|
|
994
1035
|
#### Updating the primary resource:
|
995
1036
|
1. Change `instance_type` from `CLOUD_SQL_INSTANCE` to `READ_REPLICA_INSTANCE`
|
996
1037
|
2. Set `master_instance_name` to the original replica (which will be primary after switchover)
|
997
|
-
3. Set `replica_configuration` and set `cascadable_replica` to `true`
|
1038
|
+
3. (SQL Server) Set `replica_configuration` and set `cascadable_replica` to `true`
|
998
1039
|
4. Remove original replica from `replica_names`
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1040
|
+
* **NOTE**: Do **not** delete the replica_names field, even if it has no replicas remaining. Set replica_names = [ ] to indicate it having no replicas.
|
1041
|
+
5. (MySQL/PostgreSQL) Set `replication_cluster.failover_dr_replica_name` as the empty string.
|
1042
|
+
6. (MySQL/PostgreSQL) Adjust `backup_configuration`. See Switchover Guide for details.
|
1002
1043
|
#### Plan and verify that:
|
1003
1044
|
- `pulumi preview` outputs **"0 to add, 0 to destroy"**
|
1004
1045
|
- `pulumi preview` does not say **"must be replaced"** for any resource
|
@@ -1078,6 +1119,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1078
1119
|
:param pulumi.Input[Union['DatabaseInstanceReplicaConfigurationArgs', 'DatabaseInstanceReplicaConfigurationArgsDict']] replica_configuration: The configuration for replication. The
|
1079
1120
|
configuration is detailed below.
|
1080
1121
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] replica_names: List of replica names. Can be updated.
|
1122
|
+
:param pulumi.Input[Union['DatabaseInstanceReplicationClusterArgs', 'DatabaseInstanceReplicationClusterArgsDict']] replication_cluster: A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only
|
1123
|
+
after both the primary and replica are created.
|
1081
1124
|
:param pulumi.Input[Union['DatabaseInstanceRestoreBackupContextArgs', 'DatabaseInstanceRestoreBackupContextArgsDict']] restore_backup_context: The context needed to restore the database to a backup run. This field will
|
1082
1125
|
cause the provider to trigger the database to restore from the backup run indicated. The configuration is detailed below.
|
1083
1126
|
**NOTE:** Restoring from a backup is an imperative action and not recommended via this provider. Adding or modifying this
|
@@ -1231,9 +1274,9 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1231
1274
|
})
|
1232
1275
|
```
|
1233
1276
|
|
1234
|
-
## Switchover
|
1277
|
+
## Switchover
|
1235
1278
|
|
1236
|
-
Users can perform a switchover on
|
1279
|
+
Users can perform a switchover on a replica by following the steps below.
|
1237
1280
|
|
1238
1281
|
~>**WARNING:** Failure to follow these steps can lead to data loss (You will be warned during plan stage). To prevent data loss during a switchover, please verify your plan with the checklist below.
|
1239
1282
|
|
@@ -1241,22 +1284,26 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1241
1284
|
|
1242
1285
|
### Steps to Invoke Switchover
|
1243
1286
|
|
1244
|
-
Create a
|
1287
|
+
MySQL/PostgreSQL: Create a cross-region, Enterprise Plus edition primary and replica pair, then set the value of primary's `replication_cluster.failover_dr_replica_name` as the replica.
|
1288
|
+
|
1289
|
+
SQL Server: Create a `cascadable` replica in a different region from the primary (`cascadable_replica` is set to true in `replica_configuration`)
|
1245
1290
|
|
1246
1291
|
#### Invoking switchover in the replica resource:
|
1247
1292
|
1. Change instance_type from `READ_REPLICA_INSTANCE` to `CLOUD_SQL_INSTANCE`
|
1248
1293
|
2. Remove `master_instance_name`
|
1249
|
-
3. Remove `replica_configuration`
|
1294
|
+
3. (SQL Server) Remove `replica_configuration`
|
1250
1295
|
4. Add current primary's name to the replica's `replica_names` list
|
1296
|
+
5. (MySQL/PostgreSQL) Add current primary's name to the replica's `replication_cluster.failover_dr_replica_name`.
|
1297
|
+
6. (MySQL/PostgreSQL) Adjust `backup_configuration`. See Switchover Guide for details.
|
1251
1298
|
|
1252
1299
|
#### Updating the primary resource:
|
1253
1300
|
1. Change `instance_type` from `CLOUD_SQL_INSTANCE` to `READ_REPLICA_INSTANCE`
|
1254
1301
|
2. Set `master_instance_name` to the original replica (which will be primary after switchover)
|
1255
|
-
3. Set `replica_configuration` and set `cascadable_replica` to `true`
|
1302
|
+
3. (SQL Server) Set `replica_configuration` and set `cascadable_replica` to `true`
|
1256
1303
|
4. Remove original replica from `replica_names`
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1304
|
+
* **NOTE**: Do **not** delete the replica_names field, even if it has no replicas remaining. Set replica_names = [ ] to indicate it having no replicas.
|
1305
|
+
5. (MySQL/PostgreSQL) Set `replication_cluster.failover_dr_replica_name` as the empty string.
|
1306
|
+
6. (MySQL/PostgreSQL) Adjust `backup_configuration`. See Switchover Guide for details.
|
1260
1307
|
#### Plan and verify that:
|
1261
1308
|
- `pulumi preview` outputs **"0 to add, 0 to destroy"**
|
1262
1309
|
- `pulumi preview` does not say **"must be replaced"** for any resource
|
@@ -1321,6 +1368,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1321
1368
|
region: Optional[pulumi.Input[str]] = None,
|
1322
1369
|
replica_configuration: Optional[pulumi.Input[Union['DatabaseInstanceReplicaConfigurationArgs', 'DatabaseInstanceReplicaConfigurationArgsDict']]] = None,
|
1323
1370
|
replica_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1371
|
+
replication_cluster: Optional[pulumi.Input[Union['DatabaseInstanceReplicationClusterArgs', 'DatabaseInstanceReplicationClusterArgsDict']]] = None,
|
1324
1372
|
restore_backup_context: Optional[pulumi.Input[Union['DatabaseInstanceRestoreBackupContextArgs', 'DatabaseInstanceRestoreBackupContextArgsDict']]] = None,
|
1325
1373
|
root_password: Optional[pulumi.Input[str]] = None,
|
1326
1374
|
settings: Optional[pulumi.Input[Union['DatabaseInstanceSettingsArgs', 'DatabaseInstanceSettingsArgsDict']]] = None,
|
@@ -1347,6 +1395,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1347
1395
|
__props__.__dict__["region"] = region
|
1348
1396
|
__props__.__dict__["replica_configuration"] = None if replica_configuration is None else pulumi.Output.secret(replica_configuration)
|
1349
1397
|
__props__.__dict__["replica_names"] = replica_names
|
1398
|
+
__props__.__dict__["replication_cluster"] = replication_cluster
|
1350
1399
|
__props__.__dict__["restore_backup_context"] = restore_backup_context
|
1351
1400
|
__props__.__dict__["root_password"] = None if root_password is None else pulumi.Output.secret(root_password)
|
1352
1401
|
__props__.__dict__["settings"] = settings
|
@@ -1393,6 +1442,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1393
1442
|
region: Optional[pulumi.Input[str]] = None,
|
1394
1443
|
replica_configuration: Optional[pulumi.Input[Union['DatabaseInstanceReplicaConfigurationArgs', 'DatabaseInstanceReplicaConfigurationArgsDict']]] = None,
|
1395
1444
|
replica_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
1445
|
+
replication_cluster: Optional[pulumi.Input[Union['DatabaseInstanceReplicationClusterArgs', 'DatabaseInstanceReplicationClusterArgsDict']]] = None,
|
1396
1446
|
restore_backup_context: Optional[pulumi.Input[Union['DatabaseInstanceRestoreBackupContextArgs', 'DatabaseInstanceRestoreBackupContextArgsDict']]] = None,
|
1397
1447
|
root_password: Optional[pulumi.Input[str]] = None,
|
1398
1448
|
self_link: Optional[pulumi.Input[str]] = None,
|
@@ -1454,6 +1504,8 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1454
1504
|
:param pulumi.Input[Union['DatabaseInstanceReplicaConfigurationArgs', 'DatabaseInstanceReplicaConfigurationArgsDict']] replica_configuration: The configuration for replication. The
|
1455
1505
|
configuration is detailed below.
|
1456
1506
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] replica_names: List of replica names. Can be updated.
|
1507
|
+
:param pulumi.Input[Union['DatabaseInstanceReplicationClusterArgs', 'DatabaseInstanceReplicationClusterArgsDict']] replication_cluster: A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only
|
1508
|
+
after both the primary and replica are created.
|
1457
1509
|
:param pulumi.Input[Union['DatabaseInstanceRestoreBackupContextArgs', 'DatabaseInstanceRestoreBackupContextArgsDict']] restore_backup_context: The context needed to restore the database to a backup run. This field will
|
1458
1510
|
cause the provider to trigger the database to restore from the backup run indicated. The configuration is detailed below.
|
1459
1511
|
**NOTE:** Restoring from a backup is an imperative action and not recommended via this provider. Adding or modifying this
|
@@ -1489,6 +1541,7 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1489
1541
|
__props__.__dict__["region"] = region
|
1490
1542
|
__props__.__dict__["replica_configuration"] = replica_configuration
|
1491
1543
|
__props__.__dict__["replica_names"] = replica_names
|
1544
|
+
__props__.__dict__["replication_cluster"] = replication_cluster
|
1492
1545
|
__props__.__dict__["restore_backup_context"] = restore_backup_context
|
1493
1546
|
__props__.__dict__["root_password"] = root_password
|
1494
1547
|
__props__.__dict__["self_link"] = self_link
|
@@ -1683,6 +1736,15 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1683
1736
|
"""
|
1684
1737
|
return pulumi.get(self, "replica_names")
|
1685
1738
|
|
1739
|
+
@property
|
1740
|
+
@pulumi.getter(name="replicationCluster")
|
1741
|
+
def replication_cluster(self) -> pulumi.Output['outputs.DatabaseInstanceReplicationCluster']:
|
1742
|
+
"""
|
1743
|
+
A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only
|
1744
|
+
after both the primary and replica are created.
|
1745
|
+
"""
|
1746
|
+
return pulumi.get(self, "replication_cluster")
|
1747
|
+
|
1686
1748
|
@property
|
1687
1749
|
@pulumi.getter(name="restoreBackupContext")
|
1688
1750
|
def restore_backup_context(self) -> pulumi.Output[Optional['outputs.DatabaseInstanceRestoreBackupContext']]:
|
@@ -27,7 +27,7 @@ class GetDatabaseInstanceResult:
|
|
27
27
|
"""
|
28
28
|
A collection of values returned by getDatabaseInstance.
|
29
29
|
"""
|
30
|
-
def __init__(__self__, available_maintenance_versions=None, clones=None, connection_name=None, database_version=None, deletion_protection=None, dns_name=None, encryption_key_name=None, first_ip_address=None, id=None, instance_type=None, ip_addresses=None, maintenance_version=None, master_instance_name=None, name=None, private_ip_address=None, project=None, psc_service_attachment_link=None, public_ip_address=None, region=None, replica_configurations=None, replica_names=None, restore_backup_contexts=None, root_password=None, self_link=None, server_ca_certs=None, service_account_email_address=None, settings=None):
|
30
|
+
def __init__(__self__, available_maintenance_versions=None, clones=None, connection_name=None, database_version=None, deletion_protection=None, dns_name=None, encryption_key_name=None, first_ip_address=None, id=None, instance_type=None, ip_addresses=None, maintenance_version=None, master_instance_name=None, name=None, private_ip_address=None, project=None, psc_service_attachment_link=None, public_ip_address=None, region=None, replica_configurations=None, replica_names=None, replication_clusters=None, restore_backup_contexts=None, root_password=None, self_link=None, server_ca_certs=None, service_account_email_address=None, settings=None):
|
31
31
|
if available_maintenance_versions and not isinstance(available_maintenance_versions, list):
|
32
32
|
raise TypeError("Expected argument 'available_maintenance_versions' to be a list")
|
33
33
|
pulumi.set(__self__, "available_maintenance_versions", available_maintenance_versions)
|
@@ -91,6 +91,9 @@ class GetDatabaseInstanceResult:
|
|
91
91
|
if replica_names and not isinstance(replica_names, list):
|
92
92
|
raise TypeError("Expected argument 'replica_names' to be a list")
|
93
93
|
pulumi.set(__self__, "replica_names", replica_names)
|
94
|
+
if replication_clusters and not isinstance(replication_clusters, list):
|
95
|
+
raise TypeError("Expected argument 'replication_clusters' to be a list")
|
96
|
+
pulumi.set(__self__, "replication_clusters", replication_clusters)
|
94
97
|
if restore_backup_contexts and not isinstance(restore_backup_contexts, list):
|
95
98
|
raise TypeError("Expected argument 'restore_backup_contexts' to be a list")
|
96
99
|
pulumi.set(__self__, "restore_backup_contexts", restore_backup_contexts)
|
@@ -218,6 +221,11 @@ class GetDatabaseInstanceResult:
|
|
218
221
|
def replica_names(self) -> Sequence[str]:
|
219
222
|
return pulumi.get(self, "replica_names")
|
220
223
|
|
224
|
+
@property
|
225
|
+
@pulumi.getter(name="replicationClusters")
|
226
|
+
def replication_clusters(self) -> Sequence['outputs.GetDatabaseInstanceReplicationClusterResult']:
|
227
|
+
return pulumi.get(self, "replication_clusters")
|
228
|
+
|
221
229
|
@property
|
222
230
|
@pulumi.getter(name="restoreBackupContexts")
|
223
231
|
def restore_backup_contexts(self) -> Sequence['outputs.GetDatabaseInstanceRestoreBackupContextResult']:
|
@@ -276,6 +284,7 @@ class AwaitableGetDatabaseInstanceResult(GetDatabaseInstanceResult):
|
|
276
284
|
region=self.region,
|
277
285
|
replica_configurations=self.replica_configurations,
|
278
286
|
replica_names=self.replica_names,
|
287
|
+
replication_clusters=self.replication_clusters,
|
279
288
|
restore_backup_contexts=self.restore_backup_contexts,
|
280
289
|
root_password=self.root_password,
|
281
290
|
self_link=self.self_link,
|
@@ -331,6 +340,7 @@ def get_database_instance(name: Optional[str] = None,
|
|
331
340
|
region=pulumi.get(__ret__, 'region'),
|
332
341
|
replica_configurations=pulumi.get(__ret__, 'replica_configurations'),
|
333
342
|
replica_names=pulumi.get(__ret__, 'replica_names'),
|
343
|
+
replication_clusters=pulumi.get(__ret__, 'replication_clusters'),
|
334
344
|
restore_backup_contexts=pulumi.get(__ret__, 'restore_backup_contexts'),
|
335
345
|
root_password=pulumi.get(__ret__, 'root_password'),
|
336
346
|
self_link=pulumi.get(__ret__, 'self_link'),
|
@@ -383,6 +393,7 @@ def get_database_instance_output(name: Optional[pulumi.Input[str]] = None,
|
|
383
393
|
region=pulumi.get(__response__, 'region'),
|
384
394
|
replica_configurations=pulumi.get(__response__, 'replica_configurations'),
|
385
395
|
replica_names=pulumi.get(__response__, 'replica_names'),
|
396
|
+
replication_clusters=pulumi.get(__response__, 'replication_clusters'),
|
386
397
|
restore_backup_contexts=pulumi.get(__response__, 'restore_backup_contexts'),
|
387
398
|
root_password=pulumi.get(__response__, 'root_password'),
|
388
399
|
self_link=pulumi.get(__response__, 'self_link'),
|