pulumi-databricks 1.75.0a1756323569__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 +129 -46
- pulumi_databricks/_inputs.py +13377 -13798
- pulumi_databricks/account_federation_policy.py +473 -0
- pulumi_databricks/account_network_policy.py +12 -4
- pulumi_databricks/account_setting_v2.py +759 -0
- pulumi_databricks/alert_v2.py +223 -90
- pulumi_databricks/app.py +111 -4
- pulumi_databricks/apps_settings_custom_template.py +531 -0
- pulumi_databricks/budget_policy.py +28 -5
- pulumi_databricks/catalog.py +322 -2
- pulumi_databricks/cluster.py +47 -168
- pulumi_databricks/config/__init__.pyi +2 -0
- pulumi_databricks/config/vars.py +4 -0
- pulumi_databricks/connection.py +0 -34
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +8 -4
- pulumi_databricks/database_instance.py +354 -73
- pulumi_databricks/database_synced_database_table.py +52 -4
- pulumi_databricks/entitlements.py +21 -21
- pulumi_databricks/entity_tag_assignment.py +409 -0
- pulumi_databricks/external_metadata.py +15 -11
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- 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 +4 -0
- pulumi_databricks/get_account_network_policy.py +17 -18
- pulumi_databricks/get_account_setting_v2.py +331 -0
- pulumi_databricks/get_alert_v2.py +78 -70
- pulumi_databricks/get_alerts_v2.py +31 -12
- pulumi_databricks/get_app.py +21 -9
- pulumi_databricks/get_apps.py +22 -10
- pulumi_databricks/get_apps_settings_custom_template.py +207 -0
- pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
- pulumi_databricks/get_aws_bucket_policy.py +6 -6
- pulumi_databricks/get_budget_policies.py +70 -6
- pulumi_databricks/get_budget_policy.py +35 -30
- pulumi_databricks/get_catalog.py +21 -4
- pulumi_databricks/get_catalogs.py +23 -4
- pulumi_databricks/get_cluster.py +21 -4
- pulumi_databricks/get_cluster_policy.py +23 -4
- pulumi_databricks/get_clusters.py +21 -4
- pulumi_databricks/get_current_metastore.py +21 -4
- pulumi_databricks/get_dashboards.py +24 -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 +6 -20
- pulumi_databricks/get_database_database_catalogs.py +46 -8
- pulumi_databricks/get_database_instance.py +122 -75
- pulumi_databricks/get_database_instances.py +31 -6
- pulumi_databricks/get_database_synced_database_table.py +7 -28
- pulumi_databricks/get_database_synced_database_tables.py +43 -5
- pulumi_databricks/get_directory.py +20 -1
- pulumi_databricks/get_entity_tag_assignment.py +202 -0
- pulumi_databricks/get_entity_tag_assignments.py +187 -0
- pulumi_databricks/get_external_location.py +21 -4
- pulumi_databricks/get_external_locations.py +23 -4
- pulumi_databricks/get_external_metadata.py +12 -50
- pulumi_databricks/get_external_metadatas.py +55 -6
- 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 +3 -11
- pulumi_databricks/get_materialized_features_feature_tags.py +59 -8
- pulumi_databricks/get_metastore.py +2 -2
- 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_notification_destinations.py +17 -1
- pulumi_databricks/get_online_store.py +7 -17
- pulumi_databricks/get_online_stores.py +29 -8
- pulumi_databricks/get_pipelines.py +23 -4
- pulumi_databricks/get_policy_info.py +28 -99
- pulumi_databricks/get_policy_infos.py +92 -5
- pulumi_databricks/get_quality_monitor_v2.py +4 -0
- pulumi_databricks/get_quality_monitors_v2.py +22 -3
- 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 +151 -0
- pulumi_databricks/get_service_principal_federation_policy.py +220 -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 +139 -0
- pulumi_databricks/get_tag_policy.py +175 -0
- 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 +331 -0
- pulumi_databricks/get_zones.py +20 -1
- pulumi_databricks/git_credential.py +54 -7
- pulumi_databricks/grant.py +2 -2
- pulumi_databricks/group.py +21 -21
- pulumi_databricks/job.py +47 -0
- pulumi_databricks/library.py +165 -0
- pulumi_databricks/materialized_features_feature_tag.py +8 -4
- pulumi_databricks/mws_ncc_private_endpoint_rule.py +7 -7
- pulumi_databricks/mws_permission_assignment.py +16 -16
- pulumi_databricks/mws_storage_configurations.py +6 -6
- pulumi_databricks/mws_workspaces.py +76 -29
- pulumi_databricks/online_store.py +8 -4
- pulumi_databricks/outputs.py +26397 -22382
- pulumi_databricks/permission_assignment.py +266 -24
- pulumi_databricks/pipeline.py +37 -3
- pulumi_databricks/policy_info.py +43 -39
- pulumi_databricks/provider.py +15 -0
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +47 -0
- pulumi_databricks/quality_monitor_v2.py +8 -4
- pulumi_databricks/registered_model.py +301 -29
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/service_principal_federation_policy.py +469 -0
- pulumi_databricks/share.py +71 -84
- pulumi_databricks/sql_endpoint.py +47 -0
- pulumi_databricks/sql_table.py +35 -7
- pulumi_databricks/storage_credential.py +59 -6
- pulumi_databricks/tag_policy.py +357 -0
- pulumi_databricks/user.py +21 -21
- pulumi_databricks/workspace_binding.py +0 -48
- pulumi_databricks/workspace_network_option.py +8 -4
- pulumi_databricks/workspace_setting_v2.py +759 -0
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
- pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
- pulumi_databricks/clean_room_asset.py +0 -891
- pulumi_databricks/clean_room_auto_approval_rule.py +0 -426
- pulumi_databricks/clean_rooms_clean_room.py +0 -518
- pulumi_databricks/get_clean_room_asset.py +0 -399
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_asset.py +0 -375
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_assets.py +0 -82
- pulumi_databricks/get_clean_room_assets.py +0 -104
- pulumi_databricks/get_clean_room_auto_approval_rule.py +0 -200
- pulumi_databricks/get_clean_room_auto_approval_rules.py +0 -82
- pulumi_databricks/get_clean_rooms_clean_room.py +0 -272
- pulumi_databricks/get_clean_rooms_clean_rooms.py +0 -104
- pulumi_databricks/get_recipient_federation_policies.py +0 -82
- pulumi_databricks/get_recipient_federation_policy.py +0 -165
- pulumi_databricks/recipient_federation_policy.py +0 -346
- pulumi_databricks-1.75.0a1756323569.dist-info/RECORD +0 -231
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/top_level.txt +0 -0
pulumi_databricks/get_volumes.py
CHANGED
|
@@ -13,6 +13,8 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
16
18
|
|
|
17
19
|
__all__ = [
|
|
18
20
|
'GetVolumesResult',
|
|
@@ -26,7 +28,7 @@ class GetVolumesResult:
|
|
|
26
28
|
"""
|
|
27
29
|
A collection of values returned by getVolumes.
|
|
28
30
|
"""
|
|
29
|
-
def __init__(__self__, catalog_name=None, id=None, ids=None, schema_name=None):
|
|
31
|
+
def __init__(__self__, catalog_name=None, id=None, ids=None, provider_config=None, schema_name=None):
|
|
30
32
|
if catalog_name and not isinstance(catalog_name, str):
|
|
31
33
|
raise TypeError("Expected argument 'catalog_name' to be a str")
|
|
32
34
|
pulumi.set(__self__, "catalog_name", catalog_name)
|
|
@@ -36,6 +38,9 @@ class GetVolumesResult:
|
|
|
36
38
|
if ids and not isinstance(ids, list):
|
|
37
39
|
raise TypeError("Expected argument 'ids' to be a list")
|
|
38
40
|
pulumi.set(__self__, "ids", ids)
|
|
41
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
42
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
43
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
39
44
|
if schema_name and not isinstance(schema_name, str):
|
|
40
45
|
raise TypeError("Expected argument 'schema_name' to be a str")
|
|
41
46
|
pulumi.set(__self__, "schema_name", schema_name)
|
|
@@ -61,6 +66,11 @@ class GetVolumesResult:
|
|
|
61
66
|
"""
|
|
62
67
|
return pulumi.get(self, "ids")
|
|
63
68
|
|
|
69
|
+
@_builtins.property
|
|
70
|
+
@pulumi.getter(name="providerConfig")
|
|
71
|
+
def provider_config(self) -> Optional['outputs.GetVolumesProviderConfigResult']:
|
|
72
|
+
return pulumi.get(self, "provider_config")
|
|
73
|
+
|
|
64
74
|
@_builtins.property
|
|
65
75
|
@pulumi.getter(name="schemaName")
|
|
66
76
|
def schema_name(self) -> _builtins.str:
|
|
@@ -76,11 +86,13 @@ class AwaitableGetVolumesResult(GetVolumesResult):
|
|
|
76
86
|
catalog_name=self.catalog_name,
|
|
77
87
|
id=self.id,
|
|
78
88
|
ids=self.ids,
|
|
89
|
+
provider_config=self.provider_config,
|
|
79
90
|
schema_name=self.schema_name)
|
|
80
91
|
|
|
81
92
|
|
|
82
93
|
def get_volumes(catalog_name: Optional[_builtins.str] = None,
|
|
83
94
|
ids: Optional[Sequence[_builtins.str]] = None,
|
|
95
|
+
provider_config: Optional[Union['GetVolumesProviderConfigArgs', 'GetVolumesProviderConfigArgsDict']] = None,
|
|
84
96
|
schema_name: Optional[_builtins.str] = None,
|
|
85
97
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVolumesResult:
|
|
86
98
|
"""
|
|
@@ -116,11 +128,13 @@ def get_volumes(catalog_name: Optional[_builtins.str] = None,
|
|
|
116
128
|
|
|
117
129
|
:param _builtins.str catalog_name: Name of databricks_catalog
|
|
118
130
|
:param Sequence[_builtins.str] ids: a list of Volume full names: *`catalog`.`schema`.`volume`*
|
|
131
|
+
:param Union['GetVolumesProviderConfigArgs', 'GetVolumesProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
119
132
|
:param _builtins.str schema_name: Name of databricks_schema
|
|
120
133
|
"""
|
|
121
134
|
__args__ = dict()
|
|
122
135
|
__args__['catalogName'] = catalog_name
|
|
123
136
|
__args__['ids'] = ids
|
|
137
|
+
__args__['providerConfig'] = provider_config
|
|
124
138
|
__args__['schemaName'] = schema_name
|
|
125
139
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
126
140
|
__ret__ = pulumi.runtime.invoke('databricks:index/getVolumes:getVolumes', __args__, opts=opts, typ=GetVolumesResult).value
|
|
@@ -129,9 +143,11 @@ def get_volumes(catalog_name: Optional[_builtins.str] = None,
|
|
|
129
143
|
catalog_name=pulumi.get(__ret__, 'catalog_name'),
|
|
130
144
|
id=pulumi.get(__ret__, 'id'),
|
|
131
145
|
ids=pulumi.get(__ret__, 'ids'),
|
|
146
|
+
provider_config=pulumi.get(__ret__, 'provider_config'),
|
|
132
147
|
schema_name=pulumi.get(__ret__, 'schema_name'))
|
|
133
148
|
def get_volumes_output(catalog_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
134
149
|
ids: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
150
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetVolumesProviderConfigArgs', 'GetVolumesProviderConfigArgsDict']]]] = None,
|
|
135
151
|
schema_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
136
152
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVolumesResult]:
|
|
137
153
|
"""
|
|
@@ -167,11 +183,13 @@ def get_volumes_output(catalog_name: Optional[pulumi.Input[_builtins.str]] = Non
|
|
|
167
183
|
|
|
168
184
|
:param _builtins.str catalog_name: Name of databricks_catalog
|
|
169
185
|
:param Sequence[_builtins.str] ids: a list of Volume full names: *`catalog`.`schema`.`volume`*
|
|
186
|
+
:param Union['GetVolumesProviderConfigArgs', 'GetVolumesProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
170
187
|
:param _builtins.str schema_name: Name of databricks_schema
|
|
171
188
|
"""
|
|
172
189
|
__args__ = dict()
|
|
173
190
|
__args__['catalogName'] = catalog_name
|
|
174
191
|
__args__['ids'] = ids
|
|
192
|
+
__args__['providerConfig'] = provider_config
|
|
175
193
|
__args__['schemaName'] = schema_name
|
|
176
194
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
177
195
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getVolumes:getVolumes', __args__, opts=opts, typ=GetVolumesResult)
|
|
@@ -179,4 +197,5 @@ def get_volumes_output(catalog_name: Optional[pulumi.Input[_builtins.str]] = Non
|
|
|
179
197
|
catalog_name=pulumi.get(__response__, 'catalog_name'),
|
|
180
198
|
id=pulumi.get(__response__, 'id'),
|
|
181
199
|
ids=pulumi.get(__response__, 'ids'),
|
|
200
|
+
provider_config=pulumi.get(__response__, 'provider_config'),
|
|
182
201
|
schema_name=pulumi.get(__response__, 'schema_name')))
|
|
@@ -47,7 +47,7 @@ class GetWorkspaceNetworkOptionResult:
|
|
|
47
47
|
|
|
48
48
|
@_builtins.property
|
|
49
49
|
@pulumi.getter(name="networkPolicyId")
|
|
50
|
-
def network_policy_id(self) ->
|
|
50
|
+
def network_policy_id(self) -> _builtins.str:
|
|
51
51
|
"""
|
|
52
52
|
(string) - The network policy ID to apply to the workspace. This controls the network access rules
|
|
53
53
|
for all serverless compute resources in the workspace. Each workspace can only be
|
|
@@ -58,7 +58,7 @@ class GetWorkspaceNetworkOptionResult:
|
|
|
58
58
|
|
|
59
59
|
@_builtins.property
|
|
60
60
|
@pulumi.getter(name="workspaceId")
|
|
61
|
-
def workspace_id(self) ->
|
|
61
|
+
def workspace_id(self) -> _builtins.str:
|
|
62
62
|
"""
|
|
63
63
|
(integer) - The workspace ID
|
|
64
64
|
"""
|
|
@@ -76,10 +76,11 @@ class AwaitableGetWorkspaceNetworkOptionResult(GetWorkspaceNetworkOptionResult):
|
|
|
76
76
|
workspace_id=self.workspace_id)
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
def get_workspace_network_option(
|
|
80
|
-
workspace_id: Optional[_builtins.str] = None,
|
|
79
|
+
def get_workspace_network_option(workspace_id: Optional[_builtins.str] = None,
|
|
81
80
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWorkspaceNetworkOptionResult:
|
|
82
81
|
"""
|
|
82
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
83
|
+
|
|
83
84
|
This data source can be used to get a single workspace network option.
|
|
84
85
|
|
|
85
86
|
> **Note** This data source can only be used with an account-level provider!
|
|
@@ -96,14 +97,9 @@ def get_workspace_network_option(network_policy_id: Optional[_builtins.str] = No
|
|
|
96
97
|
```
|
|
97
98
|
|
|
98
99
|
|
|
99
|
-
:param _builtins.str network_policy_id: (string) - The network policy ID to apply to the workspace. This controls the network access rules
|
|
100
|
-
for all serverless compute resources in the workspace. Each workspace can only be
|
|
101
|
-
linked to one policy at a time. If no policy is explicitly assigned,
|
|
102
|
-
the workspace will use 'default-policy'
|
|
103
100
|
:param _builtins.str workspace_id: The workspace ID
|
|
104
101
|
"""
|
|
105
102
|
__args__ = dict()
|
|
106
|
-
__args__['networkPolicyId'] = network_policy_id
|
|
107
103
|
__args__['workspaceId'] = workspace_id
|
|
108
104
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
109
105
|
__ret__ = pulumi.runtime.invoke('databricks:index/getWorkspaceNetworkOption:getWorkspaceNetworkOption', __args__, opts=opts, typ=GetWorkspaceNetworkOptionResult).value
|
|
@@ -112,10 +108,11 @@ def get_workspace_network_option(network_policy_id: Optional[_builtins.str] = No
|
|
|
112
108
|
id=pulumi.get(__ret__, 'id'),
|
|
113
109
|
network_policy_id=pulumi.get(__ret__, 'network_policy_id'),
|
|
114
110
|
workspace_id=pulumi.get(__ret__, 'workspace_id'))
|
|
115
|
-
def get_workspace_network_option_output(
|
|
116
|
-
workspace_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
111
|
+
def get_workspace_network_option_output(workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
117
112
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetWorkspaceNetworkOptionResult]:
|
|
118
113
|
"""
|
|
114
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
115
|
+
|
|
119
116
|
This data source can be used to get a single workspace network option.
|
|
120
117
|
|
|
121
118
|
> **Note** This data source can only be used with an account-level provider!
|
|
@@ -132,14 +129,9 @@ def get_workspace_network_option_output(network_policy_id: Optional[pulumi.Input
|
|
|
132
129
|
```
|
|
133
130
|
|
|
134
131
|
|
|
135
|
-
:param _builtins.str network_policy_id: (string) - The network policy ID to apply to the workspace. This controls the network access rules
|
|
136
|
-
for all serverless compute resources in the workspace. Each workspace can only be
|
|
137
|
-
linked to one policy at a time. If no policy is explicitly assigned,
|
|
138
|
-
the workspace will use 'default-policy'
|
|
139
132
|
:param _builtins.str workspace_id: The workspace ID
|
|
140
133
|
"""
|
|
141
134
|
__args__ = dict()
|
|
142
|
-
__args__['networkPolicyId'] = network_policy_id
|
|
143
135
|
__args__['workspaceId'] = workspace_id
|
|
144
136
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
145
137
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getWorkspaceNetworkOption:getWorkspaceNetworkOption', __args__, opts=opts, typ=GetWorkspaceNetworkOptionResult)
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetWorkspaceSettingV2Result',
|
|
20
|
+
'AwaitableGetWorkspaceSettingV2Result',
|
|
21
|
+
'get_workspace_setting_v2',
|
|
22
|
+
'get_workspace_setting_v2_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetWorkspaceSettingV2Result:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getWorkspaceSettingV2.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, aibi_dashboard_embedding_access_policy=None, aibi_dashboard_embedding_approved_domains=None, automatic_cluster_update_workspace=None, boolean_val=None, effective_aibi_dashboard_embedding_access_policy=None, effective_aibi_dashboard_embedding_approved_domains=None, effective_automatic_cluster_update_workspace=None, effective_boolean_val=None, effective_integer_val=None, effective_personal_compute=None, effective_restrict_workspace_admins=None, effective_string_val=None, id=None, integer_val=None, name=None, personal_compute=None, restrict_workspace_admins=None, string_val=None):
|
|
31
|
+
if aibi_dashboard_embedding_access_policy and not isinstance(aibi_dashboard_embedding_access_policy, dict):
|
|
32
|
+
raise TypeError("Expected argument 'aibi_dashboard_embedding_access_policy' to be a dict")
|
|
33
|
+
pulumi.set(__self__, "aibi_dashboard_embedding_access_policy", aibi_dashboard_embedding_access_policy)
|
|
34
|
+
if aibi_dashboard_embedding_approved_domains and not isinstance(aibi_dashboard_embedding_approved_domains, dict):
|
|
35
|
+
raise TypeError("Expected argument 'aibi_dashboard_embedding_approved_domains' to be a dict")
|
|
36
|
+
pulumi.set(__self__, "aibi_dashboard_embedding_approved_domains", aibi_dashboard_embedding_approved_domains)
|
|
37
|
+
if automatic_cluster_update_workspace and not isinstance(automatic_cluster_update_workspace, dict):
|
|
38
|
+
raise TypeError("Expected argument 'automatic_cluster_update_workspace' to be a dict")
|
|
39
|
+
pulumi.set(__self__, "automatic_cluster_update_workspace", automatic_cluster_update_workspace)
|
|
40
|
+
if boolean_val and not isinstance(boolean_val, dict):
|
|
41
|
+
raise TypeError("Expected argument 'boolean_val' to be a dict")
|
|
42
|
+
pulumi.set(__self__, "boolean_val", boolean_val)
|
|
43
|
+
if effective_aibi_dashboard_embedding_access_policy and not isinstance(effective_aibi_dashboard_embedding_access_policy, dict):
|
|
44
|
+
raise TypeError("Expected argument 'effective_aibi_dashboard_embedding_access_policy' to be a dict")
|
|
45
|
+
pulumi.set(__self__, "effective_aibi_dashboard_embedding_access_policy", effective_aibi_dashboard_embedding_access_policy)
|
|
46
|
+
if effective_aibi_dashboard_embedding_approved_domains and not isinstance(effective_aibi_dashboard_embedding_approved_domains, dict):
|
|
47
|
+
raise TypeError("Expected argument 'effective_aibi_dashboard_embedding_approved_domains' to be a dict")
|
|
48
|
+
pulumi.set(__self__, "effective_aibi_dashboard_embedding_approved_domains", effective_aibi_dashboard_embedding_approved_domains)
|
|
49
|
+
if effective_automatic_cluster_update_workspace and not isinstance(effective_automatic_cluster_update_workspace, dict):
|
|
50
|
+
raise TypeError("Expected argument 'effective_automatic_cluster_update_workspace' to be a dict")
|
|
51
|
+
pulumi.set(__self__, "effective_automatic_cluster_update_workspace", effective_automatic_cluster_update_workspace)
|
|
52
|
+
if effective_boolean_val and not isinstance(effective_boolean_val, dict):
|
|
53
|
+
raise TypeError("Expected argument 'effective_boolean_val' to be a dict")
|
|
54
|
+
pulumi.set(__self__, "effective_boolean_val", effective_boolean_val)
|
|
55
|
+
if effective_integer_val and not isinstance(effective_integer_val, dict):
|
|
56
|
+
raise TypeError("Expected argument 'effective_integer_val' to be a dict")
|
|
57
|
+
pulumi.set(__self__, "effective_integer_val", effective_integer_val)
|
|
58
|
+
if effective_personal_compute and not isinstance(effective_personal_compute, dict):
|
|
59
|
+
raise TypeError("Expected argument 'effective_personal_compute' to be a dict")
|
|
60
|
+
pulumi.set(__self__, "effective_personal_compute", effective_personal_compute)
|
|
61
|
+
if effective_restrict_workspace_admins and not isinstance(effective_restrict_workspace_admins, dict):
|
|
62
|
+
raise TypeError("Expected argument 'effective_restrict_workspace_admins' to be a dict")
|
|
63
|
+
pulumi.set(__self__, "effective_restrict_workspace_admins", effective_restrict_workspace_admins)
|
|
64
|
+
if effective_string_val and not isinstance(effective_string_val, dict):
|
|
65
|
+
raise TypeError("Expected argument 'effective_string_val' to be a dict")
|
|
66
|
+
pulumi.set(__self__, "effective_string_val", effective_string_val)
|
|
67
|
+
if id and not isinstance(id, str):
|
|
68
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
69
|
+
pulumi.set(__self__, "id", id)
|
|
70
|
+
if integer_val and not isinstance(integer_val, dict):
|
|
71
|
+
raise TypeError("Expected argument 'integer_val' to be a dict")
|
|
72
|
+
pulumi.set(__self__, "integer_val", integer_val)
|
|
73
|
+
if name and not isinstance(name, str):
|
|
74
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
75
|
+
pulumi.set(__self__, "name", name)
|
|
76
|
+
if personal_compute and not isinstance(personal_compute, dict):
|
|
77
|
+
raise TypeError("Expected argument 'personal_compute' to be a dict")
|
|
78
|
+
pulumi.set(__self__, "personal_compute", personal_compute)
|
|
79
|
+
if restrict_workspace_admins and not isinstance(restrict_workspace_admins, dict):
|
|
80
|
+
raise TypeError("Expected argument 'restrict_workspace_admins' to be a dict")
|
|
81
|
+
pulumi.set(__self__, "restrict_workspace_admins", restrict_workspace_admins)
|
|
82
|
+
if string_val and not isinstance(string_val, dict):
|
|
83
|
+
raise TypeError("Expected argument 'string_val' to be a dict")
|
|
84
|
+
pulumi.set(__self__, "string_val", string_val)
|
|
85
|
+
|
|
86
|
+
@_builtins.property
|
|
87
|
+
@pulumi.getter(name="aibiDashboardEmbeddingAccessPolicy")
|
|
88
|
+
def aibi_dashboard_embedding_access_policy(self) -> 'outputs.GetWorkspaceSettingV2AibiDashboardEmbeddingAccessPolicyResult':
|
|
89
|
+
"""
|
|
90
|
+
(AibiDashboardEmbeddingAccessPolicy)
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "aibi_dashboard_embedding_access_policy")
|
|
93
|
+
|
|
94
|
+
@_builtins.property
|
|
95
|
+
@pulumi.getter(name="aibiDashboardEmbeddingApprovedDomains")
|
|
96
|
+
def aibi_dashboard_embedding_approved_domains(self) -> 'outputs.GetWorkspaceSettingV2AibiDashboardEmbeddingApprovedDomainsResult':
|
|
97
|
+
"""
|
|
98
|
+
(AibiDashboardEmbeddingApprovedDomains)
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "aibi_dashboard_embedding_approved_domains")
|
|
101
|
+
|
|
102
|
+
@_builtins.property
|
|
103
|
+
@pulumi.getter(name="automaticClusterUpdateWorkspace")
|
|
104
|
+
def automatic_cluster_update_workspace(self) -> 'outputs.GetWorkspaceSettingV2AutomaticClusterUpdateWorkspaceResult':
|
|
105
|
+
"""
|
|
106
|
+
(ClusterAutoRestartMessage)
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "automatic_cluster_update_workspace")
|
|
109
|
+
|
|
110
|
+
@_builtins.property
|
|
111
|
+
@pulumi.getter(name="booleanVal")
|
|
112
|
+
def boolean_val(self) -> 'outputs.GetWorkspaceSettingV2BooleanValResult':
|
|
113
|
+
"""
|
|
114
|
+
(BooleanMessage)
|
|
115
|
+
"""
|
|
116
|
+
return pulumi.get(self, "boolean_val")
|
|
117
|
+
|
|
118
|
+
@_builtins.property
|
|
119
|
+
@pulumi.getter(name="effectiveAibiDashboardEmbeddingAccessPolicy")
|
|
120
|
+
def effective_aibi_dashboard_embedding_access_policy(self) -> 'outputs.GetWorkspaceSettingV2EffectiveAibiDashboardEmbeddingAccessPolicyResult':
|
|
121
|
+
"""
|
|
122
|
+
(AibiDashboardEmbeddingAccessPolicy)
|
|
123
|
+
"""
|
|
124
|
+
return pulumi.get(self, "effective_aibi_dashboard_embedding_access_policy")
|
|
125
|
+
|
|
126
|
+
@_builtins.property
|
|
127
|
+
@pulumi.getter(name="effectiveAibiDashboardEmbeddingApprovedDomains")
|
|
128
|
+
def effective_aibi_dashboard_embedding_approved_domains(self) -> 'outputs.GetWorkspaceSettingV2EffectiveAibiDashboardEmbeddingApprovedDomainsResult':
|
|
129
|
+
"""
|
|
130
|
+
(AibiDashboardEmbeddingApprovedDomains)
|
|
131
|
+
"""
|
|
132
|
+
return pulumi.get(self, "effective_aibi_dashboard_embedding_approved_domains")
|
|
133
|
+
|
|
134
|
+
@_builtins.property
|
|
135
|
+
@pulumi.getter(name="effectiveAutomaticClusterUpdateWorkspace")
|
|
136
|
+
def effective_automatic_cluster_update_workspace(self) -> 'outputs.GetWorkspaceSettingV2EffectiveAutomaticClusterUpdateWorkspaceResult':
|
|
137
|
+
"""
|
|
138
|
+
(ClusterAutoRestartMessage)
|
|
139
|
+
"""
|
|
140
|
+
return pulumi.get(self, "effective_automatic_cluster_update_workspace")
|
|
141
|
+
|
|
142
|
+
@_builtins.property
|
|
143
|
+
@pulumi.getter(name="effectiveBooleanVal")
|
|
144
|
+
def effective_boolean_val(self) -> 'outputs.GetWorkspaceSettingV2EffectiveBooleanValResult':
|
|
145
|
+
"""
|
|
146
|
+
(BooleanMessage)
|
|
147
|
+
"""
|
|
148
|
+
return pulumi.get(self, "effective_boolean_val")
|
|
149
|
+
|
|
150
|
+
@_builtins.property
|
|
151
|
+
@pulumi.getter(name="effectiveIntegerVal")
|
|
152
|
+
def effective_integer_val(self) -> 'outputs.GetWorkspaceSettingV2EffectiveIntegerValResult':
|
|
153
|
+
"""
|
|
154
|
+
(IntegerMessage)
|
|
155
|
+
"""
|
|
156
|
+
return pulumi.get(self, "effective_integer_val")
|
|
157
|
+
|
|
158
|
+
@_builtins.property
|
|
159
|
+
@pulumi.getter(name="effectivePersonalCompute")
|
|
160
|
+
def effective_personal_compute(self) -> 'outputs.GetWorkspaceSettingV2EffectivePersonalComputeResult':
|
|
161
|
+
"""
|
|
162
|
+
(PersonalComputeMessage)
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "effective_personal_compute")
|
|
165
|
+
|
|
166
|
+
@_builtins.property
|
|
167
|
+
@pulumi.getter(name="effectiveRestrictWorkspaceAdmins")
|
|
168
|
+
def effective_restrict_workspace_admins(self) -> 'outputs.GetWorkspaceSettingV2EffectiveRestrictWorkspaceAdminsResult':
|
|
169
|
+
"""
|
|
170
|
+
(RestrictWorkspaceAdminsMessage)
|
|
171
|
+
"""
|
|
172
|
+
return pulumi.get(self, "effective_restrict_workspace_admins")
|
|
173
|
+
|
|
174
|
+
@_builtins.property
|
|
175
|
+
@pulumi.getter(name="effectiveStringVal")
|
|
176
|
+
def effective_string_val(self) -> 'outputs.GetWorkspaceSettingV2EffectiveStringValResult':
|
|
177
|
+
"""
|
|
178
|
+
(StringMessage)
|
|
179
|
+
"""
|
|
180
|
+
return pulumi.get(self, "effective_string_val")
|
|
181
|
+
|
|
182
|
+
@_builtins.property
|
|
183
|
+
@pulumi.getter
|
|
184
|
+
def id(self) -> _builtins.str:
|
|
185
|
+
"""
|
|
186
|
+
The provider-assigned unique ID for this managed resource.
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "id")
|
|
189
|
+
|
|
190
|
+
@_builtins.property
|
|
191
|
+
@pulumi.getter(name="integerVal")
|
|
192
|
+
def integer_val(self) -> 'outputs.GetWorkspaceSettingV2IntegerValResult':
|
|
193
|
+
"""
|
|
194
|
+
(IntegerMessage)
|
|
195
|
+
"""
|
|
196
|
+
return pulumi.get(self, "integer_val")
|
|
197
|
+
|
|
198
|
+
@_builtins.property
|
|
199
|
+
@pulumi.getter
|
|
200
|
+
def name(self) -> _builtins.str:
|
|
201
|
+
"""
|
|
202
|
+
(string) - Name of the setting
|
|
203
|
+
"""
|
|
204
|
+
return pulumi.get(self, "name")
|
|
205
|
+
|
|
206
|
+
@_builtins.property
|
|
207
|
+
@pulumi.getter(name="personalCompute")
|
|
208
|
+
def personal_compute(self) -> 'outputs.GetWorkspaceSettingV2PersonalComputeResult':
|
|
209
|
+
"""
|
|
210
|
+
(PersonalComputeMessage)
|
|
211
|
+
"""
|
|
212
|
+
return pulumi.get(self, "personal_compute")
|
|
213
|
+
|
|
214
|
+
@_builtins.property
|
|
215
|
+
@pulumi.getter(name="restrictWorkspaceAdmins")
|
|
216
|
+
def restrict_workspace_admins(self) -> 'outputs.GetWorkspaceSettingV2RestrictWorkspaceAdminsResult':
|
|
217
|
+
"""
|
|
218
|
+
(RestrictWorkspaceAdminsMessage)
|
|
219
|
+
"""
|
|
220
|
+
return pulumi.get(self, "restrict_workspace_admins")
|
|
221
|
+
|
|
222
|
+
@_builtins.property
|
|
223
|
+
@pulumi.getter(name="stringVal")
|
|
224
|
+
def string_val(self) -> 'outputs.GetWorkspaceSettingV2StringValResult':
|
|
225
|
+
"""
|
|
226
|
+
(StringMessage)
|
|
227
|
+
"""
|
|
228
|
+
return pulumi.get(self, "string_val")
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
class AwaitableGetWorkspaceSettingV2Result(GetWorkspaceSettingV2Result):
|
|
232
|
+
# pylint: disable=using-constant-test
|
|
233
|
+
def __await__(self):
|
|
234
|
+
if False:
|
|
235
|
+
yield self
|
|
236
|
+
return GetWorkspaceSettingV2Result(
|
|
237
|
+
aibi_dashboard_embedding_access_policy=self.aibi_dashboard_embedding_access_policy,
|
|
238
|
+
aibi_dashboard_embedding_approved_domains=self.aibi_dashboard_embedding_approved_domains,
|
|
239
|
+
automatic_cluster_update_workspace=self.automatic_cluster_update_workspace,
|
|
240
|
+
boolean_val=self.boolean_val,
|
|
241
|
+
effective_aibi_dashboard_embedding_access_policy=self.effective_aibi_dashboard_embedding_access_policy,
|
|
242
|
+
effective_aibi_dashboard_embedding_approved_domains=self.effective_aibi_dashboard_embedding_approved_domains,
|
|
243
|
+
effective_automatic_cluster_update_workspace=self.effective_automatic_cluster_update_workspace,
|
|
244
|
+
effective_boolean_val=self.effective_boolean_val,
|
|
245
|
+
effective_integer_val=self.effective_integer_val,
|
|
246
|
+
effective_personal_compute=self.effective_personal_compute,
|
|
247
|
+
effective_restrict_workspace_admins=self.effective_restrict_workspace_admins,
|
|
248
|
+
effective_string_val=self.effective_string_val,
|
|
249
|
+
id=self.id,
|
|
250
|
+
integer_val=self.integer_val,
|
|
251
|
+
name=self.name,
|
|
252
|
+
personal_compute=self.personal_compute,
|
|
253
|
+
restrict_workspace_admins=self.restrict_workspace_admins,
|
|
254
|
+
string_val=self.string_val)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def get_workspace_setting_v2(name: Optional[_builtins.str] = None,
|
|
258
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWorkspaceSettingV2Result:
|
|
259
|
+
"""
|
|
260
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
261
|
+
|
|
262
|
+
This data source can be used to get a single account setting.
|
|
263
|
+
|
|
264
|
+
## Example Usage
|
|
265
|
+
|
|
266
|
+
Referring to a setting by id
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
:param _builtins.str name: Name of the setting
|
|
270
|
+
"""
|
|
271
|
+
__args__ = dict()
|
|
272
|
+
__args__['name'] = name
|
|
273
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
274
|
+
__ret__ = pulumi.runtime.invoke('databricks:index/getWorkspaceSettingV2:getWorkspaceSettingV2', __args__, opts=opts, typ=GetWorkspaceSettingV2Result).value
|
|
275
|
+
|
|
276
|
+
return AwaitableGetWorkspaceSettingV2Result(
|
|
277
|
+
aibi_dashboard_embedding_access_policy=pulumi.get(__ret__, 'aibi_dashboard_embedding_access_policy'),
|
|
278
|
+
aibi_dashboard_embedding_approved_domains=pulumi.get(__ret__, 'aibi_dashboard_embedding_approved_domains'),
|
|
279
|
+
automatic_cluster_update_workspace=pulumi.get(__ret__, 'automatic_cluster_update_workspace'),
|
|
280
|
+
boolean_val=pulumi.get(__ret__, 'boolean_val'),
|
|
281
|
+
effective_aibi_dashboard_embedding_access_policy=pulumi.get(__ret__, 'effective_aibi_dashboard_embedding_access_policy'),
|
|
282
|
+
effective_aibi_dashboard_embedding_approved_domains=pulumi.get(__ret__, 'effective_aibi_dashboard_embedding_approved_domains'),
|
|
283
|
+
effective_automatic_cluster_update_workspace=pulumi.get(__ret__, 'effective_automatic_cluster_update_workspace'),
|
|
284
|
+
effective_boolean_val=pulumi.get(__ret__, 'effective_boolean_val'),
|
|
285
|
+
effective_integer_val=pulumi.get(__ret__, 'effective_integer_val'),
|
|
286
|
+
effective_personal_compute=pulumi.get(__ret__, 'effective_personal_compute'),
|
|
287
|
+
effective_restrict_workspace_admins=pulumi.get(__ret__, 'effective_restrict_workspace_admins'),
|
|
288
|
+
effective_string_val=pulumi.get(__ret__, 'effective_string_val'),
|
|
289
|
+
id=pulumi.get(__ret__, 'id'),
|
|
290
|
+
integer_val=pulumi.get(__ret__, 'integer_val'),
|
|
291
|
+
name=pulumi.get(__ret__, 'name'),
|
|
292
|
+
personal_compute=pulumi.get(__ret__, 'personal_compute'),
|
|
293
|
+
restrict_workspace_admins=pulumi.get(__ret__, 'restrict_workspace_admins'),
|
|
294
|
+
string_val=pulumi.get(__ret__, 'string_val'))
|
|
295
|
+
def get_workspace_setting_v2_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
296
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetWorkspaceSettingV2Result]:
|
|
297
|
+
"""
|
|
298
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
299
|
+
|
|
300
|
+
This data source can be used to get a single account setting.
|
|
301
|
+
|
|
302
|
+
## Example Usage
|
|
303
|
+
|
|
304
|
+
Referring to a setting by id
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:param _builtins.str name: Name of the setting
|
|
308
|
+
"""
|
|
309
|
+
__args__ = dict()
|
|
310
|
+
__args__['name'] = name
|
|
311
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
312
|
+
__ret__ = pulumi.runtime.invoke_output('databricks:index/getWorkspaceSettingV2:getWorkspaceSettingV2', __args__, opts=opts, typ=GetWorkspaceSettingV2Result)
|
|
313
|
+
return __ret__.apply(lambda __response__: GetWorkspaceSettingV2Result(
|
|
314
|
+
aibi_dashboard_embedding_access_policy=pulumi.get(__response__, 'aibi_dashboard_embedding_access_policy'),
|
|
315
|
+
aibi_dashboard_embedding_approved_domains=pulumi.get(__response__, 'aibi_dashboard_embedding_approved_domains'),
|
|
316
|
+
automatic_cluster_update_workspace=pulumi.get(__response__, 'automatic_cluster_update_workspace'),
|
|
317
|
+
boolean_val=pulumi.get(__response__, 'boolean_val'),
|
|
318
|
+
effective_aibi_dashboard_embedding_access_policy=pulumi.get(__response__, 'effective_aibi_dashboard_embedding_access_policy'),
|
|
319
|
+
effective_aibi_dashboard_embedding_approved_domains=pulumi.get(__response__, 'effective_aibi_dashboard_embedding_approved_domains'),
|
|
320
|
+
effective_automatic_cluster_update_workspace=pulumi.get(__response__, 'effective_automatic_cluster_update_workspace'),
|
|
321
|
+
effective_boolean_val=pulumi.get(__response__, 'effective_boolean_val'),
|
|
322
|
+
effective_integer_val=pulumi.get(__response__, 'effective_integer_val'),
|
|
323
|
+
effective_personal_compute=pulumi.get(__response__, 'effective_personal_compute'),
|
|
324
|
+
effective_restrict_workspace_admins=pulumi.get(__response__, 'effective_restrict_workspace_admins'),
|
|
325
|
+
effective_string_val=pulumi.get(__response__, 'effective_string_val'),
|
|
326
|
+
id=pulumi.get(__response__, 'id'),
|
|
327
|
+
integer_val=pulumi.get(__response__, 'integer_val'),
|
|
328
|
+
name=pulumi.get(__response__, 'name'),
|
|
329
|
+
personal_compute=pulumi.get(__response__, 'personal_compute'),
|
|
330
|
+
restrict_workspace_admins=pulumi.get(__response__, 'restrict_workspace_admins'),
|
|
331
|
+
string_val=pulumi.get(__response__, 'string_val')))
|
pulumi_databricks/get_zones.py
CHANGED
|
@@ -13,6 +13,8 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
16
18
|
|
|
17
19
|
__all__ = [
|
|
18
20
|
'GetZonesResult',
|
|
@@ -26,13 +28,16 @@ class GetZonesResult:
|
|
|
26
28
|
"""
|
|
27
29
|
A collection of values returned by getZones.
|
|
28
30
|
"""
|
|
29
|
-
def __init__(__self__, default_zone=None, id=None, zones=None):
|
|
31
|
+
def __init__(__self__, default_zone=None, id=None, provider_config=None, zones=None):
|
|
30
32
|
if default_zone and not isinstance(default_zone, str):
|
|
31
33
|
raise TypeError("Expected argument 'default_zone' to be a str")
|
|
32
34
|
pulumi.set(__self__, "default_zone", default_zone)
|
|
33
35
|
if id and not isinstance(id, str):
|
|
34
36
|
raise TypeError("Expected argument 'id' to be a str")
|
|
35
37
|
pulumi.set(__self__, "id", id)
|
|
38
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
39
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
40
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
36
41
|
if zones and not isinstance(zones, list):
|
|
37
42
|
raise TypeError("Expected argument 'zones' to be a list")
|
|
38
43
|
pulumi.set(__self__, "zones", zones)
|
|
@@ -53,6 +58,11 @@ class GetZonesResult:
|
|
|
53
58
|
"""
|
|
54
59
|
return pulumi.get(self, "id")
|
|
55
60
|
|
|
61
|
+
@_builtins.property
|
|
62
|
+
@pulumi.getter(name="providerConfig")
|
|
63
|
+
def provider_config(self) -> Optional['outputs.GetZonesProviderConfigResult']:
|
|
64
|
+
return pulumi.get(self, "provider_config")
|
|
65
|
+
|
|
56
66
|
@_builtins.property
|
|
57
67
|
@pulumi.getter
|
|
58
68
|
def zones(self) -> Sequence[_builtins.str]:
|
|
@@ -70,11 +80,13 @@ class AwaitableGetZonesResult(GetZonesResult):
|
|
|
70
80
|
return GetZonesResult(
|
|
71
81
|
default_zone=self.default_zone,
|
|
72
82
|
id=self.id,
|
|
83
|
+
provider_config=self.provider_config,
|
|
73
84
|
zones=self.zones)
|
|
74
85
|
|
|
75
86
|
|
|
76
87
|
def get_zones(default_zone: Optional[_builtins.str] = None,
|
|
77
88
|
id: Optional[_builtins.str] = None,
|
|
89
|
+
provider_config: Optional[Union['GetZonesProviderConfigArgs', 'GetZonesProviderConfigArgsDict']] = None,
|
|
78
90
|
zones: Optional[Sequence[_builtins.str]] = None,
|
|
79
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetZonesResult:
|
|
80
92
|
"""
|
|
@@ -94,11 +106,13 @@ def get_zones(default_zone: Optional[_builtins.str] = None,
|
|
|
94
106
|
|
|
95
107
|
:param _builtins.str default_zone: This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
|
|
96
108
|
:param _builtins.str id: The id for the zone object.
|
|
109
|
+
:param Union['GetZonesProviderConfigArgs', 'GetZonesProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
97
110
|
:param Sequence[_builtins.str] zones: This is a list of all the zones available for your subnets in your Databricks workspace.
|
|
98
111
|
"""
|
|
99
112
|
__args__ = dict()
|
|
100
113
|
__args__['defaultZone'] = default_zone
|
|
101
114
|
__args__['id'] = id
|
|
115
|
+
__args__['providerConfig'] = provider_config
|
|
102
116
|
__args__['zones'] = zones
|
|
103
117
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
104
118
|
__ret__ = pulumi.runtime.invoke('databricks:index/getZones:getZones', __args__, opts=opts, typ=GetZonesResult).value
|
|
@@ -106,9 +120,11 @@ def get_zones(default_zone: Optional[_builtins.str] = None,
|
|
|
106
120
|
return AwaitableGetZonesResult(
|
|
107
121
|
default_zone=pulumi.get(__ret__, 'default_zone'),
|
|
108
122
|
id=pulumi.get(__ret__, 'id'),
|
|
123
|
+
provider_config=pulumi.get(__ret__, 'provider_config'),
|
|
109
124
|
zones=pulumi.get(__ret__, 'zones'))
|
|
110
125
|
def get_zones_output(default_zone: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
111
126
|
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
127
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetZonesProviderConfigArgs', 'GetZonesProviderConfigArgsDict']]]] = None,
|
|
112
128
|
zones: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
113
129
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetZonesResult]:
|
|
114
130
|
"""
|
|
@@ -128,15 +144,18 @@ def get_zones_output(default_zone: Optional[pulumi.Input[Optional[_builtins.str]
|
|
|
128
144
|
|
|
129
145
|
:param _builtins.str default_zone: This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
|
|
130
146
|
:param _builtins.str id: The id for the zone object.
|
|
147
|
+
:param Union['GetZonesProviderConfigArgs', 'GetZonesProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
131
148
|
:param Sequence[_builtins.str] zones: This is a list of all the zones available for your subnets in your Databricks workspace.
|
|
132
149
|
"""
|
|
133
150
|
__args__ = dict()
|
|
134
151
|
__args__['defaultZone'] = default_zone
|
|
135
152
|
__args__['id'] = id
|
|
153
|
+
__args__['providerConfig'] = provider_config
|
|
136
154
|
__args__['zones'] = zones
|
|
137
155
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
138
156
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getZones:getZones', __args__, opts=opts, typ=GetZonesResult)
|
|
139
157
|
return __ret__.apply(lambda __response__: GetZonesResult(
|
|
140
158
|
default_zone=pulumi.get(__response__, 'default_zone'),
|
|
141
159
|
id=pulumi.get(__response__, 'id'),
|
|
160
|
+
provider_config=pulumi.get(__response__, 'provider_config'),
|
|
142
161
|
zones=pulumi.get(__response__, 'zones')))
|