pulumi-gcp 7.34.0a1722421695__py3-none-any.whl → 7.35.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-gcp might be problematic. Click here for more details.

Files changed (96) hide show
  1. pulumi_gcp/__init__.py +40 -0
  2. pulumi_gcp/accesscontextmanager/_inputs.py +12 -3
  3. pulumi_gcp/accesscontextmanager/access_policy.py +18 -18
  4. pulumi_gcp/accesscontextmanager/outputs.py +8 -2
  5. pulumi_gcp/alloydb/_inputs.py +174 -0
  6. pulumi_gcp/alloydb/instance.py +54 -0
  7. pulumi_gcp/alloydb/outputs.py +133 -0
  8. pulumi_gcp/apigee/__init__.py +2 -0
  9. pulumi_gcp/apigee/environment_keyvaluemaps.py +370 -0
  10. pulumi_gcp/apigee/environment_keyvaluemaps_entries.py +440 -0
  11. pulumi_gcp/apigee/instance.py +2 -2
  12. pulumi_gcp/apigee/nat_address.py +2 -2
  13. pulumi_gcp/apigee/organization.py +4 -4
  14. pulumi_gcp/apphub/service_project_attachment.py +11 -11
  15. pulumi_gcp/bigquery/_inputs.py +36 -0
  16. pulumi_gcp/bigquery/app_profile.py +54 -0
  17. pulumi_gcp/bigquery/data_transfer_config.py +52 -0
  18. pulumi_gcp/bigquery/outputs.py +38 -0
  19. pulumi_gcp/bigquery/reservation.py +34 -4
  20. pulumi_gcp/bigquery/table.py +65 -21
  21. pulumi_gcp/bigtable/table.py +27 -26
  22. pulumi_gcp/certificateauthority/authority.py +4 -4
  23. pulumi_gcp/cloudfunctions/function.py +47 -0
  24. pulumi_gcp/cloudfunctions/get_function.py +11 -1
  25. pulumi_gcp/cloudfunctionsv2/function.py +2 -2
  26. pulumi_gcp/cloudrun/_inputs.py +24 -21
  27. pulumi_gcp/cloudrun/outputs.py +20 -24
  28. pulumi_gcp/cloudrunv2/_inputs.py +3 -0
  29. pulumi_gcp/cloudrunv2/outputs.py +4 -0
  30. pulumi_gcp/compute/__init__.py +2 -0
  31. pulumi_gcp/compute/_inputs.py +2358 -353
  32. pulumi_gcp/compute/backend_service.py +6 -0
  33. pulumi_gcp/compute/disk.py +75 -0
  34. pulumi_gcp/compute/get_disk.py +11 -1
  35. pulumi_gcp/compute/get_hc_vpn_gateway.py +11 -1
  36. pulumi_gcp/compute/get_instance_template.py +2 -2
  37. pulumi_gcp/compute/get_region_instance_template.py +2 -2
  38. pulumi_gcp/compute/get_snapshot.py +2 -2
  39. pulumi_gcp/compute/ha_vpn_gateway.py +68 -7
  40. pulumi_gcp/compute/outputs.py +1490 -31
  41. pulumi_gcp/compute/public_advertised_prefix.py +30 -2
  42. pulumi_gcp/compute/resize_request.py +782 -0
  43. pulumi_gcp/compute/router_peer.py +437 -0
  44. pulumi_gcp/compute/router_route_policy.py +616 -0
  45. pulumi_gcp/compute/service_attachment.py +7 -14
  46. pulumi_gcp/container/_inputs.py +218 -21
  47. pulumi_gcp/container/node_pool.py +0 -14
  48. pulumi_gcp/container/outputs.py +228 -14
  49. pulumi_gcp/databasemigrationservice/private_connection.py +10 -6
  50. pulumi_gcp/dataloss/_inputs.py +707 -21
  51. pulumi_gcp/dataloss/outputs.py +588 -14
  52. pulumi_gcp/datastore/data_store_index.py +24 -12
  53. pulumi_gcp/datastream/_inputs.py +83 -3
  54. pulumi_gcp/datastream/outputs.py +51 -3
  55. pulumi_gcp/datastream/stream.py +170 -0
  56. pulumi_gcp/firebase/database_instance.py +8 -8
  57. pulumi_gcp/firebase/hosting_site.py +8 -8
  58. pulumi_gcp/firebase/project.py +10 -2
  59. pulumi_gcp/firestore/index.py +10 -10
  60. pulumi_gcp/gkeonprem/_inputs.py +78 -78
  61. pulumi_gcp/gkeonprem/outputs.py +52 -52
  62. pulumi_gcp/iap/client.py +4 -4
  63. pulumi_gcp/integrationconnectors/_inputs.py +30 -30
  64. pulumi_gcp/integrationconnectors/outputs.py +20 -20
  65. pulumi_gcp/kms/key_handle.py +7 -7
  66. pulumi_gcp/migrationcenter/_inputs.py +21 -129
  67. pulumi_gcp/migrationcenter/outputs.py +14 -86
  68. pulumi_gcp/netapp/volume.py +1 -1
  69. pulumi_gcp/networkconnectivity/_inputs.py +3 -6
  70. pulumi_gcp/networkconnectivity/hub.py +129 -49
  71. pulumi_gcp/networkconnectivity/outputs.py +2 -4
  72. pulumi_gcp/networkconnectivity/spoke.py +159 -104
  73. pulumi_gcp/networksecurity/tls_inspection_policy.py +2 -2
  74. pulumi_gcp/organizations/project.py +16 -7
  75. pulumi_gcp/orgpolicy/policy.py +4 -4
  76. pulumi_gcp/projects/get_project_service.py +11 -1
  77. pulumi_gcp/projects/service.py +68 -0
  78. pulumi_gcp/projects/service_identity.py +30 -2
  79. pulumi_gcp/pubsub/subscription.py +6 -6
  80. pulumi_gcp/pulumi-plugin.json +1 -1
  81. pulumi_gcp/securesourcemanager/instance.py +528 -4
  82. pulumi_gcp/securitycenter/__init__.py +1 -0
  83. pulumi_gcp/securitycenter/v2_organization_mute_config.py +673 -0
  84. pulumi_gcp/sql/_inputs.py +35 -15
  85. pulumi_gcp/sql/database_instance.py +2 -2
  86. pulumi_gcp/sql/outputs.py +50 -14
  87. pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
  88. pulumi_gcp/vmwareengine/get_private_cloud.py +21 -1
  89. pulumi_gcp/vmwareengine/private_cloud.py +121 -2
  90. pulumi_gcp/workbench/_inputs.py +77 -0
  91. pulumi_gcp/workbench/instance.py +18 -4
  92. pulumi_gcp/workbench/outputs.py +67 -1
  93. {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/METADATA +1 -1
  94. {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/RECORD +96 -91
  95. {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/WHEEL +0 -0
  96. {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/top_level.txt +0 -0
@@ -32,11 +32,10 @@ class TableArgs:
32
32
  """
33
33
  The set of arguments for constructing a Table resource.
34
34
  :param pulumi.Input[str] instance_name: The name of the Bigtable instance.
35
- :param pulumi.Input['TableAutomatedBackupPolicyArgs'] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both
36
- Retention Period and Frequency to 0.
37
- :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
35
+ :param pulumi.Input['TableAutomatedBackupPolicyArgs'] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
38
36
 
39
37
  -----
38
+ :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
40
39
  :param pulumi.Input[Sequence[pulumi.Input['TableColumnFamilyArgs']]] column_families: A group of columns within a table which share a common configuration. This can be specified multiple times. Structure is documented below.
41
40
  :param pulumi.Input[str] deletion_protection: A field to make the table protected against data loss i.e. when set to PROTECTED, deleting the table, the column families in the table, and the instance containing the table would be prohibited. If not provided, deletion protection will be set to UNPROTECTED.
42
41
  :param pulumi.Input[str] name: The name of the table. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
@@ -78,8 +77,9 @@ class TableArgs:
78
77
  @pulumi.getter(name="automatedBackupPolicy")
79
78
  def automated_backup_policy(self) -> Optional[pulumi.Input['TableAutomatedBackupPolicyArgs']]:
80
79
  """
81
- Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both
82
- Retention Period and Frequency to 0.
80
+ Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
81
+
82
+ -----
83
83
  """
84
84
  return pulumi.get(self, "automated_backup_policy")
85
85
 
@@ -92,8 +92,6 @@ class TableArgs:
92
92
  def change_stream_retention(self) -> Optional[pulumi.Input[str]]:
93
93
  """
94
94
  Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
95
-
96
- -----
97
95
  """
98
96
  return pulumi.get(self, "change_stream_retention")
99
97
 
@@ -178,11 +176,10 @@ class _TableState:
178
176
  split_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
179
177
  """
180
178
  Input properties used for looking up and filtering Table resources.
181
- :param pulumi.Input['TableAutomatedBackupPolicyArgs'] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both
182
- Retention Period and Frequency to 0.
183
- :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
179
+ :param pulumi.Input['TableAutomatedBackupPolicyArgs'] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
184
180
 
185
181
  -----
182
+ :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
186
183
  :param pulumi.Input[Sequence[pulumi.Input['TableColumnFamilyArgs']]] column_families: A group of columns within a table which share a common configuration. This can be specified multiple times. Structure is documented below.
187
184
  :param pulumi.Input[str] deletion_protection: A field to make the table protected against data loss i.e. when set to PROTECTED, deleting the table, the column families in the table, and the instance containing the table would be prohibited. If not provided, deletion protection will be set to UNPROTECTED.
188
185
  :param pulumi.Input[str] instance_name: The name of the Bigtable instance.
@@ -214,8 +211,9 @@ class _TableState:
214
211
  @pulumi.getter(name="automatedBackupPolicy")
215
212
  def automated_backup_policy(self) -> Optional[pulumi.Input['TableAutomatedBackupPolicyArgs']]:
216
213
  """
217
- Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both
218
- Retention Period and Frequency to 0.
214
+ Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
215
+
216
+ -----
219
217
  """
220
218
  return pulumi.get(self, "automated_backup_policy")
221
219
 
@@ -228,8 +226,6 @@ class _TableState:
228
226
  def change_stream_retention(self) -> Optional[pulumi.Input[str]]:
229
227
  """
230
228
  Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
231
-
232
- -----
233
229
  """
234
230
  return pulumi.get(self, "change_stream_retention")
235
231
 
@@ -362,7 +358,11 @@ class Table(pulumi.CustomResource):
362
358
  "family": "family-second",
363
359
  },
364
360
  ],
365
- change_stream_retention="24h0m0s")
361
+ change_stream_retention="24h0m0s",
362
+ automated_backup_policy={
363
+ "retention_period": "72h0m0s",
364
+ "frequency": "24h0m0s",
365
+ })
366
366
  ```
367
367
 
368
368
  ## Import
@@ -393,11 +393,10 @@ class Table(pulumi.CustomResource):
393
393
 
394
394
  :param str resource_name: The name of the resource.
395
395
  :param pulumi.ResourceOptions opts: Options for the resource.
396
- :param pulumi.Input[Union['TableAutomatedBackupPolicyArgs', 'TableAutomatedBackupPolicyArgsDict']] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both
397
- Retention Period and Frequency to 0.
398
- :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
396
+ :param pulumi.Input[Union['TableAutomatedBackupPolicyArgs', 'TableAutomatedBackupPolicyArgsDict']] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
399
397
 
400
398
  -----
399
+ :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
401
400
  :param pulumi.Input[Sequence[pulumi.Input[Union['TableColumnFamilyArgs', 'TableColumnFamilyArgsDict']]]] column_families: A group of columns within a table which share a common configuration. This can be specified multiple times. Structure is documented below.
402
401
  :param pulumi.Input[str] deletion_protection: A field to make the table protected against data loss i.e. when set to PROTECTED, deleting the table, the column families in the table, and the instance containing the table would be prohibited. If not provided, deletion protection will be set to UNPROTECTED.
403
402
  :param pulumi.Input[str] instance_name: The name of the Bigtable instance.
@@ -449,7 +448,11 @@ class Table(pulumi.CustomResource):
449
448
  "family": "family-second",
450
449
  },
451
450
  ],
452
- change_stream_retention="24h0m0s")
451
+ change_stream_retention="24h0m0s",
452
+ automated_backup_policy={
453
+ "retention_period": "72h0m0s",
454
+ "frequency": "24h0m0s",
455
+ })
453
456
  ```
