pulumi-gcp 8.10.0__py3-none-any.whl → 8.10.0a1731584999__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 +0 -24
- pulumi_gcp/accesscontextmanager/__init__.py +0 -1
- pulumi_gcp/accesscontextmanager/_inputs.py +54 -90
- pulumi_gcp/accesscontextmanager/outputs.py +36 -60
- pulumi_gcp/artifactregistry/_inputs.py +0 -56
- pulumi_gcp/artifactregistry/outputs.py +0 -65
- pulumi_gcp/artifactregistry/repository.py +0 -48
- pulumi_gcp/backupdisasterrecovery/__init__.py +0 -1
- pulumi_gcp/backupdisasterrecovery/backup_vault.py +0 -63
- pulumi_gcp/backupdisasterrecovery/outputs.py +0 -402
- pulumi_gcp/certificateauthority/authority.py +138 -28
- pulumi_gcp/cloudrun/service.py +10 -0
- pulumi_gcp/cloudrunv2/get_service.py +4 -15
- pulumi_gcp/cloudrunv2/service.py +2 -30
- pulumi_gcp/compute/_inputs.py +12 -12
- pulumi_gcp/compute/outputs.py +10 -10
- pulumi_gcp/dataproc/__init__.py +0 -1
- pulumi_gcp/dataproc/_inputs.py +0 -490
- pulumi_gcp/dataproc/outputs.py +0 -385
- pulumi_gcp/filestore/_inputs.py +0 -152
- pulumi_gcp/filestore/get_instance.py +1 -12
- pulumi_gcp/filestore/instance.py +0 -47
- pulumi_gcp/filestore/outputs.py +0 -229
- pulumi_gcp/iam/__init__.py +0 -2
- pulumi_gcp/iam/_inputs.py +0 -274
- pulumi_gcp/iam/outputs.py +0 -198
- pulumi_gcp/managedkafka/cluster.py +0 -4
- pulumi_gcp/managedkafka/topic.py +0 -4
- pulumi_gcp/pubsub/subscription.py +8 -8
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +0 -213
- pulumi_gcp/redis/cluster.py +0 -289
- pulumi_gcp/redis/outputs.py +0 -185
- pulumi_gcp/securesourcemanager/_inputs.py +0 -33
- pulumi_gcp/securesourcemanager/instance.py +3 -90
- pulumi_gcp/securesourcemanager/outputs.py +0 -19
- pulumi_gcp/spanner/database.py +14 -14
- pulumi_gcp/sql/_inputs.py +0 -73
- pulumi_gcp/sql/database_instance.py +0 -60
- pulumi_gcp/sql/outputs.py +0 -146
- pulumi_gcp/sql/user.py +2 -2
- pulumi_gcp/tags/location_tag_binding.py +8 -8
- pulumi_gcp/vertex/ai_endpoint.py +29 -22
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731584999.dist-info}/METADATA +5 -5
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731584999.dist-info}/RECORD +47 -52
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731584999.dist-info}/WHEEL +1 -1
- pulumi_gcp/accesscontextmanager/get_access_policy.py +0 -158
- pulumi_gcp/backupdisasterrecovery/get_data_source.py +0 -263
- pulumi_gcp/dataproc/gdc_spark_application.py +0 -1658
- pulumi_gcp/iam/folders_policy_binding.py +0 -917
- pulumi_gcp/iam/organizations_policy_binding.py +0 -901
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731584999.dist-info}/top_level.txt +0 -0
pulumi_gcp/sql/_inputs.py
CHANGED
@@ -49,8 +49,6 @@ __all__ = [
|
|
49
49
|
'DatabaseInstanceSettingsIpConfigurationAuthorizedNetworkArgsDict',
|
50
50
|
'DatabaseInstanceSettingsIpConfigurationPscConfigArgs',
|
51
51
|
'DatabaseInstanceSettingsIpConfigurationPscConfigArgsDict',
|
52
|
-
'DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgs',
|
53
|
-
'DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgsDict',
|
54
52
|
'DatabaseInstanceSettingsLocationPreferenceArgs',
|
55
53
|
'DatabaseInstanceSettingsLocationPreferenceArgsDict',
|
56
54
|
'DatabaseInstanceSettingsMaintenanceWindowArgs',
|
@@ -2106,10 +2104,6 @@ if not MYPY:
|
|
2106
2104
|
"""
|
2107
2105
|
List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
2108
2106
|
"""
|
2109
|
-
psc_auto_connections: NotRequired[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgsDict']]]]
|
2110
|
-
"""
|
2111
|
-
A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
2112
|
-
"""
|
2113
2107
|
psc_enabled: NotRequired[pulumi.Input[bool]]
|
2114
2108
|
"""
|
2115
2109
|
Whether PSC connectivity is enabled for this instance.
|
@@ -2121,17 +2115,13 @@ elif False:
|
|
2121
2115
|
class DatabaseInstanceSettingsIpConfigurationPscConfigArgs:
|
2122
2116
|
def __init__(__self__, *,
|
2123
2117
|
allowed_consumer_projects: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
2124
|
-
psc_auto_connections: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgs']]]] = None,
|
2125
2118
|
psc_enabled: Optional[pulumi.Input[bool]] = None):
|
2126
2119
|
"""
|
2127
2120
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_consumer_projects: List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
2128
|
-
:param pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgs']]] psc_auto_connections: A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
2129
2121
|
:param pulumi.Input[bool] psc_enabled: Whether PSC connectivity is enabled for this instance.
|
2130
2122
|
"""
|
2131
2123
|
if allowed_consumer_projects is not None:
|
2132
2124
|
pulumi.set(__self__, "allowed_consumer_projects", allowed_consumer_projects)
|
2133
|
-
if psc_auto_connections is not None:
|
2134
|
-
pulumi.set(__self__, "psc_auto_connections", psc_auto_connections)
|
2135
2125
|
if psc_enabled is not None:
|
2136
2126
|
pulumi.set(__self__, "psc_enabled", psc_enabled)
|
2137
2127
|
|
@@ -2147,18 +2137,6 @@ class DatabaseInstanceSettingsIpConfigurationPscConfigArgs:
|
|
2147
2137
|
def allowed_consumer_projects(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
2148
2138
|
pulumi.set(self, "allowed_consumer_projects", value)
|
2149
2139
|
|
2150
|
-
@property
|
2151
|
-
@pulumi.getter(name="pscAutoConnections")
|
2152
|
-
def psc_auto_connections(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgs']]]]:
|
2153
|
-
"""
|
2154
|
-
A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
2155
|
-
"""
|
2156
|
-
return pulumi.get(self, "psc_auto_connections")
|
2157
|
-
|
2158
|
-
@psc_auto_connections.setter
|
2159
|
-
def psc_auto_connections(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgs']]]]):
|
2160
|
-
pulumi.set(self, "psc_auto_connections", value)
|
2161
|
-
|
2162
2140
|
@property
|
2163
2141
|
@pulumi.getter(name="pscEnabled")
|
2164
2142
|
def psc_enabled(self) -> Optional[pulumi.Input[bool]]:
|
@@ -2172,57 +2150,6 @@ class DatabaseInstanceSettingsIpConfigurationPscConfigArgs:
|
|
2172
2150
|
pulumi.set(self, "psc_enabled", value)
|
2173
2151
|
|
2174
2152
|
|
2175
|
-
if not MYPY:
|
2176
|
-
class DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgsDict(TypedDict):
|
2177
|
-
consumer_network: pulumi.Input[str]
|
2178
|
-
"""
|
2179
|
-
"The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project."
|
2180
|
-
"""
|
2181
|
-
consumer_service_project_id: NotRequired[pulumi.Input[str]]
|
2182
|
-
"""
|
2183
|
-
The project ID of consumer service project of this consumer endpoint.
|
2184
|
-
"""
|
2185
|
-
elif False:
|
2186
|
-
DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgsDict: TypeAlias = Mapping[str, Any]
|
2187
|
-
|
2188
|
-
@pulumi.input_type
|
2189
|
-
class DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgs:
|
2190
|
-
def __init__(__self__, *,
|
2191
|
-
consumer_network: pulumi.Input[str],
|
2192
|
-
consumer_service_project_id: Optional[pulumi.Input[str]] = None):
|
2193
|
-
"""
|
2194
|
-
:param pulumi.Input[str] consumer_network: "The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project."
|
2195
|
-
:param pulumi.Input[str] consumer_service_project_id: The project ID of consumer service project of this consumer endpoint.
|
2196
|
-
"""
|
2197
|
-
pulumi.set(__self__, "consumer_network", consumer_network)
|
2198
|
-
if consumer_service_project_id is not None:
|
2199
|
-
pulumi.set(__self__, "consumer_service_project_id", consumer_service_project_id)
|
2200
|
-
|
2201
|
-
@property
|
2202
|
-
@pulumi.getter(name="consumerNetwork")
|
2203
|
-
def consumer_network(self) -> pulumi.Input[str]:
|
2204
|
-
"""
|
2205
|
-
"The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project."
|
2206
|
-
"""
|
2207
|
-
return pulumi.get(self, "consumer_network")
|
2208
|
-
|
2209
|
-
@consumer_network.setter
|
2210
|
-
def consumer_network(self, value: pulumi.Input[str]):
|
2211
|
-
pulumi.set(self, "consumer_network", value)
|
2212
|
-
|
2213
|
-
@property
|
2214
|
-
@pulumi.getter(name="consumerServiceProjectId")
|
2215
|
-
def consumer_service_project_id(self) -> Optional[pulumi.Input[str]]:
|
2216
|
-
"""
|
2217
|
-
The project ID of consumer service project of this consumer endpoint.
|
2218
|
-
"""
|
2219
|
-
return pulumi.get(self, "consumer_service_project_id")
|
2220
|
-
|
2221
|
-
@consumer_service_project_id.setter
|
2222
|
-
def consumer_service_project_id(self, value: Optional[pulumi.Input[str]]):
|
2223
|
-
pulumi.set(self, "consumer_service_project_id", value)
|
2224
|
-
|
2225
|
-
|
2226
2153
|
if not MYPY:
|
2227
2154
|
class DatabaseInstanceSettingsLocationPreferenceArgsDict(TypedDict):
|
2228
2155
|
follow_gae_application: NotRequired[pulumi.Input[str]]
|
@@ -943,36 +943,6 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
943
943
|
})
|
944
944
|
```
|
945
945
|
|
946
|
-
### Cloud SQL Instance with PSC auto connections
|
947
|
-
|
948
|
-
```python
|
949
|
-
import pulumi
|
950
|
-
import pulumi_gcp as gcp
|
951
|
-
|
952
|
-
main = gcp.sql.DatabaseInstance("main",
|
953
|
-
name="psc-enabled-main-instance",
|
954
|
-
database_version="MYSQL_8_0",
|
955
|
-
settings={
|
956
|
-
"tier": "db-f1-micro",
|
957
|
-
"ip_configuration": {
|
958
|
-
"psc_configs": [{
|
959
|
-
"psc_enabled": True,
|
960
|
-
"allowed_consumer_projects": ["allowed-consumer-project-name"],
|
961
|
-
"psc_auto_connections": [{
|
962
|
-
"consumer_network": "network-name",
|
963
|
-
"consumer_service_project_id": "project-id",
|
964
|
-
}],
|
965
|
-
}],
|
966
|
-
"ipv4_enabled": False,
|
967
|
-
},
|
968
|
-
"backup_configuration": {
|
969
|
-
"enabled": True,
|
970
|
-
"binary_log_enabled": True,
|
971
|
-
},
|
972
|
-
"availability_type": "REGIONAL",
|
973
|
-
})
|
974
|
-
```
|
975
|
-
|
976
946
|
## Switchover (SQL Server Only)
|
977
947
|
|
978
948
|
Users can perform a switchover on any direct `cascadable` replica by following the steps below.
|
@@ -1201,36 +1171,6 @@ class DatabaseInstance(pulumi.CustomResource):
|
|
1201
1171
|
})
|
1202
1172
|
```
|
1203
1173
|
|
1204
|
-
### Cloud SQL Instance with PSC auto connections
|
1205
|
-
|
1206
|
-
```python
|
1207
|
-
import pulumi
|
1208
|
-
import pulumi_gcp as gcp
|
1209
|
-
|
1210
|
-
main = gcp.sql.DatabaseInstance("main",
|
1211
|
-
name="psc-enabled-main-instance",
|
1212
|
-
database_version="MYSQL_8_0",
|
1213
|
-
settings={
|
1214
|
-
"tier": "db-f1-micro",
|
1215
|
-
"ip_configuration": {
|
1216
|
-
"psc_configs": [{
|
1217
|
-
"psc_enabled": True,
|
1218
|
-
"allowed_consumer_projects": ["allowed-consumer-project-name"],
|
1219
|
-
"psc_auto_connections": [{
|
1220
|
-
"consumer_network": "network-name",
|
1221
|
-
"consumer_service_project_id": "project-id",
|
1222
|
-
}],
|
1223
|
-
}],
|
1224
|
-
"ipv4_enabled": False,
|
1225
|
-
},
|
1226
|
-
"backup_configuration": {
|
1227
|
-
"enabled": True,
|
1228
|
-
"binary_log_enabled": True,
|
1229
|
-
},
|
1230
|
-
"availability_type": "REGIONAL",
|
1231
|
-
})
|
1232
|
-
```
|
1233
|
-
|
1234
1174
|
## Switchover (SQL Server Only)
|
1235
1175
|
|
1236
1176
|
Users can perform a switchover on any direct `cascadable` replica by following the steps below.
|
pulumi_gcp/sql/outputs.py
CHANGED
@@ -33,7 +33,6 @@ __all__ = [
|
|
33
33
|
'DatabaseInstanceSettingsIpConfiguration',
|
34
34
|
'DatabaseInstanceSettingsIpConfigurationAuthorizedNetwork',
|
35
35
|
'DatabaseInstanceSettingsIpConfigurationPscConfig',
|
36
|
-
'DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnection',
|
37
36
|
'DatabaseInstanceSettingsLocationPreference',
|
38
37
|
'DatabaseInstanceSettingsMaintenanceWindow',
|
39
38
|
'DatabaseInstanceSettingsPasswordValidationPolicy',
|
@@ -59,7 +58,6 @@ __all__ = [
|
|
59
58
|
'GetDatabaseInstanceSettingIpConfigurationResult',
|
60
59
|
'GetDatabaseInstanceSettingIpConfigurationAuthorizedNetworkResult',
|
61
60
|
'GetDatabaseInstanceSettingIpConfigurationPscConfigResult',
|
62
|
-
'GetDatabaseInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult',
|
63
61
|
'GetDatabaseInstanceSettingLocationPreferenceResult',
|
64
62
|
'GetDatabaseInstanceSettingMaintenanceWindowResult',
|
65
63
|
'GetDatabaseInstanceSettingPasswordValidationPolicyResult',
|
@@ -82,7 +80,6 @@ __all__ = [
|
|
82
80
|
'GetDatabaseInstancesInstanceSettingIpConfigurationResult',
|
83
81
|
'GetDatabaseInstancesInstanceSettingIpConfigurationAuthorizedNetworkResult',
|
84
82
|
'GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigResult',
|
85
|
-
'GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult',
|
86
83
|
'GetDatabaseInstancesInstanceSettingLocationPreferenceResult',
|
87
84
|
'GetDatabaseInstancesInstanceSettingMaintenanceWindowResult',
|
88
85
|
'GetDatabaseInstancesInstanceSettingPasswordValidationPolicyResult',
|
@@ -1675,8 +1672,6 @@ class DatabaseInstanceSettingsIpConfigurationPscConfig(dict):
|
|
1675
1672
|
suggest = None
|
1676
1673
|
if key == "allowedConsumerProjects":
|
1677
1674
|
suggest = "allowed_consumer_projects"
|
1678
|
-
elif key == "pscAutoConnections":
|
1679
|
-
suggest = "psc_auto_connections"
|
1680
1675
|
elif key == "pscEnabled":
|
1681
1676
|
suggest = "psc_enabled"
|
1682
1677
|
|
@@ -1693,17 +1688,13 @@ class DatabaseInstanceSettingsIpConfigurationPscConfig(dict):
|
|
1693
1688
|
|
1694
1689
|
def __init__(__self__, *,
|
1695
1690
|
allowed_consumer_projects: Optional[Sequence[str]] = None,
|
1696
|
-
psc_auto_connections: Optional[Sequence['outputs.DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnection']] = None,
|
1697
1691
|
psc_enabled: Optional[bool] = None):
|
1698
1692
|
"""
|
1699
1693
|
:param Sequence[str] allowed_consumer_projects: List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
1700
|
-
:param Sequence['DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnectionArgs'] psc_auto_connections: A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
1701
1694
|
:param bool psc_enabled: Whether PSC connectivity is enabled for this instance.
|
1702
1695
|
"""
|
1703
1696
|
if allowed_consumer_projects is not None:
|
1704
1697
|
pulumi.set(__self__, "allowed_consumer_projects", allowed_consumer_projects)
|
1705
|
-
if psc_auto_connections is not None:
|
1706
|
-
pulumi.set(__self__, "psc_auto_connections", psc_auto_connections)
|
1707
1698
|
if psc_enabled is not None:
|
1708
1699
|
pulumi.set(__self__, "psc_enabled", psc_enabled)
|
1709
1700
|
|
@@ -1715,14 +1706,6 @@ class DatabaseInstanceSettingsIpConfigurationPscConfig(dict):
|
|
1715
1706
|
"""
|
1716
1707
|
return pulumi.get(self, "allowed_consumer_projects")
|
1717
1708
|
|
1718
|
-
@property
|
1719
|
-
@pulumi.getter(name="pscAutoConnections")
|
1720
|
-
def psc_auto_connections(self) -> Optional[Sequence['outputs.DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnection']]:
|
1721
|
-
"""
|
1722
|
-
A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
1723
|
-
"""
|
1724
|
-
return pulumi.get(self, "psc_auto_connections")
|
1725
|
-
|
1726
1709
|
@property
|
1727
1710
|
@pulumi.getter(name="pscEnabled")
|
1728
1711
|
def psc_enabled(self) -> Optional[bool]:
|
@@ -1732,55 +1715,6 @@ class DatabaseInstanceSettingsIpConfigurationPscConfig(dict):
|
|
1732
1715
|
return pulumi.get(self, "psc_enabled")
|
1733
1716
|
|
1734
1717
|
|
1735
|
-
@pulumi.output_type
|
1736
|
-
class DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnection(dict):
|
1737
|
-
@staticmethod
|
1738
|
-
def __key_warning(key: str):
|
1739
|
-
suggest = None
|
1740
|
-
if key == "consumerNetwork":
|
1741
|
-
suggest = "consumer_network"
|
1742
|
-
elif key == "consumerServiceProjectId":
|
1743
|
-
suggest = "consumer_service_project_id"
|
1744
|
-
|
1745
|
-
if suggest:
|
1746
|
-
pulumi.log.warn(f"Key '{key}' not found in DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnection. Access the value via the '{suggest}' property getter instead.")
|
1747
|
-
|
1748
|
-
def __getitem__(self, key: str) -> Any:
|
1749
|
-
DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnection.__key_warning(key)
|
1750
|
-
return super().__getitem__(key)
|
1751
|
-
|
1752
|
-
def get(self, key: str, default = None) -> Any:
|
1753
|
-
DatabaseInstanceSettingsIpConfigurationPscConfigPscAutoConnection.__key_warning(key)
|
1754
|
-
return super().get(key, default)
|
1755
|
-
|
1756
|
-
def __init__(__self__, *,
|
1757
|
-
consumer_network: str,
|
1758
|
-
consumer_service_project_id: Optional[str] = None):
|
1759
|
-
"""
|
1760
|
-
:param str consumer_network: "The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project."
|
1761
|
-
:param str consumer_service_project_id: The project ID of consumer service project of this consumer endpoint.
|
1762
|
-
"""
|
1763
|
-
pulumi.set(__self__, "consumer_network", consumer_network)
|
1764
|
-
if consumer_service_project_id is not None:
|
1765
|
-
pulumi.set(__self__, "consumer_service_project_id", consumer_service_project_id)
|
1766
|
-
|
1767
|
-
@property
|
1768
|
-
@pulumi.getter(name="consumerNetwork")
|
1769
|
-
def consumer_network(self) -> str:
|
1770
|
-
"""
|
1771
|
-
"The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project."
|
1772
|
-
"""
|
1773
|
-
return pulumi.get(self, "consumer_network")
|
1774
|
-
|
1775
|
-
@property
|
1776
|
-
@pulumi.getter(name="consumerServiceProjectId")
|
1777
|
-
def consumer_service_project_id(self) -> Optional[str]:
|
1778
|
-
"""
|
1779
|
-
The project ID of consumer service project of this consumer endpoint.
|
1780
|
-
"""
|
1781
|
-
return pulumi.get(self, "consumer_service_project_id")
|
1782
|
-
|
1783
|
-
|
1784
1718
|
@pulumi.output_type
|
1785
1719
|
class DatabaseInstanceSettingsLocationPreference(dict):
|
1786
1720
|
@staticmethod
|
@@ -3366,15 +3300,12 @@ class GetDatabaseInstanceSettingIpConfigurationAuthorizedNetworkResult(dict):
|
|
3366
3300
|
class GetDatabaseInstanceSettingIpConfigurationPscConfigResult(dict):
|
3367
3301
|
def __init__(__self__, *,
|
3368
3302
|
allowed_consumer_projects: Sequence[str],
|
3369
|
-
psc_auto_connections: Sequence['outputs.GetDatabaseInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult'],
|
3370
3303
|
psc_enabled: bool):
|
3371
3304
|
"""
|
3372
3305
|
:param Sequence[str] allowed_consumer_projects: List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
3373
|
-
:param Sequence['GetDatabaseInstanceSettingIpConfigurationPscConfigPscAutoConnectionArgs'] psc_auto_connections: A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
3374
3306
|
:param bool psc_enabled: Whether PSC connectivity is enabled for this instance.
|
3375
3307
|
"""
|
3376
3308
|
pulumi.set(__self__, "allowed_consumer_projects", allowed_consumer_projects)
|
3377
|
-
pulumi.set(__self__, "psc_auto_connections", psc_auto_connections)
|
3378
3309
|
pulumi.set(__self__, "psc_enabled", psc_enabled)
|
3379
3310
|
|
3380
3311
|
@property
|
@@ -3385,14 +3316,6 @@ class GetDatabaseInstanceSettingIpConfigurationPscConfigResult(dict):
|
|
3385
3316
|
"""
|
3386
3317
|
return pulumi.get(self, "allowed_consumer_projects")
|
3387
3318
|
|
3388
|
-
@property
|
3389
|
-
@pulumi.getter(name="pscAutoConnections")
|
3390
|
-
def psc_auto_connections(self) -> Sequence['outputs.GetDatabaseInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult']:
|
3391
|
-
"""
|
3392
|
-
A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
3393
|
-
"""
|
3394
|
-
return pulumi.get(self, "psc_auto_connections")
|
3395
|
-
|
3396
3319
|
@property
|
3397
3320
|
@pulumi.getter(name="pscEnabled")
|
3398
3321
|
def psc_enabled(self) -> bool:
|
@@ -3402,35 +3325,6 @@ class GetDatabaseInstanceSettingIpConfigurationPscConfigResult(dict):
|
|
3402
3325
|
return pulumi.get(self, "psc_enabled")
|
3403
3326
|
|
3404
3327
|
|
3405
|
-
@pulumi.output_type
|
3406
|
-
class GetDatabaseInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult(dict):
|
3407
|
-
def __init__(__self__, *,
|
3408
|
-
consumer_network: str,
|
3409
|
-
consumer_service_project_id: str):
|
3410
|
-
"""
|
3411
|
-
:param str consumer_network: The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
|
3412
|
-
:param str consumer_service_project_id: The project ID of consumer service project of this consumer endpoint.
|
3413
|
-
"""
|
3414
|
-
pulumi.set(__self__, "consumer_network", consumer_network)
|
3415
|
-
pulumi.set(__self__, "consumer_service_project_id", consumer_service_project_id)
|
3416
|
-
|
3417
|
-
@property
|
3418
|
-
@pulumi.getter(name="consumerNetwork")
|
3419
|
-
def consumer_network(self) -> str:
|
3420
|
-
"""
|
3421
|
-
The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
|
3422
|
-
"""
|
3423
|
-
return pulumi.get(self, "consumer_network")
|
3424
|
-
|
3425
|
-
@property
|
3426
|
-
@pulumi.getter(name="consumerServiceProjectId")
|
3427
|
-
def consumer_service_project_id(self) -> str:
|
3428
|
-
"""
|
3429
|
-
The project ID of consumer service project of this consumer endpoint.
|
3430
|
-
"""
|
3431
|
-
return pulumi.get(self, "consumer_service_project_id")
|
3432
|
-
|
3433
|
-
|
3434
3328
|
@pulumi.output_type
|
3435
3329
|
class GetDatabaseInstanceSettingLocationPreferenceResult(dict):
|
3436
3330
|
def __init__(__self__, *,
|
@@ -4925,15 +4819,12 @@ class GetDatabaseInstancesInstanceSettingIpConfigurationAuthorizedNetworkResult(
|
|
4925
4819
|
class GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigResult(dict):
|
4926
4820
|
def __init__(__self__, *,
|
4927
4821
|
allowed_consumer_projects: Sequence[str],
|
4928
|
-
psc_auto_connections: Sequence['outputs.GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult'],
|
4929
4822
|
psc_enabled: bool):
|
4930
4823
|
"""
|
4931
4824
|
:param Sequence[str] allowed_consumer_projects: List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
4932
|
-
:param Sequence['GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigPscAutoConnectionArgs'] psc_auto_connections: A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
4933
4825
|
:param bool psc_enabled: Whether PSC connectivity is enabled for this instance.
|
4934
4826
|
"""
|
4935
4827
|
pulumi.set(__self__, "allowed_consumer_projects", allowed_consumer_projects)
|
4936
|
-
pulumi.set(__self__, "psc_auto_connections", psc_auto_connections)
|
4937
4828
|
pulumi.set(__self__, "psc_enabled", psc_enabled)
|
4938
4829
|
|
4939
4830
|
@property
|
@@ -4944,14 +4835,6 @@ class GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigResult(dict):
|
|
4944
4835
|
"""
|
4945
4836
|
return pulumi.get(self, "allowed_consumer_projects")
|
4946
4837
|
|
4947
|
-
@property
|
4948
|
-
@pulumi.getter(name="pscAutoConnections")
|
4949
|
-
def psc_auto_connections(self) -> Sequence['outputs.GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult']:
|
4950
|
-
"""
|
4951
|
-
A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
|
4952
|
-
"""
|
4953
|
-
return pulumi.get(self, "psc_auto_connections")
|
4954
|
-
|
4955
4838
|
@property
|
4956
4839
|
@pulumi.getter(name="pscEnabled")
|
4957
4840
|
def psc_enabled(self) -> bool:
|
@@ -4961,35 +4844,6 @@ class GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigResult(dict):
|
|
4961
4844
|
return pulumi.get(self, "psc_enabled")
|
4962
4845
|
|
4963
4846
|
|
4964
|
-
@pulumi.output_type
|
4965
|
-
class GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigPscAutoConnectionResult(dict):
|
4966
|
-
def __init__(__self__, *,
|
4967
|
-
consumer_network: str,
|
4968
|
-
consumer_service_project_id: str):
|
4969
|
-
"""
|
4970
|
-
:param str consumer_network: The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
|
4971
|
-
:param str consumer_service_project_id: The project ID of consumer service project of this consumer endpoint.
|
4972
|
-
"""
|
4973
|
-
pulumi.set(__self__, "consumer_network", consumer_network)
|
4974
|
-
pulumi.set(__self__, "consumer_service_project_id", consumer_service_project_id)
|
4975
|
-
|
4976
|
-
@property
|
4977
|
-
@pulumi.getter(name="consumerNetwork")
|
4978
|
-
def consumer_network(self) -> str:
|
4979
|
-
"""
|
4980
|
-
The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
|
4981
|
-
"""
|
4982
|
-
return pulumi.get(self, "consumer_network")
|
4983
|
-
|
4984
|
-
@property
|
4985
|
-
@pulumi.getter(name="consumerServiceProjectId")
|
4986
|
-
def consumer_service_project_id(self) -> str:
|
4987
|
-
"""
|
4988
|
-
The project ID of consumer service project of this consumer endpoint.
|
4989
|
-
"""
|
4990
|
-
return pulumi.get(self, "consumer_service_project_id")
|
4991
|
-
|
4992
|
-
|
4993
4847
|
@pulumi.output_type
|
4994
4848
|
class GetDatabaseInstancesInstanceSettingLocationPreferenceResult(dict):
|
4995
4849
|
def __init__(__self__, *,
|
pulumi_gcp/sql/user.py
CHANGED
@@ -424,7 +424,7 @@ class User(pulumi.CustomResource):
|
|
424
424
|
settings={
|
425
425
|
"tier": "db-f1-micro",
|
426
426
|
"database_flags": [{
|
427
|
-
"name": "
|
427
|
+
"name": "cloudsql_iam_authentication",
|
428
428
|
"value": "on",
|
429
429
|
}],
|
430
430
|
})
|
@@ -563,7 +563,7 @@ class User(pulumi.CustomResource):
|
|
563
563
|
settings={
|
564
564
|
"tier": "db-f1-micro",
|
565
565
|
"database_flags": [{
|
566
|
-
"name": "
|
566
|
+
"name": "cloudsql_iam_authentication",
|
567
567
|
"value": "on",
|
568
568
|
}],
|
569
569
|
})
|
@@ -187,12 +187,12 @@ class LocationTagBinding(pulumi.CustomResource):
|
|
187
187
|
short_name="keyname",
|
188
188
|
description="For keyname resources.")
|
189
189
|
value = gcp.tags.TagValue("value",
|
190
|
-
parent=key.
|
190
|
+
parent=key.name.apply(lambda name: f"tagKeys/{name}"),
|
191
191
|
short_name="valuename",
|
192
192
|
description="For valuename resources.")
|
193
193
|
binding = gcp.tags.LocationTagBinding("binding",
|
194
194
|
parent=f"//run.googleapis.com/projects/{project_google_project['number']}/locations/{default['location']}/services/{default['name']}",
|
195
|
-
tag_value=value.
|
195
|
+
tag_value=value.name.apply(lambda name: f"tagValues/{name}"),
|
196
196
|
location="us-central1")
|
197
197
|
```
|
198
198
|
|
@@ -211,12 +211,12 @@ class LocationTagBinding(pulumi.CustomResource):
|
|
211
211
|
short_name="keyname",
|
212
212
|
description="For keyname resources.")
|
213
213
|
value = gcp.tags.TagValue("value",
|
214
|
-
parent=key.
|
214
|
+
parent=key.name.apply(lambda name: f"tagKeys/{name}"),
|
215
215
|
short_name="valuename",
|
216
216
|
description="For valuename resources.")
|
217
217
|
binding = gcp.tags.LocationTagBinding("binding",
|
218
218
|
parent=project.number.apply(lambda number: f"//compute.googleapis.com/projects/{number}/zones/us-central1-a/instances/{instance['instanceId']}"),
|
219
|
-
tag_value=value.
|
219
|
+
tag_value=value.name.apply(lambda name: f"tagValues/{name}"),
|
220
220
|
location="us-central1-a")
|
221
221
|
```
|
222
222
|
|
@@ -274,12 +274,12 @@ class LocationTagBinding(pulumi.CustomResource):
|
|
274
274
|
short_name="keyname",
|
275
275
|
description="For keyname resources.")
|
276
276
|
value = gcp.tags.TagValue("value",
|
277
|
-
parent=key.
|
277
|
+
parent=key.name.apply(lambda name: f"tagKeys/{name}"),
|
278
278
|
short_name="valuename",
|
279
279
|
description="For valuename resources.")
|
280
280
|
binding = gcp.tags.LocationTagBinding("binding",
|
281
281
|
parent=f"//run.googleapis.com/projects/{project_google_project['number']}/locations/{default['location']}/services/{default['name']}",
|
282
|
-
tag_value=value.
|
282
|
+
tag_value=value.name.apply(lambda name: f"tagValues/{name}"),
|
283
283
|
location="us-central1")
|
284
284
|
```
|
285
285
|
|
@@ -298,12 +298,12 @@ class LocationTagBinding(pulumi.CustomResource):
|
|
298
298
|
short_name="keyname",
|
299
299
|
description="For keyname resources.")
|
300
300
|
value = gcp.tags.TagValue("value",
|
301
|
-
parent=key.
|
301
|
+
parent=key.name.apply(lambda name: f"tagKeys/{name}"),
|
302
302
|
short_name="valuename",
|
303
303
|
description="For valuename resources.")
|
304
304
|
binding = gcp.tags.LocationTagBinding("binding",
|
305
305
|
parent=project.number.apply(lambda number: f"//compute.googleapis.com/projects/{number}/zones/us-central1-a/instances/{instance['instanceId']}"),
|
306
|
-
tag_value=value.
|
306
|
+
tag_value=value.name.apply(lambda name: f"tagValues/{name}"),
|
307
307
|
location="us-central1-a")
|
308
308
|
```
|
309
309
|
|
pulumi_gcp/vertex/ai_endpoint.py
CHANGED
@@ -59,10 +59,11 @@ class AiEndpointArgs:
|
|
59
59
|
:param pulumi.Input[str] region: The region for the resource
|
60
60
|
:param pulumi.Input[str] traffic_split: A map from a DeployedModel's id to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.
|
61
61
|
If a DeployedModel's id is not listed in this map, then it receives no traffic.
|
62
|
-
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
62
|
+
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
63
|
+
> **Note:** The `traffic_split` setting only applies after a model has been deployed to the endpoint. Re-applying a `vertex.AiEndpoint`
|
64
|
+
resource without updating the `traffic_split` post-deployment may lead to your deployed `traffic_split` being lost; see
|
63
65
|
the `deployModel` [example](https://cloud.google.com/vertex-ai/docs/general/deployment#deploy_a_model_to_an_endpoint) and
|
64
|
-
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for
|
65
|
-
> **Note:** To set the map to empty, set `"{}"`, apply, and then remove the field from your config.
|
66
|
+
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for details.
|
66
67
|
"""
|
67
68
|
pulumi.set(__self__, "display_name", display_name)
|
68
69
|
pulumi.set(__self__, "location", location)
|
@@ -248,10 +249,11 @@ class AiEndpointArgs:
|
|
248
249
|
"""
|
249
250
|
A map from a DeployedModel's id to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.
|
250
251
|
If a DeployedModel's id is not listed in this map, then it receives no traffic.
|
251
|
-
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
252
|
+
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
253
|
+
> **Note:** The `traffic_split` setting only applies after a model has been deployed to the endpoint. Re-applying a `vertex.AiEndpoint`
|
254
|
+
resource without updating the `traffic_split` post-deployment may lead to your deployed `traffic_split` being lost; see
|
252
255
|
the `deployModel` [example](https://cloud.google.com/vertex-ai/docs/general/deployment#deploy_a_model_to_an_endpoint) and
|
253
|
-
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for
|
254
|
-
> **Note:** To set the map to empty, set `"{}"`, apply, and then remove the field from your config.
|
256
|
+
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for details.
|
255
257
|
"""
|
256
258
|
return pulumi.get(self, "traffic_split")
|
257
259
|
|
@@ -319,10 +321,11 @@ class _AiEndpointState:
|
|
319
321
|
:param pulumi.Input[str] region: The region for the resource
|
320
322
|
:param pulumi.Input[str] traffic_split: A map from a DeployedModel's id to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.
|
321
323
|
If a DeployedModel's id is not listed in this map, then it receives no traffic.
|
322
|
-
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
324
|
+
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
325
|
+
> **Note:** The `traffic_split` setting only applies after a model has been deployed to the endpoint. Re-applying a `vertex.AiEndpoint`
|
326
|
+
resource without updating the `traffic_split` post-deployment may lead to your deployed `traffic_split` being lost; see
|
323
327
|
the `deployModel` [example](https://cloud.google.com/vertex-ai/docs/general/deployment#deploy_a_model_to_an_endpoint) and
|
324
|
-
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for
|
325
|
-
> **Note:** To set the map to empty, set `"{}"`, apply, and then remove the field from your config.
|
328
|
+
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for details.
|
326
329
|
:param pulumi.Input[str] update_time: Output only. Timestamp when this Endpoint was last updated.
|
327
330
|
"""
|
328
331
|
if create_time is not None:
|
@@ -614,10 +617,11 @@ class _AiEndpointState:
|
|
614
617
|
"""
|
615
618
|
A map from a DeployedModel's id to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.
|
616
619
|
If a DeployedModel's id is not listed in this map, then it receives no traffic.
|
617
|
-
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
620
|
+
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
621
|
+
> **Note:** The `traffic_split` setting only applies after a model has been deployed to the endpoint. Re-applying a `vertex.AiEndpoint`
|
622
|
+
resource without updating the `traffic_split` post-deployment may lead to your deployed `traffic_split` being lost; see
|
618
623
|
the `deployModel` [example](https://cloud.google.com/vertex-ai/docs/general/deployment#deploy_a_model_to_an_endpoint) and
|
619
|
-
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for
|
620
|
-
> **Note:** To set the map to empty, set `"{}"`, apply, and then remove the field from your config.
|
624
|
+
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for details.
|
621
625
|
"""
|
622
626
|
return pulumi.get(self, "traffic_split")
|
623
627
|
|
@@ -812,10 +816,11 @@ class AiEndpoint(pulumi.CustomResource):
|
|
812
816
|
:param pulumi.Input[str] region: The region for the resource
|
813
817
|
:param pulumi.Input[str] traffic_split: A map from a DeployedModel's id to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.
|
814
818
|
If a DeployedModel's id is not listed in this map, then it receives no traffic.
|
815
|
-
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
819
|
+
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
820
|
+
> **Note:** The `traffic_split` setting only applies after a model has been deployed to the endpoint. Re-applying a `vertex.AiEndpoint`
|
821
|
+
resource without updating the `traffic_split` post-deployment may lead to your deployed `traffic_split` being lost; see
|
816
822
|
the `deployModel` [example](https://cloud.google.com/vertex-ai/docs/general/deployment#deploy_a_model_to_an_endpoint) and
|
817
|
-
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for
|
818
|
-
> **Note:** To set the map to empty, set `"{}"`, apply, and then remove the field from your config.
|
823
|
+
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for details.
|
819
824
|
"""
|
820
825
|
...
|
821
826
|
@overload
|
@@ -1088,10 +1093,11 @@ class AiEndpoint(pulumi.CustomResource):
|
|
1088
1093
|
:param pulumi.Input[str] region: The region for the resource
|
1089
1094
|
:param pulumi.Input[str] traffic_split: A map from a DeployedModel's id to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.
|
1090
1095
|
If a DeployedModel's id is not listed in this map, then it receives no traffic.
|
1091
|
-
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
1096
|
+
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
1097
|
+
> **Note:** The `traffic_split` setting only applies after a model has been deployed to the endpoint. Re-applying a `vertex.AiEndpoint`
|
1098
|
+
resource without updating the `traffic_split` post-deployment may lead to your deployed `traffic_split` being lost; see
|
1092
1099
|
the `deployModel` [example](https://cloud.google.com/vertex-ai/docs/general/deployment#deploy_a_model_to_an_endpoint) and
|
1093
|
-
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for
|
1094
|
-
> **Note:** To set the map to empty, set `"{}"`, apply, and then remove the field from your config.
|
1100
|
+
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for details.
|
1095
1101
|
:param pulumi.Input[str] update_time: Output only. Timestamp when this Endpoint was last updated.
|
1096
1102
|
"""
|
1097
1103
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -1287,14 +1293,15 @@ class AiEndpoint(pulumi.CustomResource):
|
|
1287
1293
|
|
1288
1294
|
@property
|
1289
1295
|
@pulumi.getter(name="trafficSplit")
|
1290
|
-
def traffic_split(self) -> pulumi.Output[str]:
|
1296
|
+
def traffic_split(self) -> pulumi.Output[Optional[str]]:
|
1291
1297
|
"""
|
1292
1298
|
A map from a DeployedModel's id to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.
|
1293
1299
|
If a DeployedModel's id is not listed in this map, then it receives no traffic.
|
1294
|
-
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
1300
|
+
The traffic percentage values must add up to 100, or map must be empty if the Endpoint is to not accept any traffic at a moment.
|
1301
|
+
> **Note:** The `traffic_split` setting only applies after a model has been deployed to the endpoint. Re-applying a `vertex.AiEndpoint`
|
1302
|
+
resource without updating the `traffic_split` post-deployment may lead to your deployed `traffic_split` being lost; see
|
1295
1303
|
the `deployModel` [example](https://cloud.google.com/vertex-ai/docs/general/deployment#deploy_a_model_to_an_endpoint) and
|
1296
|
-
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for
|
1297
|
-
> **Note:** To set the map to empty, set `"{}"`, apply, and then remove the field from your config.
|
1304
|
+
[documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/projects.locations.endpoints/deployModel) for details.
|
1298
1305
|
"""
|
1299
1306
|
return pulumi.get(self, "traffic_split")
|
1300
1307
|
|