pulumi-gcp 7.30.0a1720075632__py3-none-any.whl → 7.30.0a1720437548__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 (56) hide show
  1. pulumi_gcp/__init__.py +32 -0
  2. pulumi_gcp/artifactregistry/get_docker_image.py +2 -2
  3. pulumi_gcp/bigtable/gc_policy.py +68 -14
  4. pulumi_gcp/cloudfunctionsv2/_inputs.py +97 -0
  5. pulumi_gcp/cloudfunctionsv2/function.py +232 -0
  6. pulumi_gcp/cloudfunctionsv2/outputs.py +129 -1
  7. pulumi_gcp/compute/_inputs.py +622 -0
  8. pulumi_gcp/compute/address.py +0 -7
  9. pulumi_gcp/compute/backend_service.py +0 -14
  10. pulumi_gcp/compute/forwarding_rule.py +0 -21
  11. pulumi_gcp/compute/global_forwarding_rule.py +0 -21
  12. pulumi_gcp/compute/managed_ssl_certificate.py +0 -7
  13. pulumi_gcp/compute/manged_ssl_certificate.py +0 -7
  14. pulumi_gcp/compute/network_attachment.py +16 -0
  15. pulumi_gcp/compute/outputs.py +504 -8
  16. pulumi_gcp/compute/region_backend_service.py +0 -14
  17. pulumi_gcp/compute/region_ssl_certificate.py +0 -7
  18. pulumi_gcp/compute/ssl_certificate.py +0 -7
  19. pulumi_gcp/compute/target_https_proxy.py +76 -1
  20. pulumi_gcp/compute/url_map.py +255 -0
  21. pulumi_gcp/container/aws_cluster.py +2 -2
  22. pulumi_gcp/container/aws_node_pool.py +2 -2
  23. pulumi_gcp/container/azure_client.py +2 -2
  24. pulumi_gcp/container/azure_cluster.py +2 -2
  25. pulumi_gcp/container/azure_node_pool.py +2 -2
  26. pulumi_gcp/datafusion/_inputs.py +163 -11
  27. pulumi_gcp/datafusion/instance.py +64 -0
  28. pulumi_gcp/datafusion/outputs.py +127 -7
  29. pulumi_gcp/healthcare/_inputs.py +43 -0
  30. pulumi_gcp/healthcare/dataset.py +110 -0
  31. pulumi_gcp/healthcare/outputs.py +43 -0
  32. pulumi_gcp/identityplatform/config.py +1 -1
  33. pulumi_gcp/logging/billing_account_bucket_config.py +1 -1
  34. pulumi_gcp/logging/folder_bucket_config.py +1 -1
  35. pulumi_gcp/logging/organization_bucket_config.py +1 -1
  36. pulumi_gcp/monitoring/_inputs.py +77 -0
  37. pulumi_gcp/monitoring/outputs.py +63 -0
  38. pulumi_gcp/pulumi-plugin.json +1 -1
  39. pulumi_gcp/securitycenter/instance_iam_binding.py +64 -0
  40. pulumi_gcp/securitycenter/instance_iam_member.py +64 -0
  41. pulumi_gcp/securitycenter/instance_iam_policy.py +64 -0
  42. pulumi_gcp/storage/__init__.py +5 -0
  43. pulumi_gcp/storage/_inputs.py +130 -0
  44. pulumi_gcp/storage/get_managed_folder_iam_policy.py +115 -0
  45. pulumi_gcp/storage/managed_folder.py +440 -0
  46. pulumi_gcp/storage/managed_folder_iam_binding.py +947 -0
  47. pulumi_gcp/storage/managed_folder_iam_member.py +947 -0
  48. pulumi_gcp/storage/managed_folder_iam_policy.py +766 -0
  49. pulumi_gcp/storage/outputs.py +76 -0
  50. pulumi_gcp/vertex/_inputs.py +3 -3
  51. pulumi_gcp/vertex/ai_feature_online_store.py +9 -9
  52. pulumi_gcp/vertex/outputs.py +2 -2
  53. {pulumi_gcp-7.30.0a1720075632.dist-info → pulumi_gcp-7.30.0a1720437548.dist-info}/METADATA +1 -1
  54. {pulumi_gcp-7.30.0a1720075632.dist-info → pulumi_gcp-7.30.0a1720437548.dist-info}/RECORD +56 -51
  55. {pulumi_gcp-7.30.0a1720075632.dist-info → pulumi_gcp-7.30.0a1720437548.dist-info}/WHEEL +0 -0
  56. {pulumi_gcp-7.30.0a1720075632.dist-info → pulumi_gcp-7.30.0a1720437548.dist-info}/top_level.txt +0 -0