454
457
 
455
458
  ## Import
@@ -545,11 +548,10 @@ class Table(pulumi.CustomResource):
545
548
  :param str resource_name: The unique name of the resulting resource.
546
549
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
547
550
  :param pulumi.ResourceOptions opts: Options for the resource.
548
- :param pulumi.Input[Union['TableAutomatedBackupPolicyArgs', 'TableAutomatedBackupPolicyArgsDict']] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both
549
- Retention Period and Frequency to 0.
550
- :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
551
+ :param pulumi.Input[Union['TableAutomatedBackupPolicyArgs', 'TableAutomatedBackupPolicyArgsDict']] automated_backup_policy: Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
551
552
 
552
553
  -----
554
+ :param pulumi.Input[str] change_stream_retention: Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
553
555
  :param pulumi.Input[Sequence[pulumi.Input[Union['TableColumnFamilyArgs', 'TableColumnFamilyArgsDict']]]] column_families: A group of columns within a table which share a common configuration. This can be specified multiple times. Structure is documented below.
554
556
  :param pulumi.Input[str] deletion_protection: A field to make the table protected against data loss i.e. when set to PROTECTED, deleting the table, the column families in the table, and the instance containing the table would be prohibited. If not provided, deletion protection will be set to UNPROTECTED.
555
557
  :param pulumi.Input[str] instance_name: The name of the Bigtable instance.
