pulumi-gcp 7.3.0a1702567892__py3-none-any.whl → 7.3.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. pulumi_gcp/__init__.py +129 -0
  2. pulumi_gcp/artifactregistry/_inputs.py +88 -0
  3. pulumi_gcp/artifactregistry/outputs.py +148 -0
  4. pulumi_gcp/artifactregistry/repository.py +116 -16
  5. pulumi_gcp/bigquery/_inputs.py +110 -0
  6. pulumi_gcp/bigquery/connection.py +123 -3
  7. pulumi_gcp/bigquery/outputs.py +145 -0
  8. pulumi_gcp/cloudbuild/_inputs.py +241 -1
  9. pulumi_gcp/cloudbuild/outputs.py +353 -2
  10. pulumi_gcp/cloudfunctionsv2/_inputs.py +6 -2
  11. pulumi_gcp/cloudfunctionsv2/outputs.py +6 -2
  12. pulumi_gcp/cloudidentity/_inputs.py +54 -5
  13. pulumi_gcp/cloudidentity/group_membership.py +0 -8
  14. pulumi_gcp/cloudidentity/outputs.py +99 -4
  15. pulumi_gcp/cloudrunv2/_inputs.py +8 -4
  16. pulumi_gcp/cloudrunv2/job.py +44 -0
  17. pulumi_gcp/cloudrunv2/outputs.py +8 -4
  18. pulumi_gcp/cloudrunv2/service.py +42 -0
  19. pulumi_gcp/cloudtasks/queue.py +0 -10
  20. pulumi_gcp/composer/_inputs.py +17 -4
  21. pulumi_gcp/composer/outputs.py +20 -4
  22. pulumi_gcp/compute/_inputs.py +46 -0
  23. pulumi_gcp/compute/get_global_forwarding_rule.py +11 -1
  24. pulumi_gcp/compute/global_forwarding_rule.py +69 -0
  25. pulumi_gcp/compute/outputs.py +75 -0
  26. pulumi_gcp/config/__init__.pyi +6 -0
  27. pulumi_gcp/config/vars.py +12 -0
  28. pulumi_gcp/container/_inputs.py +58 -0
  29. pulumi_gcp/container/node_pool.py +68 -14
  30. pulumi_gcp/container/outputs.py +68 -0
  31. pulumi_gcp/dataform/__init__.py +4 -0
  32. pulumi_gcp/dataform/_inputs.py +80 -0
  33. pulumi_gcp/dataform/get_repository_iam_policy.py +144 -0
  34. pulumi_gcp/dataform/outputs.py +56 -0
  35. pulumi_gcp/dataform/repository_iam_binding.py +325 -0
  36. pulumi_gcp/dataform/repository_iam_member.py +325 -0
  37. pulumi_gcp/dataform/repository_iam_policy.py +254 -0
  38. pulumi_gcp/dataloss/_inputs.py +29 -26
  39. pulumi_gcp/dataloss/outputs.py +28 -25
  40. pulumi_gcp/dataloss/prevention_job_trigger.py +78 -0
  41. pulumi_gcp/datastream/connection_profile.py +82 -4
  42. pulumi_gcp/datastream/stream.py +32 -22
  43. pulumi_gcp/firestore/database.py +146 -28
  44. pulumi_gcp/gkehub/_inputs.py +821 -3
  45. pulumi_gcp/gkehub/feature.py +176 -0
  46. pulumi_gcp/gkehub/feature_membership.py +105 -59
  47. pulumi_gcp/gkehub/fleet.py +70 -2
  48. pulumi_gcp/gkehub/outputs.py +819 -3
  49. pulumi_gcp/gkehub/scope.py +2 -2
  50. pulumi_gcp/iam/_inputs.py +72 -0
  51. pulumi_gcp/iam/outputs.py +79 -0
  52. pulumi_gcp/iam/workforce_pool.py +75 -0
  53. pulumi_gcp/identityplatform/project_default_config.py +4 -0
  54. pulumi_gcp/logging/__init__.py +3 -0
  55. pulumi_gcp/logging/get_folder_settings.py +197 -0
  56. pulumi_gcp/logging/get_organization_settings.py +197 -0
  57. pulumi_gcp/logging/get_project_settings.py +197 -0
  58. pulumi_gcp/migrationcenter/__init__.py +8 -0
  59. pulumi_gcp/migrationcenter/group.py +652 -0
  60. pulumi_gcp/netapp/__init__.py +8 -0
  61. pulumi_gcp/netapp/storage_pool.py +970 -0
  62. pulumi_gcp/projects/iam_custom_role.py +7 -7
  63. pulumi_gcp/provider.py +60 -0
  64. pulumi_gcp/securesourcemanager/__init__.py +14 -0
  65. pulumi_gcp/securesourcemanager/_inputs.py +94 -0
  66. pulumi_gcp/securesourcemanager/get_instance_iam_policy.py +168 -0
  67. pulumi_gcp/securesourcemanager/instance.py +607 -0
  68. pulumi_gcp/securesourcemanager/instance_iam_binding.py +325 -0
  69. pulumi_gcp/securesourcemanager/instance_iam_member.py +325 -0
  70. pulumi_gcp/securesourcemanager/instance_iam_policy.py +254 -0
  71. pulumi_gcp/securesourcemanager/outputs.py +70 -0
  72. pulumi_gcp/securitycenter/__init__.py +1 -0
  73. pulumi_gcp/securitycenter/event_threat_detection_custom_module.py +528 -0
  74. pulumi_gcp/sql/_inputs.py +2 -2
  75. pulumi_gcp/sql/database_instance.py +4 -4
  76. pulumi_gcp/sql/outputs.py +2 -2
  77. pulumi_gcp/storage/_inputs.py +16 -0
  78. pulumi_gcp/storage/outputs.py +21 -0
  79. pulumi_gcp/vertex/__init__.py +4 -0
  80. pulumi_gcp/vertex/_inputs.py +80 -0
  81. pulumi_gcp/vertex/ai_endpoint_iam_binding.py +325 -0
  82. pulumi_gcp/vertex/ai_endpoint_iam_member.py +325 -0
  83. pulumi_gcp/vertex/ai_endpoint_iam_policy.py +254 -0
  84. pulumi_gcp/vertex/get_ai_endpoint_iam_policy.py +140 -0
  85. pulumi_gcp/vertex/outputs.py +56 -0
  86. pulumi_gcp/vmwareengine/__init__.py +5 -0
  87. pulumi_gcp/vmwareengine/_inputs.py +104 -2
  88. pulumi_gcp/vmwareengine/get_network.py +14 -4
  89. pulumi_gcp/vmwareengine/get_network_peering.py +260 -0
  90. pulumi_gcp/vmwareengine/get_network_policy.py +228 -0
  91. pulumi_gcp/vmwareengine/get_nsx_credentials.py +133 -0
  92. pulumi_gcp/vmwareengine/get_private_cloud.py +14 -4
  93. pulumi_gcp/vmwareengine/network.py +41 -7
  94. pulumi_gcp/vmwareengine/network_peering.py +959 -0
  95. pulumi_gcp/vmwareengine/network_policy.py +836 -0
  96. pulumi_gcp/vmwareengine/outputs.py +133 -2
  97. pulumi_gcp/vmwareengine/private_cloud.py +20 -68
  98. {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/METADATA +1 -1
  99. {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/RECORD +101 -72
  100. {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/WHEEL +0 -0
  101. {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/top_level.txt +0 -0
@@ -753,10 +753,15 @@ class Repository(pulumi.CustomResource):
753
753
  import pulumi
754
754
  import pulumi_gcp as gcp
755
755
 
756
- my_repo_upstream = gcp.artifactregistry.Repository("my-repo-upstream",
756
+ my_repo_upstream_1 = gcp.artifactregistry.Repository("my-repo-upstream-1",
757
757
  location="us-central1",
758
- repository_id="my-repository-upstream",
759
- description="example docker repository (upstream source)",
758
+ repository_id="my-repository-upstream-1",
759
+ description="example docker repository (upstream source) 1",
760
+ format="DOCKER")
761
+ my_repo_upstream_2 = gcp.artifactregistry.Repository("my-repo-upstream-2",
762
+ location="us-central1",
763
+ repository_id="my-repository-upstream-2",
764
+ description="example docker repository (upstream source) 2",
760
765
  format="DOCKER")
761
766
  my_repo = gcp.artifactregistry.Repository("my-repo",
762
767
  location="us-central1",
@@ -765,11 +770,18 @@ class Repository(pulumi.CustomResource):
765
770
  format="DOCKER",
766
771
  mode="VIRTUAL_REPOSITORY",
767
772
  virtual_repository_config=gcp.artifactregistry.RepositoryVirtualRepositoryConfigArgs(
768
- upstream_policies=[gcp.artifactregistry.RepositoryVirtualRepositoryConfigUpstreamPolicyArgs(
769
- id="my-repository-upstream",
770
- repository=my_repo_upstream.id,
771
- priority=1,
772
- )],
773
+ upstream_policies=[
774
+ gcp.artifactregistry.RepositoryVirtualRepositoryConfigUpstreamPolicyArgs(
775
+ id="my-repository-upstream-1",
776
+ repository=my_repo_upstream_1.id,
777
+ priority=20,
778
+ ),
779
+ gcp.artifactregistry.RepositoryVirtualRepositoryConfigUpstreamPolicyArgs(
780
+ id="my-repository-upstream-2",
781
+ repository=my_repo_upstream_2.id,
782
+ priority=10,
783
+ ),
784
+ ],
773
785
  ),
774
786
  opts=pulumi.ResourceOptions(depends_on=[]))
775
787
  ```
@@ -888,6 +900,44 @@ class Repository(pulumi.CustomResource):
888
900
  ],
889
901
  opts=pulumi.ResourceOptions(provider=google_beta))
890
902
  ```
903
+ ### Artifact Registry Repository Remote Custom
904
+
905
+ ```python
906
+ import pulumi
907
+ import pulumi_gcp as gcp
908
+
909
+ project = gcp.organizations.get_project()
910
+ example_custom_remote_secret = gcp.secretmanager.Secret("example-custom-remote-secret",
911
+ secret_id="example-secret",
912
+ replication=gcp.secretmanager.SecretReplicationArgs(
913
+ auto=gcp.secretmanager.SecretReplicationAutoArgs(),
914
+ ))
915
+ example_custom_remote_secret_version = gcp.secretmanager.SecretVersion("example-custom-remote-secretVersion",
916
+ secret=example_custom_remote_secret.id,
917
+ secret_data="remote-password")
918
+ secret_access = gcp.secretmanager.SecretIamMember("secret-access",
919
+ secret_id=example_custom_remote_secret.id,
920
+ role="roles/secretmanager.secretAccessor",
921
+ member=f"serviceAccount:service-{project.number}@gcp-sa-artifactregistry.iam.gserviceaccount.com")
922
+ my_repo = gcp.artifactregistry.Repository("my-repo",
923
+ location="us-central1",
924
+ repository_id="example-custom-remote",
925
+ description="example remote docker repository with credentials",
926
+ format="DOCKER",
927
+ mode="REMOTE_REPOSITORY",
928
+ remote_repository_config=gcp.artifactregistry.RepositoryRemoteRepositoryConfigArgs(
929
+ description="docker hub with custom credentials",
930
+ docker_repository=gcp.artifactregistry.RepositoryRemoteRepositoryConfigDockerRepositoryArgs(
931
+ public_repository="DOCKER_HUB",
932
+ ),
933
+ upstream_credentials=gcp.artifactregistry.RepositoryRemoteRepositoryConfigUpstreamCredentialsArgs(
934
+ username_password_credentials=gcp.artifactregistry.RepositoryRemoteRepositoryConfigUpstreamCredentialsUsernamePasswordCredentialsArgs(
935
+ username="remote-username",
936
+ password_secret_version=example_custom_remote_secret_version.name,
937
+ ),
938
+ ),
939
+ ))
940
+ ```
891
941
 
892
942
  ## Import
893
943
 
@@ -1030,10 +1080,15 @@ class Repository(pulumi.CustomResource):
1030
1080
  import pulumi
1031
1081
  import pulumi_gcp as gcp
1032
1082
 
1033
- my_repo_upstream = gcp.artifactregistry.Repository("my-repo-upstream",
1083
+ my_repo_upstream_1 = gcp.artifactregistry.Repository("my-repo-upstream-1",
1034
1084
  location="us-central1",
1035
- repository_id="my-repository-upstream",
1036
- description="example docker repository (upstream source)",
1085
+ repository_id="my-repository-upstream-1",
1086
+ description="example docker repository (upstream source) 1",
1087
+ format="DOCKER")
1088
+ my_repo_upstream_2 = gcp.artifactregistry.Repository("my-repo-upstream-2",
1089
+ location="us-central1",
1090
+ repository_id="my-repository-upstream-2",
1091
+ description="example docker repository (upstream source) 2",
1037
1092
  format="DOCKER")
1038
1093
  my_repo = gcp.artifactregistry.Repository("my-repo",
1039
1094
  location="us-central1",
@@ -1042,11 +1097,18 @@ class Repository(pulumi.CustomResource):
1042
1097
  format="DOCKER",
1043
1098
  mode="VIRTUAL_REPOSITORY",
1044
1099
  virtual_repository_config=gcp.artifactregistry.RepositoryVirtualRepositoryConfigArgs(
1045
- upstream_policies=[gcp.artifactregistry.RepositoryVirtualRepositoryConfigUpstreamPolicyArgs(
1046
- id="my-repository-upstream",
1047
- repository=my_repo_upstream.id,
1048
- priority=1,
1049
- )],
1100
+ upstream_policies=[
1101
+ gcp.artifactregistry.RepositoryVirtualRepositoryConfigUpstreamPolicyArgs(
1102
+ id="my-repository-upstream-1",
1103
+ repository=my_repo_upstream_1.id,
1104
+ priority=20,
1105
+ ),
1106
+ gcp.artifactregistry.RepositoryVirtualRepositoryConfigUpstreamPolicyArgs(
1107
+ id="my-repository-upstream-2",
1108
+ repository=my_repo_upstream_2.id,
1109
+ priority=10,
1110
+ ),
1111
+ ],
1050
1112
  ),
1051
1113
  opts=pulumi.ResourceOptions(depends_on=[]))
1052
1114
  ```
@@ -1165,6 +1227,44 @@ class Repository(pulumi.CustomResource):
1165
1227
  ],
1166
1228
  opts=pulumi.ResourceOptions(provider=google_beta))
1167
1229
  ```
1230
+ ### Artifact Registry Repository Remote Custom
1231
+
1232
+ ```python
1233
+ import pulumi
1234
+ import pulumi_gcp as gcp
1235
+
1236
+ project = gcp.organizations.get_project()
1237
+ example_custom_remote_secret = gcp.secretmanager.Secret("example-custom-remote-secret",
1238
+ secret_id="example-secret",
1239
+ replication=gcp.secretmanager.SecretReplicationArgs(
1240
+ auto=gcp.secretmanager.SecretReplicationAutoArgs(),
1241
+ ))
1242
+ example_custom_remote_secret_version = gcp.secretmanager.SecretVersion("example-custom-remote-secretVersion",
1243
+ secret=example_custom_remote_secret.id,
1244
+ secret_data="remote-password")
1245
+ secret_access = gcp.secretmanager.SecretIamMember("secret-access",
1246
+ secret_id=example_custom_remote_secret.id,
1247
+ role="roles/secretmanager.secretAccessor",
1248
+ member=f"serviceAccount:service-{project.number}@gcp-sa-artifactregistry.iam.gserviceaccount.com")
1249
+ my_repo = gcp.artifactregistry.Repository("my-repo",
1250
+ location="us-central1",
1251
+ repository_id="example-custom-remote",
1252
+ description="example remote docker repository with credentials",
1253
+ format="DOCKER",
1254
+ mode="REMOTE_REPOSITORY",
1255
+ remote_repository_config=gcp.artifactregistry.RepositoryRemoteRepositoryConfigArgs(
1256
+ description="docker hub with custom credentials",
1257
+ docker_repository=gcp.artifactregistry.RepositoryRemoteRepositoryConfigDockerRepositoryArgs(
1258
+ public_repository="DOCKER_HUB",
1259
+ ),
1260
+ upstream_credentials=gcp.artifactregistry.RepositoryRemoteRepositoryConfigUpstreamCredentialsArgs(
1261
+ username_password_credentials=gcp.artifactregistry.RepositoryRemoteRepositoryConfigUpstreamCredentialsUsernamePasswordCredentialsArgs(
1262
+ username="remote-username",
1263
+ password_secret_version=example_custom_remote_secret_version.name,
1264
+ ),
1265
+ ),
1266
+ ))
1267
+ ```
1168
1268
 
1169
1269
  ## Import
1170
1270
 
@@ -22,6 +22,9 @@ __all__ = [
22
22
  'ConnectionCloudSqlCredentialArgs',
23
23
  'ConnectionIamBindingConditionArgs',
24
24
  'ConnectionIamMemberConditionArgs',
25
+ 'ConnectionSparkArgs',
26
+ 'ConnectionSparkMetastoreServiceConfigArgs',
27
+ 'ConnectionSparkSparkHistoryServerConfigArgs',
25
28
  'DataTransferConfigEmailPreferencesArgs',
26
29
  'DataTransferConfigScheduleOptionsArgs',
27
30
  'DataTransferConfigSensitiveParamsArgs',
@@ -736,6 +739,113 @@ class ConnectionIamMemberConditionArgs:
736
739
  pulumi.set(self, "description", value)
737
740
 
738
741
 
742
+ @pulumi.input_type
743
+ class ConnectionSparkArgs:
744
+ def __init__(__self__, *,
745
+ metastore_service_config: Optional[pulumi.Input['ConnectionSparkMetastoreServiceConfigArgs']] = None,
746
+ service_account_id: Optional[pulumi.Input[str]] = None,
747
+ spark_history_server_config: Optional[pulumi.Input['ConnectionSparkSparkHistoryServerConfigArgs']] = None):
748
+ """
749
+ :param pulumi.Input['ConnectionSparkMetastoreServiceConfigArgs'] metastore_service_config: Dataproc Metastore Service configuration for the connection.
750
+ Structure is documented below.
751
+ :param pulumi.Input[str] service_account_id: (Output)
752
+ The account ID of the service created for the purpose of this connection.
753
+ :param pulumi.Input['ConnectionSparkSparkHistoryServerConfigArgs'] spark_history_server_config: Spark History Server configuration for the connection.
754
+ Structure is documented below.
755
+ """
756
+ if metastore_service_config is not None:
757
+ pulumi.set(__self__, "metastore_service_config", metastore_service_config)
758
+ if service_account_id is not None:
759
+ pulumi.set(__self__, "service_account_id", service_account_id)
760
+ if spark_history_server_config is not None:
761
+ pulumi.set(__self__, "spark_history_server_config", spark_history_server_config)
762
+
763
+ @property
764
+ @pulumi.getter(name="metastoreServiceConfig")
765
+ def metastore_service_config(self) -> Optional[pulumi.Input['ConnectionSparkMetastoreServiceConfigArgs']]:
766
+ """
767
+ Dataproc Metastore Service configuration for the connection.
768
+ Structure is documented below.
769
+ """
770
+ return pulumi.get(self, "metastore_service_config")
771
+
772
+ @metastore_service_config.setter
773
+ def metastore_service_config(self, value: Optional[pulumi.Input['ConnectionSparkMetastoreServiceConfigArgs']]):
774
+ pulumi.set(self, "metastore_service_config", value)
775
+
776
+ @property
777
+ @pulumi.getter(name="serviceAccountId")
778
+ def service_account_id(self) -> Optional[pulumi.Input[str]]:
779
+ """
780
+ (Output)
781
+ The account ID of the service created for the purpose of this connection.
782
+ """
783
+ return pulumi.get(self, "service_account_id")
784
+
785
+ @service_account_id.setter
786
+ def service_account_id(self, value: Optional[pulumi.Input[str]]):
787
+ pulumi.set(self, "service_account_id", value)
788
+
789
+ @property
790
+ @pulumi.getter(name="sparkHistoryServerConfig")
791
+ def spark_history_server_config(self) -> Optional[pulumi.Input['ConnectionSparkSparkHistoryServerConfigArgs']]:
792
+ """
793
+ Spark History Server configuration for the connection.
794
+ Structure is documented below.
795
+ """
796
+ return pulumi.get(self, "spark_history_server_config")
797
+
798
+ @spark_history_server_config.setter
799
+ def spark_history_server_config(self, value: Optional[pulumi.Input['ConnectionSparkSparkHistoryServerConfigArgs']]):
800
+ pulumi.set(self, "spark_history_server_config", value)
801
+
802
+
803
+ @pulumi.input_type
804
+ class ConnectionSparkMetastoreServiceConfigArgs:
805
+ def __init__(__self__, *,
806
+ metastore_service: Optional[pulumi.Input[str]] = None):
807
+ """
808
+ :param pulumi.Input[str] metastore_service: Resource name of an existing Dataproc Metastore service in the form of projects/[projectId]/locations/[region]/services/[serviceId].
809
+ """
810
+ if metastore_service is not None:
811
+ pulumi.set(__self__, "metastore_service", metastore_service)
812
+
813
+ @property
814
+ @pulumi.getter(name="metastoreService")
815
+ def metastore_service(self) -> Optional[pulumi.Input[str]]:
816
+ """
817
+ Resource name of an existing Dataproc Metastore service in the form of projects/[projectId]/locations/[region]/services/[serviceId].
818
+ """
819
+ return pulumi.get(self, "metastore_service")
820
+
821
+ @metastore_service.setter
822
+ def metastore_service(self, value: Optional[pulumi.Input[str]]):
823
+ pulumi.set(self, "metastore_service", value)
824
+
825
+
826
+ @pulumi.input_type
827
+ class ConnectionSparkSparkHistoryServerConfigArgs:
828
+ def __init__(__self__, *,
829
+ dataproc_cluster: Optional[pulumi.Input[str]] = None):
830
+ """
831
+ :param pulumi.Input[str] dataproc_cluster: Resource name of an existing Dataproc Cluster to act as a Spark History Server for the connection if the form of projects/[projectId]/regions/[region]/clusters/[cluster_name].
832
+ """
833
+ if dataproc_cluster is not None:
834
+ pulumi.set(__self__, "dataproc_cluster", dataproc_cluster)
835
+
836
+ @property
837
+ @pulumi.getter(name="dataprocCluster")
838
+ def dataproc_cluster(self) -> Optional[pulumi.Input[str]]:
839
+ """
840
+ Resource name of an existing Dataproc Cluster to act as a Spark History Server for the connection if the form of projects/[projectId]/regions/[region]/clusters/[cluster_name].
841
+ """
842
+ return pulumi.get(self, "dataproc_cluster")
843
+
844
+ @dataproc_cluster.setter
845
+ def dataproc_cluster(self, value: Optional[pulumi.Input[str]]):
846
+ pulumi.set(self, "dataproc_cluster", value)
847
+
848
+
739
849
  @pulumi.input_type
740
850
  class DataTransferConfigEmailPreferencesArgs:
741
851
  def __init__(__self__, *,
@@ -25,7 +25,8 @@ class ConnectionArgs:
25
25
  description: Optional[pulumi.Input[str]] = None,
26
26
  friendly_name: Optional[pulumi.Input[str]] = None,
27
27
  location: Optional[pulumi.Input[str]] = None,
28
- project: Optional[pulumi.Input[str]] = None):
28
+ project: Optional[pulumi.Input[str]] = None,
29
+ spark: Optional[pulumi.Input['ConnectionSparkArgs']] = None):
29
30
  """
30
31
  The set of arguments for constructing a Connection resource.
31
32
  :param pulumi.Input['ConnectionAwsArgs'] aws: Connection properties specific to Amazon Web Services.
@@ -50,6 +51,8 @@ class ConnectionArgs:
50
51
  Azure allowed regions are azure-eastus2
51
52
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
52
53
  If it is not provided, the provider project is used.
54
+ :param pulumi.Input['ConnectionSparkArgs'] spark: Container for connection properties to execute stored procedures for Apache Spark. resources.
55
+ Structure is documented below.
53
56
  """
54
57
  if aws is not None:
55
58
  pulumi.set(__self__, "aws", aws)
@@ -71,6 +74,8 @@ class ConnectionArgs:
71
74
  pulumi.set(__self__, "location", location)
72
75
  if project is not None:
73
76
  pulumi.set(__self__, "project", project)
77
+ if spark is not None:
78
+ pulumi.set(__self__, "spark", spark)
74
79
 
75
80
  @property
76
81
  @pulumi.getter
@@ -204,6 +209,19 @@ class ConnectionArgs:
204
209
  def project(self, value: Optional[pulumi.Input[str]]):
205
210
  pulumi.set(self, "project", value)
206
211
 
212
+ @property
213
+ @pulumi.getter
214
+ def spark(self) -> Optional[pulumi.Input['ConnectionSparkArgs']]:
215
+ """
216
+ Container for connection properties to execute stored procedures for Apache Spark. resources.
217
+ Structure is documented below.
218
+ """
219
+ return pulumi.get(self, "spark")
220
+
221
+ @spark.setter
222
+ def spark(self, value: Optional[pulumi.Input['ConnectionSparkArgs']]):
223
+ pulumi.set(self, "spark", value)
224
+
207
225
 
208
226
  @pulumi.input_type
209
227
  class _ConnectionState:
@@ -219,7 +237,8 @@ class _ConnectionState:
219
237
  has_credential: Optional[pulumi.Input[bool]] = None,
220
238
  location: Optional[pulumi.Input[str]] = None,
221
239
  name: Optional[pulumi.Input[str]] = None,
222
- project: Optional[pulumi.Input[str]] = None):
240
+ project: Optional[pulumi.Input[str]] = None,
241
+ spark: Optional[pulumi.Input['ConnectionSparkArgs']] = None):
223
242
  """
224
243
  Input properties used for looking up and filtering Connection resources.
225
244
  :param pulumi.Input['ConnectionAwsArgs'] aws: Connection properties specific to Amazon Web Services.
@@ -247,6 +266,8 @@ class _ConnectionState:
247
266
  "projects/{project_id}/locations/{location_id}/connections/{connectionId}"
248
267
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
249
268
  If it is not provided, the provider project is used.
269
+ :param pulumi.Input['ConnectionSparkArgs'] spark: Container for connection properties to execute stored procedures for Apache Spark. resources.
270
+ Structure is documented below.
250
271
  """
251
272
  if aws is not None:
252
273
  pulumi.set(__self__, "aws", aws)
@@ -272,6 +293,8 @@ class _ConnectionState:
272
293
  pulumi.set(__self__, "name", name)
273
294
  if project is not None:
274
295
  pulumi.set(__self__, "project", project)
296
+ if spark is not None:
297
+ pulumi.set(__self__, "spark", spark)
275
298
 
276
299
  @property
277
300
  @pulumi.getter
@@ -430,6 +453,19 @@ class _ConnectionState:
430
453
  def project(self, value: Optional[pulumi.Input[str]]):
431
454
  pulumi.set(self, "project", value)
432
455
 
456
+ @property
457
+ @pulumi.getter
458
+ def spark(self) -> Optional[pulumi.Input['ConnectionSparkArgs']]:
459
+ """
460
+ Container for connection properties to execute stored procedures for Apache Spark. resources.
461
+ Structure is documented below.
462
+ """
463
+ return pulumi.get(self, "spark")
464
+
465
+ @spark.setter
466
+ def spark(self, value: Optional[pulumi.Input['ConnectionSparkArgs']]):
467
+ pulumi.set(self, "spark", value)
468
+
433
469
 
434
470
  class Connection(pulumi.CustomResource):
435
471
  @overload
@@ -446,6 +482,7 @@ class Connection(pulumi.CustomResource):
446
482
  friendly_name: Optional[pulumi.Input[str]] = None,
447
483
  location: Optional[pulumi.Input[str]] = None,
448
484
  project: Optional[pulumi.Input[str]] = None,
485
+ spark: Optional[pulumi.Input[pulumi.InputType['ConnectionSparkArgs']]] = None,
449
486
  __props__=None):
450
487
  """
451
488
  A connection allows BigQuery connections to external data sources..
@@ -608,6 +645,39 @@ class Connection(pulumi.CustomResource):
608
645
  friendly_name="👋",
609
646
  location="US")
610
647
  ```
648
+ ### Bigquery Connection Spark
649
+
650
+ ```python
651
+ import pulumi
652
+ import pulumi_gcp as gcp
653
+
654
+ basic = gcp.dataproc.Cluster("basic",
655
+ region="us-central1",
656
+ cluster_config=gcp.dataproc.ClusterClusterConfigArgs(
657
+ software_config=gcp.dataproc.ClusterClusterConfigSoftwareConfigArgs(
658
+ override_properties={
659
+ "dataproc:dataproc.allow.zero.workers": "true",
660
+ },
661
+ ),
662
+ master_config=gcp.dataproc.ClusterClusterConfigMasterConfigArgs(
663
+ num_instances=1,
664
+ machine_type="e2-standard-2",
665
+ disk_config=gcp.dataproc.ClusterClusterConfigMasterConfigDiskConfigArgs(
666
+ boot_disk_size_gb=35,
667
+ ),
668
+ ),
669
+ ))
670
+ connection = gcp.bigquery.Connection("connection",
671
+ connection_id="my-connection",
672
+ location="US",
673
+ friendly_name="👋",
674
+ description="a riveting description",
675
+ spark=gcp.bigquery.ConnectionSparkArgs(
676
+ spark_history_server_config=gcp.bigquery.ConnectionSparkSparkHistoryServerConfigArgs(
677
+ dataproc_cluster=basic.id,
678
+ ),
679
+ ))
680
+ ```
611
681
 
612
682
  ## Import
613
683
 
@@ -657,6 +727,8 @@ class Connection(pulumi.CustomResource):
657
727
  Azure allowed regions are azure-eastus2
658
728
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
659
729
  If it is not provided, the provider project is used.
730
+ :param pulumi.Input[pulumi.InputType['ConnectionSparkArgs']] spark: Container for connection properties to execute stored procedures for Apache Spark. resources.
731
+ Structure is documented below.
660
732
  """
661
733
  ...
662
734
  @overload
@@ -825,6 +897,39 @@ class Connection(pulumi.CustomResource):
825
897
  friendly_name="👋",
826
898
  location="US")
827
899
  ```
900
+ ### Bigquery Connection Spark
901
+
902
+ ```python
903
+ import pulumi
904
+ import pulumi_gcp as gcp
905
+
906
+ basic = gcp.dataproc.Cluster("basic",
907
+ region="us-central1",
908
+ cluster_config=gcp.dataproc.ClusterClusterConfigArgs(
909
+ software_config=gcp.dataproc.ClusterClusterConfigSoftwareConfigArgs(
910
+ override_properties={
911
+ "dataproc:dataproc.allow.zero.workers": "true",
912
+ },
913
+ ),
914
+ master_config=gcp.dataproc.ClusterClusterConfigMasterConfigArgs(
915
+ num_instances=1,
916
+ machine_type="e2-standard-2",
917
+ disk_config=gcp.dataproc.ClusterClusterConfigMasterConfigDiskConfigArgs(
918
+ boot_disk_size_gb=35,
919
+ ),
920
+ ),
921
+ ))
922
+ connection = gcp.bigquery.Connection("connection",
923
+ connection_id="my-connection",
924
+ location="US",
925
+ friendly_name="👋",
926
+ description="a riveting description",
927
+ spark=gcp.bigquery.ConnectionSparkArgs(
928
+ spark_history_server_config=gcp.bigquery.ConnectionSparkSparkHistoryServerConfigArgs(
929
+ dataproc_cluster=basic.id,
930
+ ),
931
+ ))
932
+ ```
828
933
 
829
934
  ## Import
830
935
 
@@ -875,6 +980,7 @@ class Connection(pulumi.CustomResource):
875
980
  friendly_name: Optional[pulumi.Input[str]] = None,
876
981
  location: Optional[pulumi.Input[str]] = None,
877
982
  project: Optional[pulumi.Input[str]] = None,
983
+ spark: Optional[pulumi.Input[pulumi.InputType['ConnectionSparkArgs']]] = None,
878
984
  __props__=None):
879
985
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
880
986
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -894,6 +1000,7 @@ class Connection(pulumi.CustomResource):
894
1000
  __props__.__dict__["friendly_name"] = friendly_name
895
1001
  __props__.__dict__["location"] = location
896
1002
  __props__.__dict__["project"] = project
1003
+ __props__.__dict__["spark"] = spark
897
1004
  __props__.__dict__["has_credential"] = None
898
1005
  __props__.__dict__["name"] = None
899
1006
  super(Connection, __self__).__init__(
@@ -917,7 +1024,8 @@ class Connection(pulumi.CustomResource):
917
1024
  has_credential: Optional[pulumi.Input[bool]] = None,
918
1025
  location: Optional[pulumi.Input[str]] = None,
919
1026
  name: Optional[pulumi.Input[str]] = None,
920
- project: Optional[pulumi.Input[str]] = None) -> 'Connection':
1027
+ project: Optional[pulumi.Input[str]] = None,
1028
+ spark: Optional[pulumi.Input[pulumi.InputType['ConnectionSparkArgs']]] = None) -> 'Connection':
921
1029
  """
922
1030
  Get an existing Connection resource's state with the given name, id, and optional extra
923
1031
  properties used to qualify the lookup.
@@ -950,6 +1058,8 @@ class Connection(pulumi.CustomResource):
950
1058
  "projects/{project_id}/locations/{location_id}/connections/{connectionId}"
951
1059
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
952
1060
  If it is not provided, the provider project is used.
1061
+ :param pulumi.Input[pulumi.InputType['ConnectionSparkArgs']] spark: Container for connection properties to execute stored procedures for Apache Spark. resources.
1062
+ Structure is documented below.
953
1063
  """
954
1064
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
955
1065
 
@@ -967,6 +1077,7 @@ class Connection(pulumi.CustomResource):
967
1077
  __props__.__dict__["location"] = location
968
1078
  __props__.__dict__["name"] = name
969
1079
  __props__.__dict__["project"] = project
1080
+ __props__.__dict__["spark"] = spark
970
1081
  return Connection(resource_name, opts=opts, __props__=__props__)
971
1082
 
972
1083
  @property
@@ -1078,3 +1189,12 @@ class Connection(pulumi.CustomResource):
1078
1189
  """
1079
1190
  return pulumi.get(self, "project")
1080
1191
 
1192
+ @property
1193
+ @pulumi.getter
1194
+ def spark(self) -> pulumi.Output[Optional['outputs.ConnectionSpark']]:
1195
+ """
1196
+ Container for connection properties to execute stored procedures for Apache Spark. resources.
1197
+ Structure is documented below.
1198
+ """
1199
+ return pulumi.get(self, "spark")
1200
+