@@ -1122,6 +1122,122 @@ class Function(pulumi.CustomResource):
1122
1122
  },
1123
1123
  opts = pulumi.ResourceOptions(depends_on=[gcf_cmek_keyuser]))
1124
1124
  ```
1125
+ ### Cloudfunctions2 Abiu
1126
+
1127
+ ```python
1128
+ import pulumi
1129
+ import pulumi_gcp as gcp
1130
+
1131
+ project = "my-project-name"
1132
+ account = gcp.serviceaccount.Account("account",
1133
+ account_id="gcf-sa",
1134
+ display_name="Test Service Account")
1135
+ topic = gcp.pubsub.Topic("topic", name="functions2-topic")
1136
+ bucket = gcp.storage.Bucket("bucket",
1137
+ name=f"{project}-gcf-source",
1138
+ location="US",
1139
+ uniform_bucket_level_access=True)
1140
+ object = gcp.storage.BucketObject("object",
1141
+ name="function-source.zip",
1142
+ bucket=bucket.name,
1143
+ source=pulumi.FileAsset("function-source.zip"))
1144
+ function = gcp.cloudfunctionsv2.Function("function",
1145
+ name="gcf-function",
1146
+ location="europe-west6",
1147
+ description="a new function",
1148
+ build_config={
1149
+ "runtime": "nodejs16",
1150
+ "entryPoint": "helloPubSub",
1151
+ "environmentVariables": {
1152
+ "BUILD_CONFIG_TEST": "build_test",
1153
+ },
1154
+ "source": {
1155
+ "storageSource": {
1156
+ "bucket": bucket.name,
1157
+ "object": object.name,
1158
+ },
1159
+ },
1160
+ "automaticUpdatePolicy": {},
1161
+ },
1162
+ service_config={
1163
+ "maxInstanceCount": 3,
1164
+ "minInstanceCount": 1,
1165
+ "availableMemory": "4Gi",
1166
+ "timeoutSeconds": 60,
1167
+ "maxInstanceRequestConcurrency": 80,
1168
+ "availableCpu": "4",
1169
+ "environmentVariables": {
1170
+ "SERVICE_CONFIG_TEST": "config_test",
1171
+ },
1172
+ "ingressSettings": "ALLOW_INTERNAL_ONLY",
1173
+ "allTrafficOnLatestRevision": True,
1174
+ "serviceAccountEmail": account.email,
1175
+ },
1176
+ event_trigger={
1177
+ "triggerRegion": "us-central1",
1178
+ "eventType": "google.cloud.pubsub.topic.v1.messagePublished",
1179
+ "pubsubTopic": topic.id,
1180
+ "retryPolicy": "RETRY_POLICY_RETRY",
1181
+ })
1182
+ ```
1183
+ ### Cloudfunctions2 Abiu On Deploy
1184
+
1185
+ ```python
1186
+ import pulumi
1187
+ import pulumi_gcp as gcp
1188
+
1189
+ project = "my-project-name"
1190
+ account = gcp.serviceaccount.Account("account",
1191
+ account_id="gcf-sa",
1192
+ display_name="Test Service Account")
1193
+ topic = gcp.pubsub.Topic("topic", name="functions2-topic")
1194
+ bucket = gcp.storage.Bucket("bucket",
1195
+ name=f"{project}-gcf-source",
1196
+ location="US",
1197
+ uniform_bucket_level_access=True)
1198
+ object = gcp.storage.BucketObject("object",
1199
+ name="function-source.zip",
1200
+ bucket=bucket.name,
1201
+ source=pulumi.FileAsset("function-source.zip"))
1202
+ function = gcp.cloudfunctionsv2.Function("function",
1203
+ name="gcf-function",
1204
+ location="europe-west6",
1205
+ description="a new function",
1206
+ build_config={
1207
+ "runtime": "nodejs16",
1208
+ "entryPoint": "helloPubSub",
1209
+ "environmentVariables": {
1210
+ "BUILD_CONFIG_TEST": "build_test",
1211
+ },
1212
+ "source": {
1213
+ "storageSource": {
1214
+ "bucket": bucket.name,
1215
+ "object": object.name,
1216
+ },
1217
+ },
1218
+ "onDeployUpdatePolicy": {},
1219
+ },
1220
+ service_config={
1221
+ "maxInstanceCount": 3,
1222
+ "minInstanceCount": 1,
1223
+ "availableMemory": "4Gi",
1224
+ "timeoutSeconds": 60,
1225
+ "maxInstanceRequestConcurrency": 80,
1226
+ "availableCpu": "4",
1227
+ "environmentVariables": {
1228
+ "SERVICE_CONFIG_TEST": "config_test",
1229
+ },
1230
+ "ingressSettings": "ALLOW_INTERNAL_ONLY",
1231
+ "allTrafficOnLatestRevision": True,
1232
+ "serviceAccountEmail": account.email,
1233
+ },
1234
+ event_trigger={
1235
+ "triggerRegion": "us-central1",
1236
+ "eventType": "google.cloud.pubsub.topic.v1.messagePublished",
1237
+ "pubsubTopic": topic.id,
1238
+ "retryPolicy": "RETRY_POLICY_RETRY",
1239
+ })
1240
+ ```
1125
1241
 
1126
1242
  ## Import
1127
1243
 
@@ -1811,6 +1927,122 @@ class Function(pulumi.CustomResource):
1811
1927
  },
1812
1928
  opts = pulumi.ResourceOptions(depends_on=[gcf_cmek_keyuser]))
1813
1929
  ```