@@ -578,8 +580,9 @@ class Table(pulumi.CustomResource):
578
580
  @pulumi.getter(name="automatedBackupPolicy")
579
581
  def automated_backup_policy(self) -> pulumi.Output[Optional['outputs.TableAutomatedBackupPolicy']]:
580
582
  """
581
- Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both
582
- Retention Period and Frequency to 0.
583
+ Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
584
+
585
+ -----
583
586
  """
584
587
  return pulumi.get(self, "automated_backup_policy")
585
588
 
@@ -588,8 +591,6 @@ class Table(pulumi.CustomResource):
588
591
  def change_stream_retention(self) -> pulumi.Output[str]:
589
592
  """
590
593
  Duration to retain change stream data for the table. Set to 0 to disable. Must be between 1 and 7 days.
591
-
592
- -----
593
594
  """
594
595
  return pulumi.get(self, "change_stream_retention")
595
596
 
@@ -932,11 +932,11 @@ class Authority(pulumi.CustomResource):
932
932
  privateca_sa_keyuser_signerverifier = gcp.kms.CryptoKeyIAMMember("privateca_sa_keyuser_signerverifier",
933
933
  crypto_key_id="projects/keys-project/locations/us-central1/keyRings/key-ring/cryptoKeys/crypto-key",
934
934
  role="roles/cloudkms.signerVerifier",
935
- member=privateca_sa.email.apply(lambda email: f"serviceAccount:{email}"))
935
+ member=privateca_sa.member)
936
936
  privateca_sa_keyuser_viewer = gcp.kms.CryptoKeyIAMMember("privateca_sa_keyuser_viewer",
937
937
  crypto_key_id="projects/keys-project/locations/us-central1/keyRings/key-ring/cryptoKeys/crypto-key",
938
938
  role="roles/viewer",
939
- member=privateca_sa.email.apply(lambda email: f"serviceAccount:{email}"))
939
+ member=privateca_sa.member)
940
940
  default = gcp.certificateauthority.Authority("default",
941
941
  pool="ca-pool",
942
942
  certificate_authority_id="my-certificate-authority",
@@ -1273,11 +1273,11 @@ class Authority(pulumi.CustomResource):
1273
1273
  privateca_sa_keyuser_signerverifier = gcp.kms.CryptoKeyIAMMember("privateca_sa_keyuser_signerverifier",
1274
1274
  crypto_key_id="projects/keys-project/locations/us-central1/keyRings/key-ring/cryptoKeys/crypto-key",
1275
1275
  role="roles/cloudkms.signerVerifier",
1276
- member=privateca_sa.email.apply(lambda email: f"serviceAccount:{email}"))
1276
+ member=privateca_sa.member)
1277
1277
  privateca_sa_keyuser_viewer = gcp.kms.CryptoKeyIAMMember("privateca_sa_keyuser_viewer",
1278
1278
  crypto_key_id="projects/keys-project/locations/us-central1/keyRings/key-ring/cryptoKeys/crypto-key",
1279
1279
  role="roles/viewer",
1280
- member=privateca_sa.email.apply(lambda email: f"serviceAccount:{email}"))
1280
+ member=privateca_sa.member)
1281
1281
  default = gcp.certificateauthority.Authority("default",
1282
1282
  pool="ca-pool",
1283
1283
  certificate_authority_id="my-certificate-authority",
@@ -24,6 +24,7 @@ class FunctionArgs:
24
24
  runtime: pulumi.Input[str],
25
25
  available_memory_mb: Optional[pulumi.Input[int]] = None,
26
26
  build_environment_variables: Optional[pulumi.Input[Mapping[str, Any]]] = None,
27
+ build_service_account: Optional[pulumi.Input[str]] = None,
27
28
  build_worker_pool: Optional[pulumi.Input[str]] = None,
28
29
  description: Optional[pulumi.Input[str]] = None,
29
30
  docker_registry: Optional[pulumi.Input[str]] = None,
@@ -59,6 +60,7 @@ class FunctionArgs:
59
60
  - - -
60
61
  :param pulumi.Input[int] available_memory_mb: Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
61
62
  :param pulumi.Input[Mapping[str, Any]] build_environment_variables: A set of key/value environment variable pairs available during build time.
63
+ :param pulumi.Input[str] build_service_account: If provided, the self-provided service account to use to build the function. The format of this field is `projects/{project}/serviceAccounts/{serviceAccountEmail}`
62
64
  :param pulumi.Input[str] build_worker_pool: Name of the Cloud Build Custom Worker Pool that should be used to build the function.
63
65
  :param pulumi.Input[str] description: Description of the function.
64
66
  :param pulumi.Input[str] docker_registry: Docker Registry to use for storing the function's Docker images. Allowed values are ARTIFACT_REGISTRY (default) and CONTAINER_REGISTRY.
@@ -100,6 +102,8 @@ class FunctionArgs:
100
102
  pulumi.set(__self__, "available_memory_mb", available_memory_mb)
101
103
  if build_environment_variables is not None:
102
104
  pulumi.set(__self__, "build_environment_variables", build_environment_variables)
105
+ if build_service_account is not None:
106
+ pulumi.set(__self__, "build_service_account", build_service_account)
103
107
  if build_worker_pool is not None:
104
108
  pulumi.set(__self__, "build_worker_pool", build_worker_pool)
105
109
  if description is not None:
@@ -194,6 +198,18 @@ class FunctionArgs:
194
198
  def build_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
195
199
  pulumi.set(self, "build_environment_variables", value)
196
200
 
201
+ @property
202
+ @pulumi.getter(name="buildServiceAccount")
203
+ def build_service_account(self) -> Optional[pulumi.Input[str]]:
204
+ """
205
+ If provided, the self-provided service account to use to build the function. The format of this field is `projects/{project}/serviceAccounts/{serviceAccountEmail}`
206
+ """
207
+ return pulumi.get(self, "build_service_account")
208
+
209
+ @build_service_account.setter
210
+ def build_service_account(self, value: Optional[pulumi.Input[str]]):
211
+ pulumi.set(self, "build_service_account", value)
212
+
197
213
  @property
198
214
  @pulumi.getter(name="buildWorkerPool")
199
215
  def build_worker_pool(self) -> Optional[pulumi.Input[str]]:
@@ -532,6 +548,7 @@ class _FunctionState:
532
548
  def __init__(__self__, *,
533
549
  available_memory_mb: Optional[pulumi.Input[int]] = None,
534
550
  build_environment_variables: Optional[pulumi.Input[Mapping[str, Any]]] = None,
551
+ build_service_account: Optional[pulumi.Input[str]] = None,
535
552
  build_worker_pool: Optional[pulumi.Input[str]] = None,
536
553
  description: Optional[pulumi.Input[str]] = None,
537
554
  docker_registry: Optional[pulumi.Input[str]] = None,
@@ -568,6 +585,7 @@ class _FunctionState:
568
585
  Input properties used for looking up and filtering Function resources.
569
586
  :param pulumi.Input[int] available_memory_mb: Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
570
587
  :param pulumi.Input[Mapping[str, Any]] build_environment_variables: A set of key/value environment variable pairs available during build time.
588
+ :param pulumi.Input[str] build_service_account: If provided, the self-provided service account to use to build the function. The format of this field is `projects/{project}/serviceAccounts/{serviceAccountEmail}`
571
589
  :param pulumi.Input[str] build_worker_pool: Name of the Cloud Build Custom Worker Pool that should be used to build the function.
572
590
  :param pulumi.Input[str] description: Description of the function.
573
591
  :param pulumi.Input[str] docker_registry: Docker Registry to use for storing the function's Docker images. Allowed values are ARTIFACT_REGISTRY (default) and CONTAINER_REGISTRY.
@@ -617,6 +635,8 @@ class _FunctionState:
617
635
  pulumi.set(__self__, "available_memory_mb", available_memory_mb)
618
636
  if build_environment_variables is not None:
619
637
  pulumi.set(__self__, "build_environment_variables", build_environment_variables)
638
+ if build_service_account is not None:
639
+ pulumi.set(__self__, "build_service_account", build_service_account)
620
640
  if build_worker_pool is not None:
621
641
  pulumi.set(__self__, "build_worker_pool", build_worker_pool)
622
642
  if description is not None:
@@ -706,6 +726,18 @@ class _FunctionState:
706
726
  def build_environment_variables(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
707
727
  pulumi.set(self, "build_environment_variables", value)
708
728
 
729
+ @property
730
+ @pulumi.getter(name="buildServiceAccount")
731
+ def build_service_account(self) -> Optional[pulumi.Input[str]]:
732
+ """
733
+ If provided, the self-provided service account to use to build the function. The format of this field is `projects/{project}/serviceAccounts/{serviceAccountEmail}`
734
+ """
735
+ return pulumi.get(self, "build_service_account")
736
+
737
+ @build_service_account.setter
738
+ def build_service_account(self, value: Optional[pulumi.Input[str]]):
739
+ pulumi.set(self, "build_service_account", value)
740
+
709
741
  @property
710
742
  @pulumi.getter(name="buildWorkerPool")
711
743
  def build_worker_pool(self) -> Optional[pulumi.Input[str]]:
@@ -1110,6 +1142,7 @@ class Function(pulumi.CustomResource):
1110
1142
  opts: Optional[pulumi.ResourceOptions] = None,
1111
1143
  available_memory_mb: Optional[pulumi.Input[int]] = None,
1112
1144
  build_environment_variables: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1145
+ build_service_account: Optional[pulumi.Input[str]] = None,
1113
1146
  build_worker_pool: Optional[pulumi.Input[str]] = None,
1114
1147
  description: Optional[pulumi.Input[str]] = None,
1115
1148
  docker_registry: Optional[pulumi.Input[str]] = None,
@@ -1246,6 +1279,7 @@ class Function(pulumi.CustomResource):
1246
1279
  :param pulumi.ResourceOptions opts: Options for the resource.
1247
1280
  :param pulumi.Input[int] available_memory_mb: Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
1248
1281
  :param pulumi.Input[Mapping[str, Any]] build_environment_variables: A set of key/value environment variable pairs available during build time.
1282
+ :param pulumi.Input[str] build_service_account: If provided, the self-provided service account to use to build the function. The format of this field is `projects/{project}/serviceAccounts/{serviceAccountEmail}`
1249
1283
  :param pulumi.Input[str] build_worker_pool: Name of the Cloud Build Custom Worker Pool that should be used to build the function.
1250
1284
  :param pulumi.Input[str] description: Description of the function.
1251
1285
  :param pulumi.Input[str] docker_registry: Docker Registry to use for storing the function's Docker images. Allowed values are ARTIFACT_REGISTRY (default) and CONTAINER_REGISTRY.
@@ -1412,6 +1446,7 @@ class Function(pulumi.CustomResource):
1412
1446
  opts: Optional[pulumi.ResourceOptions] = None,
1413
1447
  available_memory_mb: Optional[pulumi.Input[int]] = None,
1414
1448
  build_environment_variables: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1449
+ build_service_account: Optional[pulumi.Input[str]] = None,
1415
1450
  build_worker_pool: Optional[pulumi.Input[str]] = None,
1416
1451
  description: Optional[pulumi.Input[str]] = None,
1417
1452
  docker_registry: Optional[pulumi.Input[str]] = None,
@@ -1451,6 +1486,7 @@ class Function(pulumi.CustomResource):
1451
1486
 
1452
1487
  __props__.__dict__["available_memory_mb"] = available_memory_mb
1453
1488
  __props__.__dict__["build_environment_variables"] = build_environment_variables
1489
+ __props__.__dict__["build_service_account"] = build_service_account
1454
1490
  __props__.__dict__["build_worker_pool"] = build_worker_pool
1455
1491
  __props__.__dict__["description"] = description
1456
1492
  __props__.__dict__["docker_registry"] = docker_registry
@@ -1499,6 +1535,7 @@ class Function(pulumi.CustomResource):
1499
1535
  opts: Optional[pulumi.ResourceOptions] = None,
1500
1536
  available_memory_mb: Optional[pulumi.Input[int]] = None,
1501
1537
  build_environment_variables: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1538
+ build_service_account: Optional[pulumi.Input[str]] = None,
1502
1539
  build_worker_pool: Optional[pulumi.Input[str]] = None,
1503
1540
  description: Optional[pulumi.Input[str]] = None,
1504
1541
  docker_registry: Optional[pulumi.Input[str]] = None,
@@ -1540,6 +1577,7 @@ class Function(pulumi.CustomResource):
1540
1577
  :param pulumi.ResourceOptions opts: Options for the resource.
1541
1578
  :param pulumi.Input[int] available_memory_mb: Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
1542
1579
  :param pulumi.Input[Mapping[str, Any]] build_environment_variables: A set of key/value environment variable pairs available during build time.
1580
+ :param pulumi.Input[str] build_service_account: If provided, the self-provided service account to use to build the function. The format of this field is `projects/{project}/serviceAccounts/{serviceAccountEmail}`
1543
1581
  :param pulumi.Input[str] build_worker_pool: Name of the Cloud Build Custom Worker Pool that should be used to build the function.
1544
1582
  :param pulumi.Input[str] description: Description of the function.
1545
1583
  :param pulumi.Input[str] docker_registry: Docker Registry to use for storing the function's Docker images. Allowed values are ARTIFACT_REGISTRY (default) and CONTAINER_REGISTRY.
@@ -1591,6 +1629,7 @@ class Function(pulumi.CustomResource):
1591
1629
 
1592
1630
  __props__.__dict__["available_memory_mb"] = available_memory_mb
1593
1631
  __props__.__dict__["build_environment_variables"] = build_environment_variables
1632
+ __props__.__dict__["build_service_account"] = build_service_account
1594
1633
  __props__.__dict__["build_worker_pool"] = build_worker_pool
1595
1634
  __props__.__dict__["description"] = description
1596
1635
  __props__.__dict__["docker_registry"] = docker_registry
@@ -1641,6 +1680,14 @@ class Function(pulumi.CustomResource):
1641
1680
  """
1642
1681
  return pulumi.get(self, "build_environment_variables")
1643
1682
 
1683
+ @property
1684
+ @pulumi.getter(name="buildServiceAccount")
1685
+ def build_service_account(self) -> pulumi.Output[str]:
1686
+ """
1687
+ If provided, the self-provided service account to use to build the function. The format of this field is `projects/{project}/serviceAccounts/{serviceAccountEmail}`
1688
+ """
1689
+ return pulumi.get(self, "build_service_account")
1690
+
1644
1691
  @property
1645
1692
  @pulumi.getter(name="buildWorkerPool")
1646
1693
  def build_worker_pool(self) -> pulumi.Output[Optional[str]]:
@@ -27,13 +27,16 @@ class GetFunctionResult:
27
27
  """
28
28
  A collection of values returned by getFunction.
29
29
  """
30
- def __init__(__self__, available_memory_mb=None, build_environment_variables=None, build_worker_pool=None, description=None, docker_registry=None, docker_repository=None, effective_labels=None, entry_point=None, environment_variables=None, event_triggers=None, https_trigger_security_level=None, https_trigger_url=None, id=None, ingress_settings=None, kms_key_name=None, labels=None, max_instances=None, min_instances=None, name=None, project=None, pulumi_labels=None, region=None, runtime=None, secret_environment_variables=None, secret_volumes=None, service_account_email=None, source_archive_bucket=None, source_archive_object=None, source_repositories=None, status=None, timeout=None, trigger_http=None, version_id=None, vpc_connector=None, vpc_connector_egress_settings=None):
30
+ def __init__(__self__, available_memory_mb=None, build_environment_variables=None, build_service_account=None, build_worker_pool=None, description=None, docker_registry=None, docker_repository=None, effective_labels=None, entry_point=None, environment_variables=None, event_triggers=None, https_trigger_security_level=None, https_trigger_url=None, id=None, ingress_settings=None, kms_key_name=None, labels=None, max_instances=None, min_instances=None, name=None, project=None, pulumi_labels=None, region=None, runtime=None, secret_environment_variables=None, secret_volumes=None, service_account_email=None, source_archive_bucket=None, source_archive_object=None, source_repositories=None, status=None, timeout=None, trigger_http=None, version_id=None, vpc_connector=None, vpc_connector_egress_settings=None):
31
31
  if available_memory_mb and not isinstance(available_memory_mb, int):
32
32
  raise TypeError("Expected argument 'available_memory_mb' to be a int")
33
33
  pulumi.set(__self__, "available_memory_mb", available_memory_mb)
34
34
  if build_environment_variables and not isinstance(build_environment_variables, dict):
35
35
  raise TypeError("Expected argument 'build_environment_variables' to be a dict")
36
36
  pulumi.set(__self__, "build_environment_variables", build_environment_variables)
37
+ if build_service_account and not isinstance(build_service_account, str):
38
+ raise TypeError("Expected argument 'build_service_account' to be a str")
39
+ pulumi.set(__self__, "build_service_account", build_service_account)
37
40
  if build_worker_pool and not isinstance(build_worker_pool, str):
38
41
  raise TypeError("Expected argument 'build_worker_pool' to be a str")
39
42
  pulumi.set(__self__, "build_worker_pool", build_worker_pool)
@@ -147,6 +150,11 @@ class GetFunctionResult:
147
150
  def build_environment_variables(self) -> Mapping[str, Any]:
148
151
  return pulumi.get(self, "build_environment_variables")
149
152
 
153
+ @property
154
+ @pulumi.getter(name="buildServiceAccount")
155
+ def build_service_account(self) -> str:
156
+ return pulumi.get(self, "build_service_account")
157
+
150
158
  @property
151
159
  @pulumi.getter(name="buildWorkerPool")
152
160
  def build_worker_pool(self) -> str:
@@ -375,6 +383,7 @@ class AwaitableGetFunctionResult(GetFunctionResult):
375
383
  return GetFunctionResult(
376
384
  available_memory_mb=self.available_memory_mb,
377
385
  build_environment_variables=self.build_environment_variables,
386
+ build_service_account=self.build_service_account,
378
387
  build_worker_pool=self.build_worker_pool,
379
388
  description=self.description,
380
389
  docker_registry=self.docker_registry,
@@ -447,6 +456,7 @@ def get_function(name: Optional[str] = None,
447
456
  return AwaitableGetFunctionResult(
448
457
  available_memory_mb=pulumi.get(__ret__, 'available_memory_mb'),
449
458
  build_environment_variables=pulumi.get(__ret__, 'build_environment_variables'),
459
+ build_service_account=pulumi.get(__ret__, 'build_service_account'),
450
460
  build_worker_pool=pulumi.get(__ret__, 'build_worker_pool'),
451
461
  description=pulumi.get(__ret__, 'description'),
452
462
  docker_registry=pulumi.get(__ret__, 'docker_registry'),
@@ -1085,7 +1085,7 @@ class Function(pulumi.CustomResource):
1085
1085
  f"serviceAccount:service-{project_get_project.number}@gcp-sa-artifactregistry.iam.gserviceaccount.com",
1086
1086
  f"serviceAccount:service-{project_get_project.number}@gs-project-accounts.iam.gserviceaccount.com",
1087
1087
  f"serviceAccount:service-{project_get_project.number}@serverless-robot-prod.iam.gserviceaccount.com",
1088
- ea_sa.email.apply(lambda email: f"serviceAccount:{email}"),
1088
+ ea_sa.member,
1089
1089
  ],
1090
1090
  opts = pulumi.ResourceOptions(depends_on=[ea_sa]))
1091
1091
  encoded_ar_repo = gcp.artifactregistry.Repository("encoded-ar-repo",
@@ -1890,7 +1890,7 @@ class Function(pulumi.CustomResource):
1890
1890
  f"serviceAccount:service-{project_get_project.number}@gcp-sa-artifactregistry.iam.gserviceaccount.com",
1891
1891
  f"serviceAccount:service-{project_get_project.number}@gs-project-accounts.iam.gserviceaccount.com",
1892
1892
  f"serviceAccount:service-{project_get_project.number}@serverless-robot-prod.iam.gserviceaccount.com",
1893
- ea_sa.email.apply(lambda email: f"serviceAccount:{email}"),
1893
+ ea_sa.member,
1894
1894
  ],
1895
1895
  opts = pulumi.ResourceOptions(depends_on=[ea_sa]))
1896
1896
  encoded_ar_repo = gcp.artifactregistry.Repository("encoded-ar-repo",
@@ -113,8 +113,8 @@ if not MYPY:
113
113
  annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
114
114
  """
115
115
  Annotations is a key value map stored with a resource that
116
- may be set by external tools to store and retrieve arbitrary metadata. More
117
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
116
+ may be set by external tools to store and retrieve arbitrary metadata.
117
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
118
118
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
119
119
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
120
120
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -190,8 +190,8 @@ class DomainMappingMetadataArgs:
190
190
  :param pulumi.Input[str] namespace: In Cloud Run the namespace must be equal to either the
191
191
  project ID or project number.
192
192
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] annotations: Annotations is a key value map stored with a resource that
193
- may be set by external tools to store and retrieve arbitrary metadata. More
194
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
193
+ may be set by external tools to store and retrieve arbitrary metadata.
194
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
195
195
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
196
196
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
197
197
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -263,8 +263,8 @@ class DomainMappingMetadataArgs:
263
263
  def annotations(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
264
264
  """
265
265
  Annotations is a key value map stored with a resource that
266
- may be set by external tools to store and retrieve arbitrary metadata. More
267
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
266
+ may be set by external tools to store and retrieve arbitrary metadata.
267
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
268
268
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
269
269
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
270
270
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -889,8 +889,8 @@ if not MYPY:
889
889
  annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
890
890
  """
891
891
  Annotations is a key value map stored with a resource that
892
- may be set by external tools to store and retrieve arbitrary metadata. More
893
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
892
+ may be set by external tools to store and retrieve arbitrary metadata.
893
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
894
894
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
895
895
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
896
896
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -977,8 +977,8 @@ class ServiceMetadataArgs:
977
977
  uid: Optional[pulumi.Input[str]] = None):
978
978
  """
979
979
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] annotations: Annotations is a key value map stored with a resource that
980
- may be set by external tools to store and retrieve arbitrary metadata. More
981
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
980
+ may be set by external tools to store and retrieve arbitrary metadata.
981
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
982
982
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
983
983
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
984
984
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -1048,8 +1048,8 @@ class ServiceMetadataArgs:
1048
1048
  def annotations(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
1049
1049
  """
1050
1050
  Annotations is a key value map stored with a resource that
1051
- may be set by external tools to store and retrieve arbitrary metadata. More
1052
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1051
+ may be set by external tools to store and retrieve arbitrary metadata.
1052
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1053
1053
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
1054
1054
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
1055
1055
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -1698,8 +1698,8 @@ if not MYPY:
1698
1698
  annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
1699
1699
  """
1700
1700
  Annotations is a key value map stored with a resource that
1701
- may be set by external tools to store and retrieve arbitrary metadata. More
1702
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1701
+ may be set by external tools to store and retrieve arbitrary metadata.
1702
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1703
1703
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
1704
1704
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
1705
1705
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -1778,8 +1778,8 @@ class ServiceTemplateMetadataArgs:
1778
1778
  uid: Optional[pulumi.Input[str]] = None):
1779
1779
  """
1780
1780
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] annotations: Annotations is a key value map stored with a resource that
1781
- may be set by external tools to store and retrieve arbitrary metadata. More
1782
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1781
+ may be set by external tools to store and retrieve arbitrary metadata.
1782
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1783
1783
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
1784
1784
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
1785
1785
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -1843,8 +1843,8 @@ class ServiceTemplateMetadataArgs:
1843
1843
  def annotations(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
1844
1844
  """
1845
1845
  Annotations is a key value map stored with a resource that
1846
- may be set by external tools to store and retrieve arbitrary metadata. More
1847
- info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1846
+ may be set by external tools to store and retrieve arbitrary metadata.
1847
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
1848
1848
  **Note**: The Cloud Run API may add additional annotations that were not provided in your config.
1849
1849
  If the provider plan shows a diff where a server-side annotation is added, you can add it to your config
1850
1850
  or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field.
@@ -1975,7 +1975,8 @@ if not MYPY:
1975
1975
  container_concurrency: NotRequired[pulumi.Input[int]]
1976
1976
  """
1977
1977
  ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
1978
- requests per container of the Revision. Values are:
1978
+ requests per container of the Revision. If not specified or 0, defaults to 80 when
1979
+ requested CPU >= 1 and defaults to 1 when requested CPU < 1.
1979
1980
  """
1980
1981
  containers: NotRequired[pulumi.Input[Sequence[pulumi.Input['ServiceTemplateSpecContainerArgsDict']]]]
1981
1982
  """
@@ -2022,7 +2023,8 @@ class ServiceTemplateSpecArgs:
2022
2023
  volumes: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceTemplateSpecVolumeArgs']]]] = None):
2023
2024
  """
2024
2025
  :param pulumi.Input[int] container_concurrency: ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
2025
- requests per container of the Revision. Values are:
2026
+ requests per container of the Revision. If not specified or 0, defaults to 80 when
2027
+ requested CPU >= 1 and defaults to 1 when requested CPU < 1.
2026
2028
  :param pulumi.Input[Sequence[pulumi.Input['ServiceTemplateSpecContainerArgs']]] containers: Containers defines the unit of execution for this Revision.
2027
2029
  Structure is documented below.
2028
2030
  :param pulumi.Input[str] service_account_name: Email address of the IAM service account associated with the revision of the
@@ -2061,7 +2063,8 @@ class ServiceTemplateSpecArgs:
2061
2063
  def container_concurrency(self) -> Optional[pulumi.Input[int]]:
2062
2064
  """
2063
2065
  ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
2064
- requests per container of the Revision. Values are:
2066
+ requests per container of the Revision. If not specified or 0, defaults to 80 when
2067
+ requested CPU >= 1 and defaults to 1 when requested CPU < 1.
2065
2068
  """
2066
2069
  return pulumi.get(self, "container_concurrency")
2067
2070