pulumi-databricks 1.77.0a1760375482__py3-none-any.whl → 1.79.0a1762839813__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_databricks/__init__.py +54 -46
- pulumi_databricks/_inputs.py +26079 -32918
- pulumi_databricks/account_federation_policy.py +44 -16
- pulumi_databricks/account_network_policy.py +56 -2
- pulumi_databricks/account_setting_v2.py +46 -83
- pulumi_databricks/alert_v2.py +168 -134
- pulumi_databricks/app.py +153 -0
- pulumi_databricks/apps_settings_custom_template.py +75 -52
- pulumi_databricks/budget_policy.py +6 -2
- pulumi_databricks/catalog.py +65 -23
- pulumi_databricks/cluster.py +47 -168
- pulumi_databricks/cluster_policy.py +120 -0
- pulumi_databricks/config/__init__.pyi +4 -0
- pulumi_databricks/config/vars.py +8 -0
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +9 -52
- pulumi_databricks/database_instance.py +271 -120
- pulumi_databricks/database_synced_database_table.py +239 -52
- pulumi_databricks/entitlements.py +21 -21
- pulumi_databricks/entity_tag_assignment.py +83 -52
- pulumi_databricks/external_location.py +131 -7
- pulumi_databricks/external_metadata.py +16 -59
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/file.py +2 -2
- pulumi_databricks/get_account_federation_policies.py +22 -3
- pulumi_databricks/get_account_federation_policy.py +12 -27
- pulumi_databricks/get_account_network_policies.py +4 -0
- pulumi_databricks/get_account_network_policy.py +9 -18
- pulumi_databricks/get_account_setting_v2.py +36 -141
- pulumi_databricks/get_alert_v2.py +41 -107
- pulumi_databricks/get_alerts_v2.py +29 -31
- pulumi_databricks/get_app.py +21 -5
- pulumi_databricks/get_apps.py +22 -6
- pulumi_databricks/get_apps_settings_custom_template.py +11 -55
- pulumi_databricks/get_apps_settings_custom_templates.py +25 -21
- pulumi_databricks/get_aws_assume_role_policy.py +14 -14
- pulumi_databricks/get_aws_bucket_policy.py +10 -10
- pulumi_databricks/get_aws_unity_catalog_assume_role_policy.py +10 -10
- pulumi_databricks/get_aws_unity_catalog_policy.py +10 -10
- pulumi_databricks/get_budget_policies.py +70 -6
- pulumi_databricks/get_budget_policy.py +9 -32
- pulumi_databricks/get_catalog.py +21 -4
- pulumi_databricks/get_catalogs.py +23 -4
- pulumi_databricks/get_cluster.py +75 -4
- pulumi_databricks/get_cluster_policy.py +23 -4
- pulumi_databricks/get_clusters.py +21 -4
- pulumi_databricks/get_current_config.py +4 -4
- pulumi_databricks/get_current_metastore.py +21 -4
- pulumi_databricks/get_dashboards.py +20 -4
- pulumi_databricks/get_data_quality_monitor.py +210 -0
- pulumi_databricks/get_data_quality_monitors.py +143 -0
- pulumi_databricks/get_data_quality_refresh.py +270 -0
- pulumi_databricks/get_data_quality_refreshes.py +207 -0
- pulumi_databricks/get_database_database_catalog.py +10 -41
- pulumi_databricks/get_database_database_catalogs.py +37 -18
- pulumi_databricks/get_database_instance.py +93 -99
- pulumi_databricks/get_database_instances.py +20 -16
- pulumi_databricks/get_database_synced_database_table.py +11 -49
- pulumi_databricks/get_database_synced_database_tables.py +42 -23
- pulumi_databricks/get_directory.py +20 -1
- pulumi_databricks/get_entity_tag_assignment.py +63 -30
- pulumi_databricks/get_entity_tag_assignments.py +69 -23
- pulumi_databricks/get_external_location.py +21 -4
- pulumi_databricks/get_external_locations.py +23 -4
- pulumi_databricks/get_external_metadata.py +18 -73
- pulumi_databricks/get_external_metadatas.py +22 -16
- pulumi_databricks/get_feature_engineering_feature.py +179 -0
- pulumi_databricks/get_feature_engineering_features.py +103 -0
- pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
- pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
- pulumi_databricks/get_functions.py +16 -1
- pulumi_databricks/get_instance_profiles.py +21 -4
- pulumi_databricks/get_jobs.py +23 -4
- pulumi_databricks/get_materialized_features_feature_tag.py +7 -32
- pulumi_databricks/get_materialized_features_feature_tags.py +50 -18
- pulumi_databricks/get_metastore.py +6 -6
- pulumi_databricks/get_mlflow_experiment.py +18 -1
- pulumi_databricks/get_mlflow_model.py +18 -1
- pulumi_databricks/get_mlflow_models.py +23 -4
- pulumi_databricks/get_node_type.py +42 -5
- pulumi_databricks/get_notebook.py +20 -1
- pulumi_databricks/get_notification_destinations.py +17 -1
- pulumi_databricks/get_online_store.py +11 -38
- pulumi_databricks/get_online_stores.py +20 -18
- pulumi_databricks/get_pipelines.py +23 -4
- pulumi_databricks/get_policy_info.py +21 -109
- pulumi_databricks/get_policy_infos.py +50 -25
- pulumi_databricks/get_quality_monitor_v2.py +8 -21
- pulumi_databricks/get_quality_monitors_v2.py +23 -25
- pulumi_databricks/get_registered_model.py +19 -4
- pulumi_databricks/get_registered_model_versions.py +19 -4
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +18 -1
- pulumi_databricks/get_schemas.py +23 -4
- pulumi_databricks/get_service_principal_federation_policies.py +23 -4
- pulumi_databricks/get_service_principal_federation_policy.py +15 -24
- pulumi_databricks/get_service_principals.py +64 -0
- pulumi_databricks/get_serving_endpoints.py +19 -4
- pulumi_databricks/get_share.py +117 -18
- pulumi_databricks/get_shares.py +22 -3
- pulumi_databricks/get_spark_version.py +20 -1
- pulumi_databricks/get_sql_warehouse.py +16 -1
- pulumi_databricks/get_sql_warehouses.py +20 -1
- pulumi_databricks/get_storage_credential.py +18 -1
- pulumi_databricks/get_storage_credentials.py +23 -4
- pulumi_databricks/get_table.py +18 -1
- pulumi_databricks/get_tables.py +20 -1
- pulumi_databricks/get_tag_policies.py +55 -23
- pulumi_databricks/get_tag_policy.py +60 -40
- pulumi_databricks/get_views.py +20 -1
- pulumi_databricks/get_volume.py +18 -1
- pulumi_databricks/get_volumes.py +20 -1
- pulumi_databricks/get_workspace_network_option.py +8 -16
- pulumi_databricks/get_workspace_setting_v2.py +41 -163
- pulumi_databricks/get_zones.py +20 -1
- pulumi_databricks/git_credential.py +54 -7
- pulumi_databricks/group.py +21 -21
- pulumi_databricks/instance_profile.py +0 -182
- pulumi_databricks/job.py +47 -0
- pulumi_databricks/library.py +165 -0
- pulumi_databricks/materialized_features_feature_tag.py +9 -52
- pulumi_databricks/metastore.py +81 -7
- pulumi_databricks/metastore_data_access.py +48 -0
- pulumi_databricks/mlflow_webhook.py +4 -4
- pulumi_databricks/mws_credentials.py +10 -10
- pulumi_databricks/mws_customer_managed_keys.py +0 -288
- pulumi_databricks/mws_log_delivery.py +146 -0
- pulumi_databricks/mws_storage_configurations.py +16 -16
- pulumi_databricks/mws_vpc_endpoint.py +56 -56
- pulumi_databricks/mws_workspaces.py +146 -65
- pulumi_databricks/notebook.py +49 -0
- pulumi_databricks/online_store.py +9 -52
- pulumi_databricks/outputs.py +11885 -13474
- pulumi_databricks/permission_assignment.py +299 -8
- pulumi_databricks/permissions.py +6 -6
- pulumi_databricks/pipeline.py +37 -3
- pulumi_databricks/policy_info.py +9 -52
- pulumi_databricks/provider.py +36 -1
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +47 -0
- pulumi_databricks/quality_monitor_v2.py +9 -52
- pulumi_databricks/recipient.py +74 -0
- pulumi_databricks/registered_model.py +308 -36
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/schema.py +7 -7
- pulumi_databricks/service_principal_federation_policy.py +48 -16
- pulumi_databricks/share.py +71 -84
- pulumi_databricks/sql_table.py +42 -14
- pulumi_databricks/storage_credential.py +15 -2
- pulumi_databricks/tag_policy.py +111 -54
- pulumi_databricks/user.py +21 -21
- pulumi_databricks/volume.py +7 -7
- pulumi_databricks/workspace_binding.py +0 -48
- pulumi_databricks/workspace_network_option.py +6 -2
- pulumi_databricks/workspace_setting_v2.py +49 -133
- {pulumi_databricks-1.77.0a1760375482.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/METADATA +1 -1
- pulumi_databricks-1.79.0a1762839813.dist-info/RECORD +250 -0
- pulumi_databricks/clean_room_asset.py +0 -938
- pulumi_databricks/clean_room_auto_approval_rule.py +0 -473
- pulumi_databricks/clean_rooms_clean_room.py +0 -569
- pulumi_databricks/get_clean_room_asset.py +0 -416
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_asset.py +0 -392
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_assets.py +0 -121
- pulumi_databricks/get_clean_room_assets.py +0 -146
- pulumi_databricks/get_clean_room_auto_approval_rule.py +0 -217
- pulumi_databricks/get_clean_room_auto_approval_rules.py +0 -101
- pulumi_databricks/get_clean_rooms_clean_room.py +0 -289
- pulumi_databricks/get_clean_rooms_clean_rooms.py +0 -125
- pulumi_databricks/get_recipient_federation_policies.py +0 -101
- pulumi_databricks/get_recipient_federation_policy.py +0 -182
- pulumi_databricks/recipient_federation_policy.py +0 -393
- pulumi_databricks-1.77.0a1760375482.dist-info/RECORD +0 -250
- {pulumi_databricks-1.77.0a1760375482.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.77.0a1760375482.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/top_level.txt +0 -0
|
@@ -32,12 +32,14 @@ class MwsWorkspacesArgs:
|
|
|
32
32
|
custom_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
33
33
|
customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
34
|
deployment_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
|
+
expected_workspace_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
36
|
external_customer_info: Optional[pulumi.Input['MwsWorkspacesExternalCustomerInfoArgs']] = None,
|
|
36
37
|
gcp_managed_network_config: Optional[pulumi.Input['MwsWorkspacesGcpManagedNetworkConfigArgs']] = None,
|
|
37
38
|
gke_config: Optional[pulumi.Input['MwsWorkspacesGkeConfigArgs']] = None,
|
|
38
39
|
is_no_public_ip_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
39
40
|
location: Optional[pulumi.Input[_builtins.str]] = None,
|
|
40
41
|
managed_services_customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
42
|
+
network_connectivity_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
41
43
|
network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
42
44
|
pricing_tier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
43
45
|
private_access_settings_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -55,12 +57,13 @@ class MwsWorkspacesArgs:
|
|
|
55
57
|
:param pulumi.Input[_builtins.str] aws_region: region of VPC.
|
|
56
58
|
:param pulumi.Input['MwsWorkspacesCloudResourceContainerArgs'] cloud_resource_container: A block that specifies GCP workspace configurations, consisting of following blocks:
|
|
57
59
|
:param pulumi.Input[_builtins.str] compute_mode: The compute mode for the workspace. When unset, a classic workspace is created, and both `credentials_id` and `storage_configuration_id` must be specified. When set to `SERVERLESS`, the resulting workspace is a serverless workspace, and `credentials_id` and `storage_configuration_id` must not be set. The only allowed value for this is `SERVERLESS`. Changing this field requires recreation of the workspace.
|
|
58
|
-
|
|
59
|
-
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
60
60
|
:param pulumi.Input[_builtins.int] creation_time: (Integer) time when workspace was created
|
|
61
61
|
:param pulumi.Input[_builtins.str] credentials_id: `credentials_id` from credentials. This must not be specified when `compute_mode` is set to `SERVERLESS`.
|
|
62
62
|
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_tags: The custom tags key-value pairing that is attached to this workspace. These tags will be applied to clusters automatically in addition to any `default_tags` or `custom_tags` on a cluster level. Please note it can take up to an hour for custom_tags to be set due to scheduling on Control Plane. After custom tags are applied, they can be modified however they can never be completely removed.
|
|
63
63
|
:param pulumi.Input[_builtins.str] deployment_name: part of URL as in `https://<prefix>-<deployment-name>.cloud.databricks.com`. Deployment name cannot be used until a deployment name prefix is defined. Please contact your Databricks representative. Once a new deployment prefix is added/updated, it only will affect the new workspaces created.
|
|
64
|
+
:param pulumi.Input[_builtins.str] expected_workspace_status: The expected status of the workspace. When unset, it defaults to `RUNNING`. When set to `PROVISIONING`, workspace provisioning will pause and not enter `RUNNING` status. The only allowed values for this is `RUNNING` and `PROVISIONING`.
|
|
65
|
+
|
|
66
|
+
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
64
67
|
:param pulumi.Input[_builtins.str] location: region of the subnet.
|
|
65
68
|
:param pulumi.Input[_builtins.str] managed_services_customer_managed_key_id: `customer_managed_key_id` from customer managed keys with `use_cases` set to `MANAGED_SERVICES`. This is used to encrypt the workspace's notebook and secret data in the control plane.
|
|
66
69
|
:param pulumi.Input[_builtins.str] network_id: `network_id` from networks.
|
|
@@ -96,13 +99,15 @@ class MwsWorkspacesArgs:
|
|
|
96
99
|
pulumi.set(__self__, "customer_managed_key_id", customer_managed_key_id)
|
|
97
100
|
if deployment_name is not None:
|
|
98
101
|
pulumi.set(__self__, "deployment_name", deployment_name)
|
|
102
|
+
if expected_workspace_status is not None:
|
|
103
|
+
pulumi.set(__self__, "expected_workspace_status", expected_workspace_status)
|
|
99
104
|
if external_customer_info is not None:
|
|
100
105
|
pulumi.set(__self__, "external_customer_info", external_customer_info)
|
|
101
106
|
if gcp_managed_network_config is not None:
|
|
102
107
|
pulumi.set(__self__, "gcp_managed_network_config", gcp_managed_network_config)
|
|
103
108
|
if gke_config is not None:
|
|
104
|
-
warnings.warn("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.
|
|
105
|
-
pulumi.log.warn("""gke_config is deprecated: gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.
|
|
109
|
+
warnings.warn("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.97.0/docs/guides/gcp-workspace#creating-a-databricks-workspace""", DeprecationWarning)
|
|
110
|
+
pulumi.log.warn("""gke_config is deprecated: gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.97.0/docs/guides/gcp-workspace#creating-a-databricks-workspace""")
|
|
106
111
|
if gke_config is not None:
|
|
107
112
|
pulumi.set(__self__, "gke_config", gke_config)
|
|
108
113
|
if is_no_public_ip_enabled is not None:
|
|
@@ -111,6 +116,8 @@ class MwsWorkspacesArgs:
|
|
|
111
116
|
pulumi.set(__self__, "location", location)
|
|
112
117
|
if managed_services_customer_managed_key_id is not None:
|
|
113
118
|
pulumi.set(__self__, "managed_services_customer_managed_key_id", managed_services_customer_managed_key_id)
|
|
119
|
+
if network_connectivity_config_id is not None:
|
|
120
|
+
pulumi.set(__self__, "network_connectivity_config_id", network_connectivity_config_id)
|
|
114
121
|
if network_id is not None:
|
|
115
122
|
pulumi.set(__self__, "network_id", network_id)
|
|
116
123
|
if pricing_tier is not None:
|
|
@@ -194,8 +201,6 @@ class MwsWorkspacesArgs:
|
|
|
194
201
|
def compute_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
195
202
|
"""
|
|
196
203
|
The compute mode for the workspace. When unset, a classic workspace is created, and both `credentials_id` and `storage_configuration_id` must be specified. When set to `SERVERLESS`, the resulting workspace is a serverless workspace, and `credentials_id` and `storage_configuration_id` must not be set. The only allowed value for this is `SERVERLESS`. Changing this field requires recreation of the workspace.
|
|
197
|
-
|
|
198
|
-
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
199
204
|
"""
|
|
200
205
|
return pulumi.get(self, "compute_mode")
|
|
201
206
|
|
|
@@ -261,6 +266,20 @@ class MwsWorkspacesArgs:
|
|
|
261
266
|
def deployment_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
262
267
|
pulumi.set(self, "deployment_name", value)
|
|
263
268
|
|
|
269
|
+
@_builtins.property
|
|
270
|
+
@pulumi.getter(name="expectedWorkspaceStatus")
|
|
271
|
+
def expected_workspace_status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
272
|
+
"""
|
|
273
|
+
The expected status of the workspace. When unset, it defaults to `RUNNING`. When set to `PROVISIONING`, workspace provisioning will pause and not enter `RUNNING` status. The only allowed values for this is `RUNNING` and `PROVISIONING`.
|
|
274
|
+
|
|
275
|
+
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
276
|
+
"""
|
|
277
|
+
return pulumi.get(self, "expected_workspace_status")
|
|
278
|
+
|
|
279
|
+
@expected_workspace_status.setter
|
|
280
|
+
def expected_workspace_status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
281
|
+
pulumi.set(self, "expected_workspace_status", value)
|
|
282
|
+
|
|
264
283
|
@_builtins.property
|
|
265
284
|
@pulumi.getter(name="externalCustomerInfo")
|
|
266
285
|
def external_customer_info(self) -> Optional[pulumi.Input['MwsWorkspacesExternalCustomerInfoArgs']]:
|
|
@@ -281,7 +300,7 @@ class MwsWorkspacesArgs:
|
|
|
281
300
|
|
|
282
301
|
@_builtins.property
|
|
283
302
|
@pulumi.getter(name="gkeConfig")
|
|
284
|
-
@_utilities.deprecated("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.
|
|
303
|
+
@_utilities.deprecated("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.97.0/docs/guides/gcp-workspace#creating-a-databricks-workspace""")
|
|
285
304
|
def gke_config(self) -> Optional[pulumi.Input['MwsWorkspacesGkeConfigArgs']]:
|
|
286
305
|
return pulumi.get(self, "gke_config")
|
|
287
306
|
|
|
@@ -322,6 +341,15 @@ class MwsWorkspacesArgs:
|
|
|
322
341
|
def managed_services_customer_managed_key_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
323
342
|
pulumi.set(self, "managed_services_customer_managed_key_id", value)
|
|
324
343
|
|
|
344
|
+
@_builtins.property
|
|
345
|
+
@pulumi.getter(name="networkConnectivityConfigId")
|
|
346
|
+
def network_connectivity_config_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
347
|
+
return pulumi.get(self, "network_connectivity_config_id")
|
|
348
|
+
|
|
349
|
+
@network_connectivity_config_id.setter
|
|
350
|
+
def network_connectivity_config_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
351
|
+
pulumi.set(self, "network_connectivity_config_id", value)
|
|
352
|
+
|
|
325
353
|
@_builtins.property
|
|
326
354
|
@pulumi.getter(name="networkId")
|
|
327
355
|
def network_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -454,6 +482,7 @@ class _MwsWorkspacesState:
|
|
|
454
482
|
customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
455
483
|
deployment_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
456
484
|
effective_compute_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
|
485
|
+
expected_workspace_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
457
486
|
external_customer_info: Optional[pulumi.Input['MwsWorkspacesExternalCustomerInfoArgs']] = None,
|
|
458
487
|
gcp_managed_network_config: Optional[pulumi.Input['MwsWorkspacesGcpManagedNetworkConfigArgs']] = None,
|
|
459
488
|
gcp_workspace_sa: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -461,6 +490,7 @@ class _MwsWorkspacesState:
|
|
|
461
490
|
is_no_public_ip_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
462
491
|
location: Optional[pulumi.Input[_builtins.str]] = None,
|
|
463
492
|
managed_services_customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
493
|
+
network_connectivity_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
464
494
|
network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
465
495
|
pricing_tier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
466
496
|
private_access_settings_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -478,13 +508,14 @@ class _MwsWorkspacesState:
|
|
|
478
508
|
:param pulumi.Input[_builtins.str] aws_region: region of VPC.
|
|
479
509
|
:param pulumi.Input['MwsWorkspacesCloudResourceContainerArgs'] cloud_resource_container: A block that specifies GCP workspace configurations, consisting of following blocks:
|
|
480
510
|
:param pulumi.Input[_builtins.str] compute_mode: The compute mode for the workspace. When unset, a classic workspace is created, and both `credentials_id` and `storage_configuration_id` must be specified. When set to `SERVERLESS`, the resulting workspace is a serverless workspace, and `credentials_id` and `storage_configuration_id` must not be set. The only allowed value for this is `SERVERLESS`. Changing this field requires recreation of the workspace.
|
|
481
|
-
|
|
482
|
-
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
483
511
|
:param pulumi.Input[_builtins.int] creation_time: (Integer) time when workspace was created
|
|
484
512
|
:param pulumi.Input[_builtins.str] credentials_id: `credentials_id` from credentials. This must not be specified when `compute_mode` is set to `SERVERLESS`.
|
|
485
513
|
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_tags: The custom tags key-value pairing that is attached to this workspace. These tags will be applied to clusters automatically in addition to any `default_tags` or `custom_tags` on a cluster level. Please note it can take up to an hour for custom_tags to be set due to scheduling on Control Plane. After custom tags are applied, they can be modified however they can never be completely removed.
|
|
486
514
|
:param pulumi.Input[_builtins.str] deployment_name: part of URL as in `https://<prefix>-<deployment-name>.cloud.databricks.com`. Deployment name cannot be used until a deployment name prefix is defined. Please contact your Databricks representative. Once a new deployment prefix is added/updated, it only will affect the new workspaces created.
|
|
487
515
|
:param pulumi.Input[_builtins.str] effective_compute_mode: (String) The effective compute mode for the workspace. This is either `SERVERLESS` for serverless workspaces or `HYBRID` for classic workspaces.
|
|
516
|
+
:param pulumi.Input[_builtins.str] expected_workspace_status: The expected status of the workspace. When unset, it defaults to `RUNNING`. When set to `PROVISIONING`, workspace provisioning will pause and not enter `RUNNING` status. The only allowed values for this is `RUNNING` and `PROVISIONING`.
|
|
517
|
+
|
|
518
|
+
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
488
519
|
:param pulumi.Input[_builtins.str] gcp_workspace_sa: (String, GCP only) identifier of a service account created for the workspace in form of `db-<workspace-id>@prod-gcp-<region>.iam.gserviceaccount.com`
|
|
489
520
|
:param pulumi.Input[_builtins.str] location: region of the subnet.
|
|
490
521
|
:param pulumi.Input[_builtins.str] managed_services_customer_managed_key_id: `customer_managed_key_id` from customer managed keys with `use_cases` set to `MANAGED_SERVICES`. This is used to encrypt the workspace's notebook and secret data in the control plane.
|
|
@@ -524,6 +555,8 @@ class _MwsWorkspacesState:
|
|
|
524
555
|
pulumi.set(__self__, "deployment_name", deployment_name)
|
|
525
556
|
if effective_compute_mode is not None:
|
|
526
557
|
pulumi.set(__self__, "effective_compute_mode", effective_compute_mode)
|
|
558
|
+
if expected_workspace_status is not None:
|
|
559
|
+
pulumi.set(__self__, "expected_workspace_status", expected_workspace_status)
|
|
527
560
|
if external_customer_info is not None:
|
|
528
561
|
pulumi.set(__self__, "external_customer_info", external_customer_info)
|
|
529
562
|
if gcp_managed_network_config is not None:
|
|
@@ -531,8 +564,8 @@ class _MwsWorkspacesState:
|
|
|
531
564
|
if gcp_workspace_sa is not None:
|
|
532
565
|
pulumi.set(__self__, "gcp_workspace_sa", gcp_workspace_sa)
|
|
533
566
|
if gke_config is not None:
|
|
534
|
-
warnings.warn("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.
|
|
535
|
-
pulumi.log.warn("""gke_config is deprecated: gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.
|
|
567
|
+
warnings.warn("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.97.0/docs/guides/gcp-workspace#creating-a-databricks-workspace""", DeprecationWarning)
|
|
568
|
+
pulumi.log.warn("""gke_config is deprecated: gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.97.0/docs/guides/gcp-workspace#creating-a-databricks-workspace""")
|
|
536
569
|
if gke_config is not None:
|
|
537
570
|
pulumi.set(__self__, "gke_config", gke_config)
|
|
538
571
|
if is_no_public_ip_enabled is not None:
|
|
@@ -541,6 +574,8 @@ class _MwsWorkspacesState:
|
|
|
541
574
|
pulumi.set(__self__, "location", location)
|
|
542
575
|
if managed_services_customer_managed_key_id is not None:
|
|
543
576
|
pulumi.set(__self__, "managed_services_customer_managed_key_id", managed_services_customer_managed_key_id)
|
|
577
|
+
if network_connectivity_config_id is not None:
|
|
578
|
+
pulumi.set(__self__, "network_connectivity_config_id", network_connectivity_config_id)
|
|
544
579
|
if network_id is not None:
|
|
545
580
|
pulumi.set(__self__, "network_id", network_id)
|
|
546
581
|
if pricing_tier is not None:
|
|
@@ -614,8 +649,6 @@ class _MwsWorkspacesState:
|
|
|
614
649
|
def compute_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
615
650
|
"""
|
|
616
651
|
The compute mode for the workspace. When unset, a classic workspace is created, and both `credentials_id` and `storage_configuration_id` must be specified. When set to `SERVERLESS`, the resulting workspace is a serverless workspace, and `credentials_id` and `storage_configuration_id` must not be set. The only allowed value for this is `SERVERLESS`. Changing this field requires recreation of the workspace.
|
|
617
|
-
|
|
618
|
-
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
619
652
|
"""
|
|
620
653
|
return pulumi.get(self, "compute_mode")
|
|
621
654
|
|
|
@@ -693,6 +726,20 @@ class _MwsWorkspacesState:
|
|
|
693
726
|
def effective_compute_mode(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
694
727
|
pulumi.set(self, "effective_compute_mode", value)
|
|
695
728
|
|
|
729
|
+
@_builtins.property
|
|
730
|
+
@pulumi.getter(name="expectedWorkspaceStatus")
|
|
731
|
+
def expected_workspace_status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
732
|
+
"""
|
|
733
|
+
The expected status of the workspace. When unset, it defaults to `RUNNING`. When set to `PROVISIONING`, workspace provisioning will pause and not enter `RUNNING` status. The only allowed values for this is `RUNNING` and `PROVISIONING`.
|
|
734
|
+
|
|
735
|
+
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
736
|
+
"""
|
|
737
|
+
return pulumi.get(self, "expected_workspace_status")
|
|
738
|
+
|
|
739
|
+
@expected_workspace_status.setter
|
|
740
|
+
def expected_workspace_status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
741
|
+
pulumi.set(self, "expected_workspace_status", value)
|
|
742
|
+
|
|
696
743
|
@_builtins.property
|
|
697
744
|
@pulumi.getter(name="externalCustomerInfo")
|
|
698
745
|
def external_customer_info(self) -> Optional[pulumi.Input['MwsWorkspacesExternalCustomerInfoArgs']]:
|
|
@@ -725,7 +772,7 @@ class _MwsWorkspacesState:
|
|
|
725
772
|
|
|
726
773
|
@_builtins.property
|
|
727
774
|
@pulumi.getter(name="gkeConfig")
|
|
728
|
-
@_utilities.deprecated("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.
|
|
775
|
+
@_utilities.deprecated("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.97.0/docs/guides/gcp-workspace#creating-a-databricks-workspace""")
|
|
729
776
|
def gke_config(self) -> Optional[pulumi.Input['MwsWorkspacesGkeConfigArgs']]:
|
|
730
777
|
return pulumi.get(self, "gke_config")
|
|
731
778
|
|
|
@@ -766,6 +813,15 @@ class _MwsWorkspacesState:
|
|
|
766
813
|
def managed_services_customer_managed_key_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
767
814
|
pulumi.set(self, "managed_services_customer_managed_key_id", value)
|
|
768
815
|
|
|
816
|
+
@_builtins.property
|
|
817
|
+
@pulumi.getter(name="networkConnectivityConfigId")
|
|
818
|
+
def network_connectivity_config_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
819
|
+
return pulumi.get(self, "network_connectivity_config_id")
|
|
820
|
+
|
|
821
|
+
@network_connectivity_config_id.setter
|
|
822
|
+
def network_connectivity_config_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
823
|
+
pulumi.set(self, "network_connectivity_config_id", value)
|
|
824
|
+
|
|
769
825
|
@_builtins.property
|
|
770
826
|
@pulumi.getter(name="networkId")
|
|
771
827
|
def network_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -912,12 +968,14 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
912
968
|
custom_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
913
969
|
customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
914
970
|
deployment_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
971
|
+
expected_workspace_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
915
972
|
external_customer_info: Optional[pulumi.Input[Union['MwsWorkspacesExternalCustomerInfoArgs', 'MwsWorkspacesExternalCustomerInfoArgsDict']]] = None,
|
|
916
973
|
gcp_managed_network_config: Optional[pulumi.Input[Union['MwsWorkspacesGcpManagedNetworkConfigArgs', 'MwsWorkspacesGcpManagedNetworkConfigArgsDict']]] = None,
|
|
917
974
|
gke_config: Optional[pulumi.Input[Union['MwsWorkspacesGkeConfigArgs', 'MwsWorkspacesGkeConfigArgsDict']]] = None,
|
|
918
975
|
is_no_public_ip_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
919
976
|
location: Optional[pulumi.Input[_builtins.str]] = None,
|
|
920
977
|
managed_services_customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
978
|
+
network_connectivity_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
921
979
|
network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
922
980
|
pricing_tier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
923
981
|
private_access_settings_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -1024,52 +1082,52 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1024
1082
|
length=6)
|
|
1025
1083
|
prefix = f"dltp{naming['result']}"
|
|
1026
1084
|
this = databricks.get_aws_assume_role_policy(external_id=databricks_account_id)
|
|
1027
|
-
cross_account_role = aws.
|
|
1028
|
-
name=f
|
|
1085
|
+
cross_account_role = aws.index.IamRole("cross_account_role",
|
|
1086
|
+
name=f{prefix}-crossaccount,
|
|
1029
1087
|
assume_role_policy=this.json,
|
|
1030
1088
|
tags=tags)
|
|
1031
1089
|
this_get_aws_cross_account_policy = databricks.get_aws_cross_account_policy()
|
|
1032
|
-
|
|
1033
|
-
name=f
|
|
1090
|
+
this_iam_role_policy = aws.index.IamRolePolicy("this",
|
|
1091
|
+
name=f{prefix}-policy,
|
|
1034
1092
|
role=cross_account_role.id,
|
|
1035
1093
|
policy=this_get_aws_cross_account_policy.json)
|
|
1036
1094
|
this_mws_credentials = databricks.MwsCredentials("this",
|
|
1037
1095
|
account_id=databricks_account_id,
|
|
1038
1096
|
credentials_name=f"{prefix}-creds",
|
|
1039
|
-
role_arn=cross_account_role
|
|
1040
|
-
root_storage_bucket = aws.
|
|
1041
|
-
bucket=f
|
|
1042
|
-
acl=
|
|
1097
|
+
role_arn=cross_account_role["arn"])
|
|
1098
|
+
root_storage_bucket = aws.index.S3Bucket("root_storage_bucket",
|
|
1099
|
+
bucket=f{prefix}-rootbucket,
|
|
1100
|
+
acl=private,
|
|
1043
1101
|
force_destroy=True,
|
|
1044
1102
|
tags=tags)
|
|
1045
|
-
root_versioning = aws.
|
|
1103
|
+
root_versioning = aws.index.S3BucketVersioning("root_versioning",
|
|
1046
1104
|
bucket=root_storage_bucket.id,
|
|
1047
|
-
versioning_configuration={
|
|
1048
|
-
|
|
1049
|
-
})
|
|
1050
|
-
|
|
1105
|
+
versioning_configuration=[{
|
|
1106
|
+
status: Disabled,
|
|
1107
|
+
}])
|
|
1108
|
+
root_storage_bucket_s3_bucket_server_side_encryption_configuration = aws.index.S3BucketServerSideEncryptionConfiguration("root_storage_bucket",
|
|
1051
1109
|
bucket=root_storage_bucket.bucket,
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
},
|
|
1110
|
+
rule=[{
|
|
1111
|
+
applyServerSideEncryptionByDefault: [{
|
|
1112
|
+
sseAlgorithm: AES256,
|
|
1113
|
+
}],
|
|
1056
1114
|
}])
|
|
1057
|
-
|
|
1115
|
+
root_storage_bucket_s3_bucket_public_access_block = aws.index.S3BucketPublicAccessBlock("root_storage_bucket",
|
|
1058
1116
|
bucket=root_storage_bucket.id,
|
|
1059
1117
|
block_public_acls=True,
|
|
1060
1118
|
block_public_policy=True,
|
|
1061
1119
|
ignore_public_acls=True,
|
|
1062
1120
|
restrict_public_buckets=True,
|
|
1063
1121
|
opts = pulumi.ResourceOptions(depends_on=[root_storage_bucket]))
|
|
1064
|
-
this_get_aws_bucket_policy = databricks.
|
|
1065
|
-
root_bucket_policy = aws.
|
|
1122
|
+
this_get_aws_bucket_policy = databricks.get_aws_bucket_policy(bucket=root_storage_bucket["bucket"])
|
|
1123
|
+
root_bucket_policy = aws.index.S3BucketPolicy("root_bucket_policy",
|
|
1066
1124
|
bucket=root_storage_bucket.id,
|
|
1067
1125
|
policy=this_get_aws_bucket_policy.json,
|
|
1068
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
|
1126
|
+
opts = pulumi.ResourceOptions(depends_on=[root_storage_bucket_s3_bucket_public_access_block]))
|
|
1069
1127
|
this_mws_storage_configurations = databricks.MwsStorageConfigurations("this",
|
|
1070
1128
|
account_id=databricks_account_id,
|
|
1071
1129
|
storage_configuration_name=f"{prefix}-storage",
|
|
1072
|
-
bucket_name=root_storage_bucket
|
|
1130
|
+
bucket_name=root_storage_bucket["bucket"])
|
|
1073
1131
|
this_mws_workspaces = databricks.MwsWorkspaces("this",
|
|
1074
1132
|
account_id=databricks_account_id,
|
|
1075
1133
|
workspace_name=prefix,
|
|
@@ -1165,12 +1223,13 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1165
1223
|
:param pulumi.Input[_builtins.str] aws_region: region of VPC.
|
|
1166
1224
|
:param pulumi.Input[Union['MwsWorkspacesCloudResourceContainerArgs', 'MwsWorkspacesCloudResourceContainerArgsDict']] cloud_resource_container: A block that specifies GCP workspace configurations, consisting of following blocks:
|
|
1167
1225
|
:param pulumi.Input[_builtins.str] compute_mode: The compute mode for the workspace. When unset, a classic workspace is created, and both `credentials_id` and `storage_configuration_id` must be specified. When set to `SERVERLESS`, the resulting workspace is a serverless workspace, and `credentials_id` and `storage_configuration_id` must not be set. The only allowed value for this is `SERVERLESS`. Changing this field requires recreation of the workspace.
|
|
1168
|
-
|
|
1169
|
-
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
1170
1226
|
:param pulumi.Input[_builtins.int] creation_time: (Integer) time when workspace was created
|
|
1171
1227
|
:param pulumi.Input[_builtins.str] credentials_id: `credentials_id` from credentials. This must not be specified when `compute_mode` is set to `SERVERLESS`.
|
|
1172
1228
|
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_tags: The custom tags key-value pairing that is attached to this workspace. These tags will be applied to clusters automatically in addition to any `default_tags` or `custom_tags` on a cluster level. Please note it can take up to an hour for custom_tags to be set due to scheduling on Control Plane. After custom tags are applied, they can be modified however they can never be completely removed.
|
|
1173
1229
|
:param pulumi.Input[_builtins.str] deployment_name: part of URL as in `https://<prefix>-<deployment-name>.cloud.databricks.com`. Deployment name cannot be used until a deployment name prefix is defined. Please contact your Databricks representative. Once a new deployment prefix is added/updated, it only will affect the new workspaces created.
|
|
1230
|
+
:param pulumi.Input[_builtins.str] expected_workspace_status: The expected status of the workspace. When unset, it defaults to `RUNNING`. When set to `PROVISIONING`, workspace provisioning will pause and not enter `RUNNING` status. The only allowed values for this is `RUNNING` and `PROVISIONING`.
|
|
1231
|
+
|
|
1232
|
+
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
1174
1233
|
:param pulumi.Input[_builtins.str] location: region of the subnet.
|
|
1175
1234
|
:param pulumi.Input[_builtins.str] managed_services_customer_managed_key_id: `customer_managed_key_id` from customer managed keys with `use_cases` set to `MANAGED_SERVICES`. This is used to encrypt the workspace's notebook and secret data in the control plane.
|
|
1176
1235
|
:param pulumi.Input[_builtins.str] network_id: `network_id` from networks.
|
|
@@ -1284,52 +1343,52 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1284
1343
|
length=6)
|
|
1285
1344
|
prefix = f"dltp{naming['result']}"
|
|
1286
1345
|
this = databricks.get_aws_assume_role_policy(external_id=databricks_account_id)
|
|
1287
|
-
cross_account_role = aws.
|
|
1288
|
-
name=f
|
|
1346
|
+
cross_account_role = aws.index.IamRole("cross_account_role",
|
|
1347
|
+
name=f{prefix}-crossaccount,
|
|
1289
1348
|
assume_role_policy=this.json,
|
|
1290
1349
|
tags=tags)
|
|
1291
1350
|
this_get_aws_cross_account_policy = databricks.get_aws_cross_account_policy()
|
|
1292
|
-
|
|
1293
|
-
name=f
|
|
1351
|
+
this_iam_role_policy = aws.index.IamRolePolicy("this",
|
|
1352
|
+
name=f{prefix}-policy,
|
|
1294
1353
|
role=cross_account_role.id,
|
|
1295
1354
|
policy=this_get_aws_cross_account_policy.json)
|
|
1296
1355
|
this_mws_credentials = databricks.MwsCredentials("this",
|
|
1297
1356
|
account_id=databricks_account_id,
|
|
1298
1357
|
credentials_name=f"{prefix}-creds",
|
|
1299
|
-
role_arn=cross_account_role
|
|
1300
|
-
root_storage_bucket = aws.
|
|
1301
|
-
bucket=f
|
|
1302
|
-
acl=
|
|
1358
|
+
role_arn=cross_account_role["arn"])
|
|
1359
|
+
root_storage_bucket = aws.index.S3Bucket("root_storage_bucket",
|
|
1360
|
+
bucket=f{prefix}-rootbucket,
|
|
1361
|
+
acl=private,
|
|
1303
1362
|
force_destroy=True,
|
|
1304
1363
|
tags=tags)
|
|
1305
|
-
root_versioning = aws.
|
|
1364
|
+
root_versioning = aws.index.S3BucketVersioning("root_versioning",
|
|
1306
1365
|
bucket=root_storage_bucket.id,
|
|
1307
|
-
versioning_configuration={
|
|
1308
|
-
|
|
1309
|
-
})
|
|
1310
|
-
|
|
1366
|
+
versioning_configuration=[{
|
|
1367
|
+
status: Disabled,
|
|
1368
|
+
}])
|
|
1369
|
+
root_storage_bucket_s3_bucket_server_side_encryption_configuration = aws.index.S3BucketServerSideEncryptionConfiguration("root_storage_bucket",
|
|
1311
1370
|
bucket=root_storage_bucket.bucket,
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
},
|
|
1371
|
+
rule=[{
|
|
1372
|
+
applyServerSideEncryptionByDefault: [{
|
|
1373
|
+
sseAlgorithm: AES256,
|
|
1374
|
+
}],
|
|
1316
1375
|
}])
|
|
1317
|
-
|
|
1376
|
+
root_storage_bucket_s3_bucket_public_access_block = aws.index.S3BucketPublicAccessBlock("root_storage_bucket",
|
|
1318
1377
|
bucket=root_storage_bucket.id,
|
|
1319
1378
|
block_public_acls=True,
|
|
1320
1379
|
block_public_policy=True,
|
|
1321
1380
|
ignore_public_acls=True,
|
|
1322
1381
|
restrict_public_buckets=True,
|
|
1323
1382
|
opts = pulumi.ResourceOptions(depends_on=[root_storage_bucket]))
|
|
1324
|
-
this_get_aws_bucket_policy = databricks.
|
|
1325
|
-
root_bucket_policy = aws.
|
|
1383
|
+
this_get_aws_bucket_policy = databricks.get_aws_bucket_policy(bucket=root_storage_bucket["bucket"])
|
|
1384
|
+
root_bucket_policy = aws.index.S3BucketPolicy("root_bucket_policy",
|
|
1326
1385
|
bucket=root_storage_bucket.id,
|
|
1327
1386
|
policy=this_get_aws_bucket_policy.json,
|
|
1328
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
|
1387
|
+
opts = pulumi.ResourceOptions(depends_on=[root_storage_bucket_s3_bucket_public_access_block]))
|
|
1329
1388
|
this_mws_storage_configurations = databricks.MwsStorageConfigurations("this",
|
|
1330
1389
|
account_id=databricks_account_id,
|
|
1331
1390
|
storage_configuration_name=f"{prefix}-storage",
|
|
1332
|
-
bucket_name=root_storage_bucket
|
|
1391
|
+
bucket_name=root_storage_bucket["bucket"])
|
|
1333
1392
|
this_mws_workspaces = databricks.MwsWorkspaces("this",
|
|
1334
1393
|
account_id=databricks_account_id,
|
|
1335
1394
|
workspace_name=prefix,
|
|
@@ -1444,12 +1503,14 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1444
1503
|
custom_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1445
1504
|
customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1446
1505
|
deployment_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1506
|
+
expected_workspace_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1447
1507
|
external_customer_info: Optional[pulumi.Input[Union['MwsWorkspacesExternalCustomerInfoArgs', 'MwsWorkspacesExternalCustomerInfoArgsDict']]] = None,
|
|
1448
1508
|
gcp_managed_network_config: Optional[pulumi.Input[Union['MwsWorkspacesGcpManagedNetworkConfigArgs', 'MwsWorkspacesGcpManagedNetworkConfigArgsDict']]] = None,
|
|
1449
1509
|
gke_config: Optional[pulumi.Input[Union['MwsWorkspacesGkeConfigArgs', 'MwsWorkspacesGkeConfigArgsDict']]] = None,
|
|
1450
1510
|
is_no_public_ip_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1451
1511
|
location: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1452
1512
|
managed_services_customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1513
|
+
network_connectivity_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1453
1514
|
network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1454
1515
|
pricing_tier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1455
1516
|
private_access_settings_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -1482,12 +1543,14 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1482
1543
|
__props__.__dict__["custom_tags"] = custom_tags
|
|
1483
1544
|
__props__.__dict__["customer_managed_key_id"] = customer_managed_key_id
|
|
1484
1545
|
__props__.__dict__["deployment_name"] = deployment_name
|
|
1546
|
+
__props__.__dict__["expected_workspace_status"] = expected_workspace_status
|
|
1485
1547
|
__props__.__dict__["external_customer_info"] = external_customer_info
|
|
1486
1548
|
__props__.__dict__["gcp_managed_network_config"] = gcp_managed_network_config
|
|
1487
1549
|
__props__.__dict__["gke_config"] = gke_config
|
|
1488
1550
|
__props__.__dict__["is_no_public_ip_enabled"] = is_no_public_ip_enabled
|
|
1489
1551
|
__props__.__dict__["location"] = location
|
|
1490
1552
|
__props__.__dict__["managed_services_customer_managed_key_id"] = managed_services_customer_managed_key_id
|
|
1553
|
+
__props__.__dict__["network_connectivity_config_id"] = network_connectivity_config_id
|
|
1491
1554
|
__props__.__dict__["network_id"] = network_id
|
|
1492
1555
|
__props__.__dict__["pricing_tier"] = pricing_tier
|
|
1493
1556
|
__props__.__dict__["private_access_settings_id"] = private_access_settings_id
|
|
@@ -1526,6 +1589,7 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1526
1589
|
customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1527
1590
|
deployment_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1528
1591
|
effective_compute_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1592
|
+
expected_workspace_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1529
1593
|
external_customer_info: Optional[pulumi.Input[Union['MwsWorkspacesExternalCustomerInfoArgs', 'MwsWorkspacesExternalCustomerInfoArgsDict']]] = None,
|
|
1530
1594
|
gcp_managed_network_config: Optional[pulumi.Input[Union['MwsWorkspacesGcpManagedNetworkConfigArgs', 'MwsWorkspacesGcpManagedNetworkConfigArgsDict']]] = None,
|
|
1531
1595
|
gcp_workspace_sa: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -1533,6 +1597,7 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1533
1597
|
is_no_public_ip_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1534
1598
|
location: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1535
1599
|
managed_services_customer_managed_key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1600
|
+
network_connectivity_config_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1536
1601
|
network_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1537
1602
|
pricing_tier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1538
1603
|
private_access_settings_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -1555,13 +1620,14 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1555
1620
|
:param pulumi.Input[_builtins.str] aws_region: region of VPC.
|
|
1556
1621
|
:param pulumi.Input[Union['MwsWorkspacesCloudResourceContainerArgs', 'MwsWorkspacesCloudResourceContainerArgsDict']] cloud_resource_container: A block that specifies GCP workspace configurations, consisting of following blocks:
|
|
1557
1622
|
:param pulumi.Input[_builtins.str] compute_mode: The compute mode for the workspace. When unset, a classic workspace is created, and both `credentials_id` and `storage_configuration_id` must be specified. When set to `SERVERLESS`, the resulting workspace is a serverless workspace, and `credentials_id` and `storage_configuration_id` must not be set. The only allowed value for this is `SERVERLESS`. Changing this field requires recreation of the workspace.
|
|
1558
|
-
|
|
1559
|
-
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
1560
1623
|
:param pulumi.Input[_builtins.int] creation_time: (Integer) time when workspace was created
|
|
1561
1624
|
:param pulumi.Input[_builtins.str] credentials_id: `credentials_id` from credentials. This must not be specified when `compute_mode` is set to `SERVERLESS`.
|
|
1562
1625
|
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_tags: The custom tags key-value pairing that is attached to this workspace. These tags will be applied to clusters automatically in addition to any `default_tags` or `custom_tags` on a cluster level. Please note it can take up to an hour for custom_tags to be set due to scheduling on Control Plane. After custom tags are applied, they can be modified however they can never be completely removed.
|
|
1563
1626
|
:param pulumi.Input[_builtins.str] deployment_name: part of URL as in `https://<prefix>-<deployment-name>.cloud.databricks.com`. Deployment name cannot be used until a deployment name prefix is defined. Please contact your Databricks representative. Once a new deployment prefix is added/updated, it only will affect the new workspaces created.
|
|
1564
1627
|
:param pulumi.Input[_builtins.str] effective_compute_mode: (String) The effective compute mode for the workspace. This is either `SERVERLESS` for serverless workspaces or `HYBRID` for classic workspaces.
|
|
1628
|
+
:param pulumi.Input[_builtins.str] expected_workspace_status: The expected status of the workspace. When unset, it defaults to `RUNNING`. When set to `PROVISIONING`, workspace provisioning will pause and not enter `RUNNING` status. The only allowed values for this is `RUNNING` and `PROVISIONING`.
|
|
1629
|
+
|
|
1630
|
+
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
1565
1631
|
:param pulumi.Input[_builtins.str] gcp_workspace_sa: (String, GCP only) identifier of a service account created for the workspace in form of `db-<workspace-id>@prod-gcp-<region>.iam.gserviceaccount.com`
|
|
1566
1632
|
:param pulumi.Input[_builtins.str] location: region of the subnet.
|
|
1567
1633
|
:param pulumi.Input[_builtins.str] managed_services_customer_managed_key_id: `customer_managed_key_id` from customer managed keys with `use_cases` set to `MANAGED_SERVICES`. This is used to encrypt the workspace's notebook and secret data in the control plane.
|
|
@@ -1591,6 +1657,7 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1591
1657
|
__props__.__dict__["customer_managed_key_id"] = customer_managed_key_id
|
|
1592
1658
|
__props__.__dict__["deployment_name"] = deployment_name
|
|
1593
1659
|
__props__.__dict__["effective_compute_mode"] = effective_compute_mode
|
|
1660
|
+
__props__.__dict__["expected_workspace_status"] = expected_workspace_status
|
|
1594
1661
|
__props__.__dict__["external_customer_info"] = external_customer_info
|
|
1595
1662
|
__props__.__dict__["gcp_managed_network_config"] = gcp_managed_network_config
|
|
1596
1663
|
__props__.__dict__["gcp_workspace_sa"] = gcp_workspace_sa
|
|
@@ -1598,6 +1665,7 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1598
1665
|
__props__.__dict__["is_no_public_ip_enabled"] = is_no_public_ip_enabled
|
|
1599
1666
|
__props__.__dict__["location"] = location
|
|
1600
1667
|
__props__.__dict__["managed_services_customer_managed_key_id"] = managed_services_customer_managed_key_id
|
|
1668
|
+
__props__.__dict__["network_connectivity_config_id"] = network_connectivity_config_id
|
|
1601
1669
|
__props__.__dict__["network_id"] = network_id
|
|
1602
1670
|
__props__.__dict__["pricing_tier"] = pricing_tier
|
|
1603
1671
|
__props__.__dict__["private_access_settings_id"] = private_access_settings_id
|
|
@@ -1645,8 +1713,6 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1645
1713
|
def compute_mode(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1646
1714
|
"""
|
|
1647
1715
|
The compute mode for the workspace. When unset, a classic workspace is created, and both `credentials_id` and `storage_configuration_id` must be specified. When set to `SERVERLESS`, the resulting workspace is a serverless workspace, and `credentials_id` and `storage_configuration_id` must not be set. The only allowed value for this is `SERVERLESS`. Changing this field requires recreation of the workspace.
|
|
1648
|
-
|
|
1649
|
-
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
1650
1716
|
"""
|
|
1651
1717
|
return pulumi.get(self, "compute_mode")
|
|
1652
1718
|
|
|
@@ -1696,6 +1762,16 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1696
1762
|
"""
|
|
1697
1763
|
return pulumi.get(self, "effective_compute_mode")
|
|
1698
1764
|
|
|
1765
|
+
@_builtins.property
|
|
1766
|
+
@pulumi.getter(name="expectedWorkspaceStatus")
|
|
1767
|
+
def expected_workspace_status(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1768
|
+
"""
|
|
1769
|
+
The expected status of the workspace. When unset, it defaults to `RUNNING`. When set to `PROVISIONING`, workspace provisioning will pause and not enter `RUNNING` status. The only allowed values for this is `RUNNING` and `PROVISIONING`.
|
|
1770
|
+
|
|
1771
|
+
> Databricks strongly recommends using OAuth instead of PATs for user account client authentication and authorization due to the improved security
|
|
1772
|
+
"""
|
|
1773
|
+
return pulumi.get(self, "expected_workspace_status")
|
|
1774
|
+
|
|
1699
1775
|
@_builtins.property
|
|
1700
1776
|
@pulumi.getter(name="externalCustomerInfo")
|
|
1701
1777
|
def external_customer_info(self) -> pulumi.Output[Optional['outputs.MwsWorkspacesExternalCustomerInfo']]:
|
|
@@ -1716,7 +1792,7 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1716
1792
|
|
|
1717
1793
|
@_builtins.property
|
|
1718
1794
|
@pulumi.getter(name="gkeConfig")
|
|
1719
|
-
@_utilities.deprecated("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.
|
|
1795
|
+
@_utilities.deprecated("""gke_config is deprecated and will be removed in a future release. For more information, review the documentation at https://registry.terraform.io/providers/databricks/databricks/1.97.0/docs/guides/gcp-workspace#creating-a-databricks-workspace""")
|
|
1720
1796
|
def gke_config(self) -> pulumi.Output[Optional['outputs.MwsWorkspacesGkeConfig']]:
|
|
1721
1797
|
return pulumi.get(self, "gke_config")
|
|
1722
1798
|
|
|
@@ -1741,6 +1817,11 @@ class MwsWorkspaces(pulumi.CustomResource):
|
|
|
1741
1817
|
"""
|
|
1742
1818
|
return pulumi.get(self, "managed_services_customer_managed_key_id")
|
|
1743
1819
|
|
|
1820
|
+
@_builtins.property
|
|
1821
|
+
@pulumi.getter(name="networkConnectivityConfigId")
|
|
1822
|
+
def network_connectivity_config_id(self) -> pulumi.Output[_builtins.str]:
|
|
1823
|
+
return pulumi.get(self, "network_connectivity_config_id")
|
|
1824
|
+
|
|
1744
1825
|
@_builtins.property
|
|
1745
1826
|
@pulumi.getter(name="networkId")
|
|
1746
1827
|
def network_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|