1930
+ ### Cloudfunctions2 Abiu
1931
+
1932
+ ```python
1933
+ import pulumi
1934
+ import pulumi_gcp as gcp
1935
+
1936
+ project = "my-project-name"
1937
+ account = gcp.serviceaccount.Account("account",
1938
+ account_id="gcf-sa",
1939
+ display_name="Test Service Account")
1940
+ topic = gcp.pubsub.Topic("topic", name="functions2-topic")
1941
+ bucket = gcp.storage.Bucket("bucket",
1942
+ name=f"{project}-gcf-source",
1943
+ location="US",
1944
+ uniform_bucket_level_access=True)
1945
+ object = gcp.storage.BucketObject("object",
1946
+ name="function-source.zip",
1947
+ bucket=bucket.name,
1948
+ source=pulumi.FileAsset("function-source.zip"))
1949
+ function = gcp.cloudfunctionsv2.Function("function",
1950
+ name="gcf-function",
1951
+ location="europe-west6",
1952
+ description="a new function",
1953
+ build_config={
1954
+ "runtime": "nodejs16",
1955
+ "entryPoint": "helloPubSub",
1956
+ "environmentVariables": {
1957
+ "BUILD_CONFIG_TEST": "build_test",
1958
+ },
1959
+ "source": {
1960
+ "storageSource": {
1961
+ "bucket": bucket.name,
1962
+ "object": object.name,
1963
+ },
1964
+ },
1965
+ "automaticUpdatePolicy": {},
1966
+ },
1967
+ service_config={
1968
+ "maxInstanceCount": 3,
1969
+ "minInstanceCount": 1,
1970
+ "availableMemory": "4Gi",
1971
+ "timeoutSeconds": 60,
1972
+ "maxInstanceRequestConcurrency": 80,
1973
+ "availableCpu": "4",
1974
+ "environmentVariables": {
1975
+ "SERVICE_CONFIG_TEST": "config_test",
1976
+ },
1977
+ "ingressSettings": "ALLOW_INTERNAL_ONLY",
1978
+ "allTrafficOnLatestRevision": True,
1979
+ "serviceAccountEmail": account.email,
1980
+ },
1981
+ event_trigger={
1982
+ "triggerRegion": "us-central1",
1983
+ "eventType": "google.cloud.pubsub.topic.v1.messagePublished",
1984
+ "pubsubTopic": topic.id,
1985
+ "retryPolicy": "RETRY_POLICY_RETRY",
1986
+ })
1987
+ ```
1988
+ ### Cloudfunctions2 Abiu On Deploy
1989
+
1990
+ ```python
1991
+ import pulumi
1992
+ import pulumi_gcp as gcp
1993
+
1994
+ project = "my-project-name"
1995
+ account = gcp.serviceaccount.Account("account",
1996
+ account_id="gcf-sa",
1997
+ display_name="Test Service Account")
1998
+ topic = gcp.pubsub.Topic("topic", name="functions2-topic")
1999
+ bucket = gcp.storage.Bucket("bucket",
2000
+ name=f"{project}-gcf-source",
2001
+ location="US",
2002
+ uniform_bucket_level_access=True)
2003
+ object = gcp.storage.BucketObject("object",
2004
+ name="function-source.zip",
2005
+ bucket=bucket.name,
2006
+ source=pulumi.FileAsset("function-source.zip"))
2007
+ function = gcp.cloudfunctionsv2.Function("function",
2008
+ name="gcf-function",
2009
+ location="europe-west6",
2010
+ description="a new function",
2011
+ build_config={
2012
+ "runtime": "nodejs16",
2013
+ "entryPoint": "helloPubSub",
2014
+ "environmentVariables": {
2015
+ "BUILD_CONFIG_TEST": "build_test",
2016
+ },
2017
+ "source": {
2018
+ "storageSource": {
2019
+ "bucket": bucket.name,
2020
+ "object": object.name,
2021
+ },
2022
+ },
2023
+ "onDeployUpdatePolicy": {},
2024
+ },
2025
+ service_config={
2026
+ "maxInstanceCount": 3,
2027
+ "minInstanceCount": 1,
2028
+ "availableMemory": "4Gi",
2029
+ "timeoutSeconds": 60,
2030
+ "maxInstanceRequestConcurrency": 80,
2031
+ "availableCpu": "4",
2032
+ "environmentVariables": {
2033
+ "SERVICE_CONFIG_TEST": "config_test",
2034
+ },
2035
+ "ingressSettings": "ALLOW_INTERNAL_ONLY",
2036
+ "allTrafficOnLatestRevision": True,
2037
+ "serviceAccountEmail": account.email,
2038
+ },
2039
+ event_trigger={
2040
+ "triggerRegion": "us-central1",
2041
+ "eventType": "google.cloud.pubsub.topic.v1.messagePublished",
2042
+ "pubsubTopic": topic.id,
2043
+ "retryPolicy": "RETRY_POLICY_RETRY",
2044
+ })
2045
+ ```
1814
2046
 
