pulumi-databricks 1.74.0a1753335781__py3-none-any.whl → 1.77.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.
- pulumi_databricks/__init__.py +185 -12
- pulumi_databricks/_inputs.py +30467 -20225
- pulumi_databricks/access_control_rule_set.py +28 -29
- pulumi_databricks/account_federation_policy.py +473 -0
- pulumi_databricks/account_network_policy.py +74 -43
- pulumi_databricks/account_setting_v2.py +759 -0
- pulumi_databricks/aibi_dashboard_embedding_access_policy_setting.py +30 -31
- pulumi_databricks/aibi_dashboard_embedding_approved_domains_setting.py +30 -31
- pulumi_databricks/alert.py +185 -186
- pulumi_databricks/alert_v2.py +369 -211
- pulumi_databricks/app.py +315 -209
- pulumi_databricks/apps_settings_custom_template.py +531 -0
- pulumi_databricks/artifact_allowlist.py +72 -73
- pulumi_databricks/automatic_cluster_update_workspace_setting.py +30 -31
- pulumi_databricks/budget.py +84 -85
- pulumi_databricks/budget_policy.py +75 -53
- pulumi_databricks/catalog.py +544 -225
- pulumi_databricks/catalog_workspace_binding.py +82 -83
- pulumi_databricks/cluster.py +561 -683
- pulumi_databricks/cluster_policy.py +115 -116
- pulumi_databricks/compliance_security_profile_workspace_setting.py +30 -31
- pulumi_databricks/config/__init__.py +1 -1
- pulumi_databricks/config/__init__.pyi +3 -2
- pulumi_databricks/config/vars.py +40 -37
- pulumi_databricks/connection.py +346 -211
- pulumi_databricks/credential.py +262 -263
- pulumi_databricks/custom_app_integration.py +175 -176
- pulumi_databricks/dashboard.py +207 -208
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +437 -0
- pulumi_databricks/database_instance.py +938 -137
- pulumi_databricks/database_synced_database_table.py +589 -0
- pulumi_databricks/dbfs_file.py +87 -84
- pulumi_databricks/default_namespace_setting.py +30 -31
- pulumi_databricks/directory.py +61 -62
- pulumi_databricks/disable_legacy_access_setting.py +109 -33
- pulumi_databricks/disable_legacy_dbfs_setting.py +58 -39
- pulumi_databricks/disable_legacy_features_setting.py +62 -37
- pulumi_databricks/enhanced_security_monitoring_workspace_setting.py +30 -31
- pulumi_databricks/entitlements.py +148 -149
- pulumi_databricks/entity_tag_assignment.py +409 -0
- pulumi_databricks/external_location.py +276 -290
- pulumi_databricks/external_metadata.py +726 -0
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/file.py +96 -97
- pulumi_databricks/get_account_federation_policies.py +127 -0
- pulumi_databricks/get_account_federation_policy.py +214 -0
- pulumi_databricks/get_account_network_policies.py +36 -7
- pulumi_databricks/get_account_network_policy.py +33 -29
- pulumi_databricks/get_account_setting_v2.py +331 -0
- pulumi_databricks/get_alert_v2.py +100 -84
- pulumi_databricks/get_alerts_v2.py +35 -17
- pulumi_databricks/get_app.py +31 -20
- pulumi_databricks/get_apps.py +26 -15
- pulumi_databricks/get_apps_settings_custom_template.py +207 -0
- pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
- pulumi_databricks/get_aws_assume_role_policy.py +27 -28
- pulumi_databricks/get_aws_bucket_policy.py +39 -40
- pulumi_databricks/get_aws_cross_account_policy.py +47 -48
- pulumi_databricks/get_aws_unity_catalog_assume_role_policy.py +35 -36
- pulumi_databricks/get_aws_unity_catalog_policy.py +35 -36
- pulumi_databricks/get_budget_policies.py +74 -11
- pulumi_databricks/get_budget_policy.py +43 -39
- pulumi_databricks/get_catalog.py +35 -19
- pulumi_databricks/get_catalogs.py +32 -14
- pulumi_databricks/get_cluster.py +41 -25
- pulumi_databricks/get_cluster_policy.py +72 -54
- pulumi_databricks/get_clusters.py +41 -25
- pulumi_databricks/get_current_config.py +23 -24
- pulumi_databricks/get_current_metastore.py +29 -13
- pulumi_databricks/get_current_user.py +17 -18
- pulumi_databricks/get_dashboards.py +34 -15
- 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 +176 -0
- pulumi_databricks/get_database_database_catalogs.py +120 -0
- pulumi_databricks/get_database_instance.py +274 -50
- pulumi_databricks/get_database_instances.py +35 -11
- pulumi_databricks/get_database_synced_database_table.py +225 -0
- pulumi_databricks/get_database_synced_database_tables.py +120 -0
- pulumi_databricks/get_dbfs_file.py +19 -20
- pulumi_databricks/get_dbfs_file_paths.py +16 -17
- pulumi_databricks/get_directory.py +43 -25
- pulumi_databricks/get_entity_tag_assignment.py +202 -0
- pulumi_databricks/get_entity_tag_assignments.py +187 -0
- pulumi_databricks/get_external_location.py +35 -19
- pulumi_databricks/get_external_locations.py +32 -14
- pulumi_databricks/get_external_metadata.py +292 -0
- pulumi_databricks/get_external_metadatas.py +135 -0
- 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 +38 -24
- pulumi_databricks/get_group.py +85 -86
- pulumi_databricks/get_instance_pool.py +10 -11
- pulumi_databricks/get_instance_profiles.py +25 -9
- pulumi_databricks/get_job.py +22 -23
- pulumi_databricks/get_jobs.py +44 -26
- pulumi_databricks/get_materialized_features_feature_tag.py +102 -0
- pulumi_databricks/get_materialized_features_feature_tags.py +133 -0
- pulumi_databricks/get_metastore.py +28 -29
- pulumi_databricks/get_metastores.py +9 -10
- pulumi_databricks/get_mlflow_experiment.py +62 -46
- pulumi_databricks/get_mlflow_model.py +47 -31
- pulumi_databricks/get_mlflow_models.py +32 -14
- pulumi_databricks/get_mws_credentials.py +9 -10
- pulumi_databricks/get_mws_network_connectivity_config.py +40 -41
- pulumi_databricks/get_mws_network_connectivity_configs.py +15 -16
- pulumi_databricks/get_mws_workspaces.py +5 -6
- pulumi_databricks/get_node_type.py +123 -87
- pulumi_databricks/get_notebook.py +37 -38
- pulumi_databricks/get_notebook_paths.py +16 -17
- pulumi_databricks/get_notification_destinations.py +33 -18
- pulumi_databricks/get_online_store.py +36 -27
- pulumi_databricks/get_online_stores.py +33 -13
- pulumi_databricks/get_pipelines.py +49 -31
- pulumi_databricks/get_policy_info.py +338 -0
- pulumi_databricks/get_policy_infos.py +169 -0
- pulumi_databricks/get_quality_monitor_v2.py +21 -18
- pulumi_databricks/get_quality_monitors_v2.py +26 -8
- pulumi_databricks/get_registered_model.py +41 -27
- pulumi_databricks/get_registered_model_versions.py +29 -15
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +32 -16
- pulumi_databricks/get_schemas.py +38 -20
- pulumi_databricks/get_service_principal.py +80 -58
- pulumi_databricks/get_service_principal_federation_policies.py +151 -0
- pulumi_databricks/get_service_principal_federation_policy.py +220 -0
- pulumi_databricks/get_service_principals.py +16 -17
- pulumi_databricks/get_serving_endpoints.py +23 -9
- pulumi_databricks/get_share.py +130 -32
- pulumi_databricks/get_shares.py +29 -11
- pulumi_databricks/get_spark_version.py +87 -69
- pulumi_databricks/get_sql_warehouse.py +124 -110
- pulumi_databricks/get_sql_warehouses.py +37 -19
- pulumi_databricks/get_storage_credential.py +32 -16
- pulumi_databricks/get_storage_credentials.py +32 -14
- pulumi_databricks/get_table.py +30 -14
- pulumi_databricks/get_tables.py +41 -23
- pulumi_databricks/get_tag_policies.py +139 -0
- pulumi_databricks/get_tag_policy.py +175 -0
- pulumi_databricks/get_user.py +33 -34
- pulumi_databricks/get_views.py +41 -23
- pulumi_databricks/get_volume.py +32 -16
- pulumi_databricks/get_volumes.py +41 -23
- pulumi_databricks/get_workspace_network_option.py +45 -26
- pulumi_databricks/get_workspace_setting_v2.py +331 -0
- pulumi_databricks/get_zones.py +39 -21
- pulumi_databricks/git_credential.py +242 -76
- pulumi_databricks/global_init_script.py +99 -100
- pulumi_databricks/grant.py +215 -212
- pulumi_databricks/grants.py +200 -211
- pulumi_databricks/group.py +176 -177
- pulumi_databricks/group_instance_profile.py +37 -38
- pulumi_databricks/group_member.py +37 -38
- pulumi_databricks/group_role.py +37 -38
- pulumi_databricks/instance_pool.py +168 -169
- pulumi_databricks/instance_profile.py +69 -70
- pulumi_databricks/ip_access_list.py +71 -72
- pulumi_databricks/job.py +426 -346
- pulumi_databricks/lakehouse_monitor.py +199 -200
- pulumi_databricks/library.py +264 -99
- pulumi_databricks/materialized_features_feature_tag.py +213 -0
- pulumi_databricks/metastore.py +254 -255
- pulumi_databricks/metastore_assignment.py +52 -53
- pulumi_databricks/metastore_data_access.py +153 -154
- pulumi_databricks/metastore_provider.py +69 -70
- pulumi_databricks/mlflow_experiment.py +108 -109
- pulumi_databricks/mlflow_model.py +45 -46
- pulumi_databricks/mlflow_webhook.py +75 -76
- pulumi_databricks/model_serving.py +195 -74
- pulumi_databricks/model_serving_provisioned_throughput.py +100 -54
- pulumi_databricks/mount.py +103 -104
- pulumi_databricks/mws_credentials.py +99 -100
- pulumi_databricks/mws_customer_managed_keys.py +75 -76
- pulumi_databricks/mws_log_delivery.py +188 -189
- pulumi_databricks/mws_ncc_binding.py +35 -36
- pulumi_databricks/mws_ncc_private_endpoint_rule.py +312 -289
- pulumi_databricks/mws_network_connectivity_config.py +136 -98
- pulumi_databricks/mws_networks.py +159 -160
- pulumi_databricks/mws_permission_assignment.py +70 -71
- pulumi_databricks/mws_private_access_settings.py +116 -117
- pulumi_databricks/mws_storage_configurations.py +74 -75
- pulumi_databricks/mws_vpc_endpoint.py +149 -150
- pulumi_databricks/mws_workspaces.py +464 -418
- pulumi_databricks/notebook.py +143 -144
- pulumi_databricks/notification_destination.py +38 -39
- pulumi_databricks/obo_token.py +63 -64
- pulumi_databricks/online_store.py +121 -70
- pulumi_databricks/online_table.py +41 -42
- pulumi_databricks/outputs.py +47821 -30802
- pulumi_databricks/permission_assignment.py +298 -57
- pulumi_databricks/permissions.py +523 -362
- pulumi_databricks/pipeline.py +515 -480
- pulumi_databricks/policy_info.py +916 -0
- pulumi_databricks/provider.py +283 -269
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +263 -217
- pulumi_databricks/quality_monitor_v2.py +49 -46
- pulumi_databricks/query.py +227 -228
- pulumi_databricks/recipient.py +208 -209
- pulumi_databricks/registered_model.py +393 -122
- pulumi_databricks/repo.py +117 -118
- pulumi_databricks/restrict_workspace_admins_setting.py +30 -31
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/schema.py +159 -160
- pulumi_databricks/secret.py +72 -73
- pulumi_databricks/secret_acl.py +52 -53
- pulumi_databricks/secret_scope.py +55 -56
- pulumi_databricks/service_principal.py +279 -278
- pulumi_databricks/service_principal_federation_policy.py +469 -0
- pulumi_databricks/service_principal_role.py +35 -36
- pulumi_databricks/service_principal_secret.py +156 -157
- pulumi_databricks/share.py +186 -187
- pulumi_databricks/sql_alert.py +98 -99
- pulumi_databricks/sql_dashboard.py +94 -95
- pulumi_databricks/sql_endpoint.py +298 -266
- pulumi_databricks/sql_global_config.py +103 -104
- pulumi_databricks/sql_permissions.py +121 -122
- pulumi_databricks/sql_query.py +150 -151
- pulumi_databricks/sql_table.py +310 -283
- pulumi_databricks/sql_visualization.py +92 -93
- pulumi_databricks/sql_widget.py +91 -88
- pulumi_databricks/storage_credential.py +236 -184
- pulumi_databricks/system_schema.py +50 -51
- pulumi_databricks/table.py +147 -148
- pulumi_databricks/tag_policy.py +357 -0
- pulumi_databricks/token.py +83 -84
- pulumi_databricks/user.py +284 -285
- pulumi_databricks/user_instance_profile.py +35 -36
- pulumi_databricks/user_role.py +35 -36
- pulumi_databricks/vector_search_endpoint.py +117 -118
- pulumi_databricks/vector_search_index.py +86 -87
- pulumi_databricks/volume.py +129 -130
- pulumi_databricks/workspace_binding.py +82 -131
- pulumi_databricks/workspace_conf.py +18 -19
- pulumi_databricks/workspace_file.py +100 -101
- pulumi_databricks/workspace_network_option.py +89 -40
- pulumi_databricks/workspace_setting_v2.py +759 -0
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
- pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
- pulumi_databricks/get_recipient_federation_policies.py +0 -83
- pulumi_databricks/get_recipient_federation_policy.py +0 -166
- pulumi_databricks/recipient_federation_policy.py +0 -347
- pulumi_databricks-1.74.0a1753335781.dist-info/RECORD +0 -205
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -20,24 +19,24 @@ __all__ = ['WorkspaceNetworkOptionArgs', 'WorkspaceNetworkOption']
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class WorkspaceNetworkOptionArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
network_policy_id: Optional[pulumi.Input[
|
|
24
|
-
workspace_id: Optional[pulumi.Input[
|
|
22
|
+
network_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
23
|
+
workspace_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
25
24
|
"""
|
|
26
25
|
The set of arguments for constructing a WorkspaceNetworkOption resource.
|
|
27
|
-
:param pulumi.Input[
|
|
26
|
+
:param pulumi.Input[_builtins.str] network_policy_id: The network policy ID to apply to the workspace. This controls the network access rules
|
|
28
27
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
29
28
|
linked to one policy at a time. If no policy is explicitly assigned,
|
|
30
29
|
the workspace will use 'default-policy'
|
|
31
|
-
:param pulumi.Input[
|
|
30
|
+
:param pulumi.Input[_builtins.str] workspace_id: The workspace ID
|
|
32
31
|
"""
|
|
33
32
|
if network_policy_id is not None:
|
|
34
33
|
pulumi.set(__self__, "network_policy_id", network_policy_id)
|
|
35
34
|
if workspace_id is not None:
|
|
36
35
|
pulumi.set(__self__, "workspace_id", workspace_id)
|
|
37
36
|
|
|
38
|
-
@property
|
|
37
|
+
@_builtins.property
|
|
39
38
|
@pulumi.getter(name="networkPolicyId")
|
|
40
|
-
def network_policy_id(self) -> Optional[pulumi.Input[
|
|
39
|
+
def network_policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
41
40
|
"""
|
|
42
41
|
The network policy ID to apply to the workspace. This controls the network access rules
|
|
43
42
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
@@ -47,43 +46,43 @@ class WorkspaceNetworkOptionArgs:
|
|
|
47
46
|
return pulumi.get(self, "network_policy_id")
|
|
48
47
|
|
|
49
48
|
@network_policy_id.setter
|
|
50
|
-
def network_policy_id(self, value: Optional[pulumi.Input[
|
|
49
|
+
def network_policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
51
50
|
pulumi.set(self, "network_policy_id", value)
|
|
52
51
|
|
|
53
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
54
53
|
@pulumi.getter(name="workspaceId")
|
|
55
|
-
def workspace_id(self) -> Optional[pulumi.Input[
|
|
54
|
+
def workspace_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
56
55
|
"""
|
|
57
56
|
The workspace ID
|
|
58
57
|
"""
|
|
59
58
|
return pulumi.get(self, "workspace_id")
|
|
60
59
|
|
|
61
60
|
@workspace_id.setter
|
|
62
|
-
def workspace_id(self, value: Optional[pulumi.Input[
|
|
61
|
+
def workspace_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
63
62
|
pulumi.set(self, "workspace_id", value)
|
|
64
63
|
|
|
65
64
|
|
|
66
65
|
@pulumi.input_type
|
|
67
66
|
class _WorkspaceNetworkOptionState:
|
|
68
67
|
def __init__(__self__, *,
|
|
69
|
-
network_policy_id: Optional[pulumi.Input[
|
|
70
|
-
workspace_id: Optional[pulumi.Input[
|
|
68
|
+
network_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
69
|
+
workspace_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
71
70
|
"""
|
|
72
71
|
Input properties used for looking up and filtering WorkspaceNetworkOption resources.
|
|
73
|
-
:param pulumi.Input[
|
|
72
|
+
:param pulumi.Input[_builtins.str] network_policy_id: The network policy ID to apply to the workspace. This controls the network access rules
|
|
74
73
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
75
74
|
linked to one policy at a time. If no policy is explicitly assigned,
|
|
76
75
|
the workspace will use 'default-policy'
|
|
77
|
-
:param pulumi.Input[
|
|
76
|
+
:param pulumi.Input[_builtins.str] workspace_id: The workspace ID
|
|
78
77
|
"""
|
|
79
78
|
if network_policy_id is not None:
|
|
80
79
|
pulumi.set(__self__, "network_policy_id", network_policy_id)
|
|
81
80
|
if workspace_id is not None:
|
|
82
81
|
pulumi.set(__self__, "workspace_id", workspace_id)
|
|
83
82
|
|
|
84
|
-
@property
|
|
83
|
+
@_builtins.property
|
|
85
84
|
@pulumi.getter(name="networkPolicyId")
|
|
86
|
-
def network_policy_id(self) -> Optional[pulumi.Input[
|
|
85
|
+
def network_policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
87
86
|
"""
|
|
88
87
|
The network policy ID to apply to the workspace. This controls the network access rules
|
|
89
88
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
@@ -93,19 +92,19 @@ class _WorkspaceNetworkOptionState:
|
|
|
93
92
|
return pulumi.get(self, "network_policy_id")
|
|
94
93
|
|
|
95
94
|
@network_policy_id.setter
|
|
96
|
-
def network_policy_id(self, value: Optional[pulumi.Input[
|
|
95
|
+
def network_policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
97
96
|
pulumi.set(self, "network_policy_id", value)
|
|
98
97
|
|
|
99
|
-
@property
|
|
98
|
+
@_builtins.property
|
|
100
99
|
@pulumi.getter(name="workspaceId")
|
|
101
|
-
def workspace_id(self) -> Optional[pulumi.Input[
|
|
100
|
+
def workspace_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
102
101
|
"""
|
|
103
102
|
The workspace ID
|
|
104
103
|
"""
|
|
105
104
|
return pulumi.get(self, "workspace_id")
|
|
106
105
|
|
|
107
106
|
@workspace_id.setter
|
|
108
|
-
def workspace_id(self, value: Optional[pulumi.Input[
|
|
107
|
+
def workspace_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
109
108
|
pulumi.set(self, "workspace_id", value)
|
|
110
109
|
|
|
111
110
|
|
|
@@ -115,10 +114,35 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
115
114
|
def __init__(__self__,
|
|
116
115
|
resource_name: str,
|
|
117
116
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
118
|
-
network_policy_id: Optional[pulumi.Input[
|
|
119
|
-
workspace_id: Optional[pulumi.Input[
|
|
117
|
+
network_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
118
|
+
workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
120
119
|
__props__=None):
|
|
121
120
|
"""
|
|
121
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
122
|
+
|
|
123
|
+
Workspace network options allow configuration of network settings for Databricks workspaces by selecting which network policy to associate with the workspace.
|
|
124
|
+
|
|
125
|
+
Each workspace is always associated with exactly one network policy that controls which network destinations can be accessed from the Databricks environment. By default, workspaces are associated with the `default-policy` network policy.
|
|
126
|
+
|
|
127
|
+
This resource has the following characteristics:
|
|
128
|
+
|
|
129
|
+
- You cannot create or delete a workspace's network option
|
|
130
|
+
- You can only update it to associate the workspace with a different policy
|
|
131
|
+
- This resource is used to change the network policy assignment for existing workspaces
|
|
132
|
+
|
|
133
|
+
> **Note** This resource can only be used with an account-level provider!
|
|
134
|
+
|
|
135
|
+
## Example Usage
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
import pulumi
|
|
139
|
+
import pulumi_databricks as databricks
|
|
140
|
+
|
|
141
|
+
example_workspace_network_option = databricks.WorkspaceNetworkOption("example_workspace_network_option",
|
|
142
|
+
workspace_id="9999999999999999",
|
|
143
|
+
network_policy_id="default-policy")
|
|
144
|
+
```
|
|
145
|
+
|
|
122
146
|
## Import
|
|
123
147
|
|
|
124
148
|
As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -127,7 +151,7 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
127
151
|
|
|
128
152
|
import {
|
|
129
153
|
|
|
130
|
-
id = workspace_id
|
|
154
|
+
id = "workspace_id"
|
|
131
155
|
|
|
132
156
|
to = databricks_workspace_network_option.this
|
|
133
157
|
|
|
@@ -136,16 +160,16 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
136
160
|
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
137
161
|
|
|
138
162
|
```sh
|
|
139
|
-
$ pulumi import databricks:index/workspaceNetworkOption:WorkspaceNetworkOption
|
|
163
|
+
$ pulumi import databricks:index/workspaceNetworkOption:WorkspaceNetworkOption this "workspace_id"
|
|
140
164
|
```
|
|
141
165
|
|
|
142
166
|
:param str resource_name: The name of the resource.
|
|
143
167
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
144
|
-
:param pulumi.Input[
|
|
168
|
+
:param pulumi.Input[_builtins.str] network_policy_id: The network policy ID to apply to the workspace. This controls the network access rules
|
|
145
169
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
146
170
|
linked to one policy at a time. If no policy is explicitly assigned,
|
|
147
171
|
the workspace will use 'default-policy'
|
|
148
|
-
:param pulumi.Input[
|
|
172
|
+
:param pulumi.Input[_builtins.str] workspace_id: The workspace ID
|
|
149
173
|
"""
|
|
150
174
|
...
|
|
151
175
|
@overload
|
|
@@ -154,6 +178,31 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
154
178
|
args: Optional[WorkspaceNetworkOptionArgs] = None,
|
|
155
179
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
156
180
|
"""
|
|
181
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
182
|
+
|
|
183
|
+
Workspace network options allow configuration of network settings for Databricks workspaces by selecting which network policy to associate with the workspace.
|
|
184
|
+
|
|
185
|
+
Each workspace is always associated with exactly one network policy that controls which network destinations can be accessed from the Databricks environment. By default, workspaces are associated with the `default-policy` network policy.
|
|
186
|
+
|
|
187
|
+
This resource has the following characteristics:
|
|
188
|
+
|
|
189
|
+
- You cannot create or delete a workspace's network option
|
|
190
|
+
- You can only update it to associate the workspace with a different policy
|
|
191
|
+
- This resource is used to change the network policy assignment for existing workspaces
|
|
192
|
+
|
|
193
|
+
> **Note** This resource can only be used with an account-level provider!
|
|
194
|
+
|
|
195
|
+
## Example Usage
|
|
196
|
+
|
|
197
|
+
```python
|
|
198
|
+
import pulumi
|
|
199
|
+
import pulumi_databricks as databricks
|
|
200
|
+
|
|
201
|
+
example_workspace_network_option = databricks.WorkspaceNetworkOption("example_workspace_network_option",
|
|
202
|
+
workspace_id="9999999999999999",
|
|
203
|
+
network_policy_id="default-policy")
|
|
204
|
+
```
|
|
205
|
+
|
|
157
206
|
## Import
|
|
158
207
|
|
|
159
208
|
As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -162,7 +211,7 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
162
211
|
|
|
163
212
|
import {
|
|
164
213
|
|
|
165
|
-
id = workspace_id
|
|
214
|
+
id = "workspace_id"
|
|
166
215
|
|
|
167
216
|
to = databricks_workspace_network_option.this
|
|
168
217
|
|
|
@@ -171,7 +220,7 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
171
220
|
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
172
221
|
|
|
173
222
|
```sh
|
|
174
|
-
$ pulumi import databricks:index/workspaceNetworkOption:WorkspaceNetworkOption
|
|
223
|
+
$ pulumi import databricks:index/workspaceNetworkOption:WorkspaceNetworkOption this "workspace_id"
|
|
175
224
|
```
|
|
176
225
|
|
|
177
226
|
:param str resource_name: The name of the resource.
|
|
@@ -189,8 +238,8 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
189
238
|
def _internal_init(__self__,
|
|
190
239
|
resource_name: str,
|
|
191
240
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
192
|
-
network_policy_id: Optional[pulumi.Input[
|
|
193
|
-
workspace_id: Optional[pulumi.Input[
|
|
241
|
+
network_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
242
|
+
workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
194
243
|
__props__=None):
|
|
195
244
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
196
245
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -212,8 +261,8 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
212
261
|
def get(resource_name: str,
|
|
213
262
|
id: pulumi.Input[str],
|
|
214
263
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
215
|
-
network_policy_id: Optional[pulumi.Input[
|
|
216
|
-
workspace_id: Optional[pulumi.Input[
|
|
264
|
+
network_policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
265
|
+
workspace_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'WorkspaceNetworkOption':
|
|
217
266
|
"""
|
|
218
267
|
Get an existing WorkspaceNetworkOption resource's state with the given name, id, and optional extra
|
|
219
268
|
properties used to qualify the lookup.
|
|
@@ -221,11 +270,11 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
221
270
|
:param str resource_name: The unique name of the resulting resource.
|
|
222
271
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
223
272
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
224
|
-
:param pulumi.Input[
|
|
273
|
+
:param pulumi.Input[_builtins.str] network_policy_id: The network policy ID to apply to the workspace. This controls the network access rules
|
|
225
274
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
226
275
|
linked to one policy at a time. If no policy is explicitly assigned,
|
|
227
276
|
the workspace will use 'default-policy'
|
|
228
|
-
:param pulumi.Input[
|
|
277
|
+
:param pulumi.Input[_builtins.str] workspace_id: The workspace ID
|
|
229
278
|
"""
|
|
230
279
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
231
280
|
|
|
@@ -235,9 +284,9 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
235
284
|
__props__.__dict__["workspace_id"] = workspace_id
|
|
236
285
|
return WorkspaceNetworkOption(resource_name, opts=opts, __props__=__props__)
|
|
237
286
|
|
|
238
|
-
@property
|
|
287
|
+
@_builtins.property
|
|
239
288
|
@pulumi.getter(name="networkPolicyId")
|
|
240
|
-
def network_policy_id(self) -> pulumi.Output[Optional[
|
|
289
|
+
def network_policy_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
241
290
|
"""
|
|
242
291
|
The network policy ID to apply to the workspace. This controls the network access rules
|
|
243
292
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
@@ -246,9 +295,9 @@ class WorkspaceNetworkOption(pulumi.CustomResource):
|
|
|
246
295
|
"""
|
|
247
296
|
return pulumi.get(self, "network_policy_id")
|
|
248
297
|
|
|
249
|
-
@property
|
|
298
|
+
@_builtins.property
|
|
250
299
|
@pulumi.getter(name="workspaceId")
|
|
251
|
-
def workspace_id(self) -> pulumi.Output[Optional[
|
|
300
|
+
def workspace_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
252
301
|
"""
|
|
253
302
|
The workspace ID
|
|
254
303
|
"""
|