1815
2047
  ## Import
1816
2048
 
@@ -17,6 +17,8 @@ from . import outputs
17
17
 
18
18
  __all__ = [
19
19
  'FunctionBuildConfig',
20
+ 'FunctionBuildConfigAutomaticUpdatePolicy',
21
+ 'FunctionBuildConfigOnDeployUpdatePolicy',
20
22
  'FunctionBuildConfigSource',
21
23
  'FunctionBuildConfigSourceRepoSource',
22
24
  'FunctionBuildConfigSourceStorageSource',
@@ -29,6 +31,8 @@ __all__ = [
29
31
  'FunctionServiceConfigSecretVolume',
30
32
  'FunctionServiceConfigSecretVolumeVersion',
31
33
  'GetFunctionBuildConfigResult',
34
+ 'GetFunctionBuildConfigAutomaticUpdatePolicyResult',
35
+ 'GetFunctionBuildConfigOnDeployUpdatePolicyResult',
32
36
  'GetFunctionBuildConfigSourceResult',
33
37
  'GetFunctionBuildConfigSourceRepoSourceResult',
34
38
  'GetFunctionBuildConfigSourceStorageSourceResult',
@@ -45,12 +49,16 @@ class FunctionBuildConfig(dict):
45
49
  @staticmethod
46
50
  def __key_warning(key: str):
47
51
  suggest = None
48
- if key == "dockerRepository":
52
+ if key == "automaticUpdatePolicy":
53
+ suggest = "automatic_update_policy"
54
+ elif key == "dockerRepository":
49
55
  suggest = "docker_repository"
50
56
  elif key == "entryPoint":
51
57
  suggest = "entry_point"
52
58
  elif key == "environmentVariables":
53
59
  suggest = "environment_variables"
60
+ elif key == "onDeployUpdatePolicy":
61
+ suggest = "on_deploy_update_policy"
54
62
  elif key == "serviceAccount":
55
63
  suggest = "service_account"
56
64
  elif key == "workerPool":
@@ -68,15 +76,19 @@ class FunctionBuildConfig(dict):
68
76
  return super().get(key, default)
69
77
 
70
78
  def __init__(__self__, *,
79
+ automatic_update_policy: Optional['outputs.FunctionBuildConfigAutomaticUpdatePolicy'] = None,
71
80
  build: Optional[str] = None,
72
81
  docker_repository: Optional[str] = None,
73
82
  entry_point: Optional[str] = None,
74
83
  environment_variables: Optional[Mapping[str, str]] = None,
84
+ on_deploy_update_policy: Optional['outputs.FunctionBuildConfigOnDeployUpdatePolicy'] = None,
75
85
  runtime: Optional[str] = None,
76
86
  service_account: Optional[str] = None,
77
87
  source: Optional['outputs.FunctionBuildConfigSource'] = None,
78
88
  worker_pool: Optional[str] = None):
79
89
  """
90
+ :param 'FunctionBuildConfigAutomaticUpdatePolicyArgs' automatic_update_policy: Security patches are applied automatically to the runtime without requiring
91
+ the function to be redeployed.
80
92
  :param str build: (Output)
81
93
  The Cloud Build name of the latest successful
82
94
  deployment of the function.
@@ -87,6 +99,8 @@ class FunctionBuildConfig(dict):
87
99
  will try to use function named "function". For Node.js this is name of a
88
100
  function exported by the module specified in source_location.
89
101
  :param Mapping[str, str] environment_variables: User-provided build-time environment variables for the function.
102
+ :param 'FunctionBuildConfigOnDeployUpdatePolicyArgs' on_deploy_update_policy: Security patches are only applied when a function is redeployed.
103
+ Structure is documented below.
90
104
  :param str runtime: The runtime in which to run the function. Required when deploying a new
91
105
  function, optional when updating an existing function.
92
106
  :param str service_account: The fully-qualified name of the service account to be used for building the container.
@@ -94,6 +108,8 @@ class FunctionBuildConfig(dict):
94
108
  Structure is documented below.
95
109
  :param str worker_pool: Name of the Cloud Build Custom Worker Pool that should be used to build the function.
96
110
  """
111
+ if automatic_update_policy is not None:
112
+ pulumi.set(__self__, "automatic_update_policy", automatic_update_policy)
97
113
  if build is not None:
98
114
  pulumi.set(__self__, "build", build)
99
115
  if docker_repository is not None:
@@ -102,6 +118,8 @@ class FunctionBuildConfig(dict):
102
118
  pulumi.set(__self__, "entry_point", entry_point)
103
119
  if environment_variables is not None:
104
120
  pulumi.set(__self__, "environment_variables", environment_variables)
121
+ if on_deploy_update_policy is not None:
122
+ pulumi.set(__self__, "on_deploy_update_policy", on_deploy_update_policy)
105
123
  if runtime is not None:
106
124
  pulumi.set(__self__, "runtime", runtime)
107
125
  if service_account is not None:
@@ -111,6 +129,15 @@ class FunctionBuildConfig(dict):
111
129
  if worker_pool is not None:
112
130
  pulumi.set(__self__, "worker_pool", worker_pool)
113
131
 
132
+ @property
133
+ @pulumi.getter(name="automaticUpdatePolicy")
134
+ def automatic_update_policy(self) -> Optional['outputs.FunctionBuildConfigAutomaticUpdatePolicy']:
135
+ """
136
+ Security patches are applied automatically to the runtime without requiring
137
+ the function to be redeployed.
138
+ """
139
+ return pulumi.get(self, "automatic_update_policy")
140
+
114
141
  @property
115
142
  @pulumi.getter
116
143
  def build(self) -> Optional[str]:
@@ -149,6 +176,15 @@ class FunctionBuildConfig(dict):
149
176
  """
150
177
  return pulumi.get(self, "environment_variables")
151
178
 
179
+ @property
180
+ @pulumi.getter(name="onDeployUpdatePolicy")
181
+ def on_deploy_update_policy(self) -> Optional['outputs.FunctionBuildConfigOnDeployUpdatePolicy']:
182
+ """
183
+ Security patches are only applied when a function is redeployed.
184
+ Structure is documented below.
185
+ """
186
+ return pulumi.get(self, "on_deploy_update_policy")
187
+
152
188
  @property
153
189
  @pulumi.getter
154
190
  def runtime(self) -> Optional[str]:
@@ -184,6 +220,50 @@ class FunctionBuildConfig(dict):
184
220
  return pulumi.get(self, "worker_pool")
185
221
 
186
222
 
223
+ @pulumi.output_type
224
+ class FunctionBuildConfigAutomaticUpdatePolicy(dict):
225
+ def __init__(__self__):
226
+ pass
227
+
228
+
229
+ @pulumi.output_type
230
+ class FunctionBuildConfigOnDeployUpdatePolicy(dict):
231
+ @staticmethod
232
+ def __key_warning(key: str):
233
+ suggest = None
234
+ if key == "runtimeVersion":
235
+ suggest = "runtime_version"
236
+
237
+ if suggest:
238
+ pulumi.log.warn(f"Key '{key}' not found in FunctionBuildConfigOnDeployUpdatePolicy. Access the value via the '{suggest}' property getter instead.")
239
+
240
+ def __getitem__(self, key: str) -> Any:
241
+ FunctionBuildConfigOnDeployUpdatePolicy.__key_warning(key)
242
+ return super().__getitem__(key)
243
+
244
+ def get(self, key: str, default = None) -> Any:
245
+ FunctionBuildConfigOnDeployUpdatePolicy.__key_warning(key)
246
+ return super().get(key, default)
247
+
248
+ def __init__(__self__, *,
249
+ runtime_version: Optional[str] = None):
250
+ """
251
+ :param str runtime_version: (Output)
252
+ The runtime version which was used during latest function deployment.
253
+ """
254
+ if runtime_version is not None:
255
+ pulumi.set(__self__, "runtime_version", runtime_version)
256
+
257
+ @property
258
+ @pulumi.getter(name="runtimeVersion")
259
+ def runtime_version(self) -> Optional[str]:
260
+ """
261
+ (Output)
262
+ The runtime version which was used during latest function deployment.
263
+ """
264
+ return pulumi.get(self, "runtime_version")
265
+
266
+
187
267
  @pulumi.output_type
188
268
  class FunctionBuildConfigSource(dict):
189
269
  @staticmethod
@@ -1107,15 +1187,19 @@ class FunctionServiceConfigSecretVolumeVersion(dict):
1107
1187
  @pulumi.output_type
1108
1188
  class GetFunctionBuildConfigResult(dict):
1109
1189
  def __init__(__self__, *,
1190
+ automatic_update_policies: Sequence['outputs.GetFunctionBuildConfigAutomaticUpdatePolicyResult'],
1110
1191
  build: str,
1111
1192
  docker_repository: str,
1112
1193
  entry_point: str,
1113
1194
  environment_variables: Mapping[str, str],
1195
+ on_deploy_update_policies: Sequence['outputs.GetFunctionBuildConfigOnDeployUpdatePolicyResult'],
1114
1196
  runtime: str,
1115
1197
  service_account: str,
1116
1198
  sources: Sequence['outputs.GetFunctionBuildConfigSourceResult'],
1117
1199
  worker_pool: str):
1118
1200
  """
1201
+ :param Sequence['GetFunctionBuildConfigAutomaticUpdatePolicyArgs'] automatic_update_policies: Security patches are applied automatically to the runtime without requiring
1202
+ the function to be redeployed.
1119
1203
  :param str build: The Cloud Build name of the latest successful
1120
1204
  deployment of the function.
1121
1205
  :param str docker_repository: User managed repository created in Artifact Registry optionally with a customer managed encryption key.
@@ -1125,21 +1209,33 @@ class GetFunctionBuildConfigResult(dict):
1125
1209
  will try to use function named "function". For Node.js this is name of a
1126
1210
  function exported by the module specified in source_location.
1127
1211
  :param Mapping[str, str] environment_variables: User-provided build-time environment variables for the function.
1212
+ :param Sequence['GetFunctionBuildConfigOnDeployUpdatePolicyArgs'] on_deploy_update_policies: Security patches are only applied when a function is redeployed.
1128
1213
  :param str runtime: The runtime in which to run the function. Required when deploying a new
1129
1214
  function, optional when updating an existing function.
1130
1215
  :param str service_account: The fully-qualified name of the service account to be used for building the container.
1131
1216
  :param Sequence['GetFunctionBuildConfigSourceArgs'] sources: The location of the function source code.
1132
1217
  :param str worker_pool: Name of the Cloud Build Custom Worker Pool that should be used to build the function.
1133
1218
  """
1219
+ pulumi.set(__self__, "automatic_update_policies", automatic_update_policies)
1134
1220
  pulumi.set(__self__, "build", build)
1135
1221
  pulumi.set(__self__, "docker_repository", docker_repository)
1136
1222
  pulumi.set(__self__, "entry_point", entry_point)
1137
1223
  pulumi.set(__self__, "environment_variables", environment_variables)
1224
+ pulumi.set(__self__, "on_deploy_update_policies", on_deploy_update_policies)
1138
1225
  pulumi.set(__self__, "runtime", runtime)
1139
1226
  pulumi.set(__self__, "service_account", service_account)
1140
1227
  pulumi.set(__self__, "sources", sources)
1141
1228
  pulumi.set(__self__, "worker_pool", worker_pool)
1142
1229
 
1230
+ @property
1231
+ @pulumi.getter(name="automaticUpdatePolicies")
1232
+ def automatic_update_policies(self) -> Sequence['outputs.GetFunctionBuildConfigAutomaticUpdatePolicyResult']:
1233
+ """
1234
+ Security patches are applied automatically to the runtime without requiring
1235
+ the function to be redeployed.
1236
+ """
1237
+ return pulumi.get(self, "automatic_update_policies")
1238
+
1143
1239
  @property
1144
1240
  @pulumi.getter
1145
1241
  def build(self) -> str:
@@ -1177,6 +1273,14 @@ class GetFunctionBuildConfigResult(dict):
1177
1273
  """
1178
1274
  return pulumi.get(self, "environment_variables")
1179
1275
 
1276
+ @property
1277
+ @pulumi.getter(name="onDeployUpdatePolicies")
1278
+ def on_deploy_update_policies(self) -> Sequence['outputs.GetFunctionBuildConfigOnDeployUpdatePolicyResult']:
1279
+ """
1280
+ Security patches are only applied when a function is redeployed.
1281
+ """
1282
+ return pulumi.get(self, "on_deploy_update_policies")
1283
+
1180
1284
  @property
1181
1285
  @pulumi.getter
1182
1286
  def runtime(self) -> str:
@@ -1211,6 +1315,30 @@ class GetFunctionBuildConfigResult(dict):
1211
1315
  return pulumi.get(self, "worker_pool")
1212
1316
 
1213
1317
 
1318
+ @pulumi.output_type
1319
+ class GetFunctionBuildConfigAutomaticUpdatePolicyResult(dict):
1320
+ def __init__(__self__):
1321
+ pass
1322
+
1323
+
1324
+ @pulumi.output_type
1325
+ class GetFunctionBuildConfigOnDeployUpdatePolicyResult(dict):
1326
+ def __init__(__self__, *,
1327
+ runtime_version: str):
1328
+ """
1329
+ :param str runtime_version: The runtime version which was used during latest function deployment.
1330
+ """
1331
+ pulumi.set(__self__, "runtime_version", runtime_version)
1332
+
1333
+ @property
1334
+ @pulumi.getter(name="runtimeVersion")
1335
+ def runtime_version(self) -> str:
1336
+ """
1337
+ The runtime version which was used during latest function deployment.
1338
+ """
1339
+ return pulumi.get(self, "runtime_version")
1340
+
1341
+
1214
1342
  @pulumi.output_type
1215
1343
  class GetFunctionBuildConfigSourceResult(dict):
1216
1344
  def __init__(__self__, *,