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_catalog.py
CHANGED
|
@@ -28,7 +28,7 @@ class GetCatalogResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getCatalog.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, catalog_info=None, id=None, name=None):
|
|
31
|
+
def __init__(__self__, catalog_info=None, id=None, name=None, provider_config=None):
|
|
32
32
|
if catalog_info and not isinstance(catalog_info, dict):
|
|
33
33
|
raise TypeError("Expected argument 'catalog_info' to be a dict")
|
|
34
34
|
pulumi.set(__self__, "catalog_info", catalog_info)
|
|
@@ -38,6 +38,9 @@ class GetCatalogResult:
|
|
|
38
38
|
if name and not isinstance(name, str):
|
|
39
39
|
raise TypeError("Expected argument 'name' to be a str")
|
|
40
40
|
pulumi.set(__self__, "name", name)
|
|
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)
|
|
41
44
|
|
|
42
45
|
@_builtins.property
|
|
43
46
|
@pulumi.getter(name="catalogInfo")
|
|
@@ -63,6 +66,11 @@ class GetCatalogResult:
|
|
|
63
66
|
"""
|
|
64
67
|
return pulumi.get(self, "name")
|
|
65
68
|
|
|
69
|
+
@_builtins.property
|
|
70
|
+
@pulumi.getter(name="providerConfig")
|
|
71
|
+
def provider_config(self) -> Optional['outputs.GetCatalogProviderConfigResult']:
|
|
72
|
+
return pulumi.get(self, "provider_config")
|
|
73
|
+
|
|
66
74
|
|
|
67
75
|
class AwaitableGetCatalogResult(GetCatalogResult):
|
|
68
76
|
# pylint: disable=using-constant-test
|
|
@@ -72,12 +80,14 @@ class AwaitableGetCatalogResult(GetCatalogResult):
|
|
|
72
80
|
return GetCatalogResult(
|
|
73
81
|
catalog_info=self.catalog_info,
|
|
74
82
|
id=self.id,
|
|
75
|
-
name=self.name
|
|
83
|
+
name=self.name,
|
|
84
|
+
provider_config=self.provider_config)
|
|
76
85
|
|
|
77
86
|
|
|
78
87
|
def get_catalog(catalog_info: Optional[Union['GetCatalogCatalogInfoArgs', 'GetCatalogCatalogInfoArgsDict']] = None,
|
|
79
88
|
id: Optional[_builtins.str] = None,
|
|
80
89
|
name: Optional[_builtins.str] = None,
|
|
90
|
+
provider_config: Optional[Union['GetCatalogProviderConfigArgs', 'GetCatalogProviderConfigArgsDict']] = None,
|
|
81
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogResult:
|
|
82
92
|
"""
|
|
83
93
|
Retrieves details of a specific catalog in Unity Catalog, that were created by Pulumi or manually. Use get_catalogs to retrieve IDs of multiple catalogs from Unity Catalog
|
|
@@ -112,21 +122,25 @@ def get_catalog(catalog_info: Optional[Union['GetCatalogCatalogInfoArgs', 'GetCa
|
|
|
112
122
|
:param Union['GetCatalogCatalogInfoArgs', 'GetCatalogCatalogInfoArgsDict'] catalog_info: the [CatalogInfo](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/catalog#CatalogInfo) object for a Unity Catalog catalog. This contains the following attributes (see ):
|
|
113
123
|
:param _builtins.str id: same as the `name`
|
|
114
124
|
:param _builtins.str name: name of the catalog
|
|
125
|
+
:param Union['GetCatalogProviderConfigArgs', 'GetCatalogProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
115
126
|
"""
|
|
116
127
|
__args__ = dict()
|
|
117
128
|
__args__['catalogInfo'] = catalog_info
|
|
118
129
|
__args__['id'] = id
|
|
119
130
|
__args__['name'] = name
|
|
131
|
+
__args__['providerConfig'] = provider_config
|
|
120
132
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
121
133
|
__ret__ = pulumi.runtime.invoke('databricks:index/getCatalog:getCatalog', __args__, opts=opts, typ=GetCatalogResult).value
|
|
122
134
|
|
|
123
135
|
return AwaitableGetCatalogResult(
|
|
124
136
|
catalog_info=pulumi.get(__ret__, 'catalog_info'),
|
|
125
137
|
id=pulumi.get(__ret__, 'id'),
|
|
126
|
-
name=pulumi.get(__ret__, 'name')
|
|
138
|
+
name=pulumi.get(__ret__, 'name'),
|
|
139
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
127
140
|
def get_catalog_output(catalog_info: Optional[pulumi.Input[Optional[Union['GetCatalogCatalogInfoArgs', 'GetCatalogCatalogInfoArgsDict']]]] = None,
|
|
128
141
|
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
129
142
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
143
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetCatalogProviderConfigArgs', 'GetCatalogProviderConfigArgsDict']]]] = None,
|
|
130
144
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogResult]:
|
|
131
145
|
"""
|
|
132
146
|
Retrieves details of a specific catalog in Unity Catalog, that were created by Pulumi or manually. Use get_catalogs to retrieve IDs of multiple catalogs from Unity Catalog
|
|
@@ -161,14 +175,17 @@ def get_catalog_output(catalog_info: Optional[pulumi.Input[Optional[Union['GetCa
|
|
|
161
175
|
:param Union['GetCatalogCatalogInfoArgs', 'GetCatalogCatalogInfoArgsDict'] catalog_info: the [CatalogInfo](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/catalog#CatalogInfo) object for a Unity Catalog catalog. This contains the following attributes (see ):
|
|
162
176
|
:param _builtins.str id: same as the `name`
|
|
163
177
|
:param _builtins.str name: name of the catalog
|
|
178
|
+
:param Union['GetCatalogProviderConfigArgs', 'GetCatalogProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
164
179
|
"""
|
|
165
180
|
__args__ = dict()
|
|
166
181
|
__args__['catalogInfo'] = catalog_info
|
|
167
182
|
__args__['id'] = id
|
|
168
183
|
__args__['name'] = name
|
|
184
|
+
__args__['providerConfig'] = provider_config
|
|
169
185
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
170
186
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getCatalog:getCatalog', __args__, opts=opts, typ=GetCatalogResult)
|
|
171
187
|
return __ret__.apply(lambda __response__: GetCatalogResult(
|
|
172
188
|
catalog_info=pulumi.get(__response__, 'catalog_info'),
|
|
173
189
|
id=pulumi.get(__response__, 'id'),
|
|
174
|
-
name=pulumi.get(__response__, 'name')
|
|
190
|
+
name=pulumi.get(__response__, 'name'),
|
|
191
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
|
@@ -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
|
'GetCatalogsResult',
|
|
@@ -26,13 +28,16 @@ class GetCatalogsResult:
|
|
|
26
28
|
"""
|
|
27
29
|
A collection of values returned by getCatalogs.
|
|
28
30
|
"""
|
|
29
|
-
def __init__(__self__, id=None, ids=None):
|
|
31
|
+
def __init__(__self__, id=None, ids=None, provider_config=None):
|
|
30
32
|
if id and not isinstance(id, str):
|
|
31
33
|
raise TypeError("Expected argument 'id' to be a str")
|
|
32
34
|
pulumi.set(__self__, "id", id)
|
|
33
35
|
if ids and not isinstance(ids, list):
|
|
34
36
|
raise TypeError("Expected argument 'ids' to be a list")
|
|
35
37
|
pulumi.set(__self__, "ids", ids)
|
|
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
|
|
|
37
42
|
@_builtins.property
|
|
38
43
|
@pulumi.getter
|
|
@@ -50,6 +55,11 @@ class GetCatalogsResult:
|
|
|
50
55
|
"""
|
|
51
56
|
return pulumi.get(self, "ids")
|
|
52
57
|
|
|
58
|
+
@_builtins.property
|
|
59
|
+
@pulumi.getter(name="providerConfig")
|
|
60
|
+
def provider_config(self) -> Optional['outputs.GetCatalogsProviderConfigResult']:
|
|
61
|
+
return pulumi.get(self, "provider_config")
|
|
62
|
+
|
|
53
63
|
|
|
54
64
|
class AwaitableGetCatalogsResult(GetCatalogsResult):
|
|
55
65
|
# pylint: disable=using-constant-test
|
|
@@ -58,10 +68,12 @@ class AwaitableGetCatalogsResult(GetCatalogsResult):
|
|
|
58
68
|
yield self
|
|
59
69
|
return GetCatalogsResult(
|
|
60
70
|
id=self.id,
|
|
61
|
-
ids=self.ids
|
|
71
|
+
ids=self.ids,
|
|
72
|
+
provider_config=self.provider_config)
|
|
62
73
|
|
|
63
74
|
|
|
64
75
|
def get_catalogs(ids: Optional[Sequence[_builtins.str]] = None,
|
|
76
|
+
provider_config: Optional[Union['GetCatalogsProviderConfigArgs', 'GetCatalogsProviderConfigArgsDict']] = None,
|
|
65
77
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogsResult:
|
|
66
78
|
"""
|
|
67
79
|
Retrieves a list of Catalog ids, that were created by Pulumi or manually, so that special handling could be applied.
|
|
@@ -89,16 +101,20 @@ def get_catalogs(ids: Optional[Sequence[_builtins.str]] = None,
|
|
|
89
101
|
|
|
90
102
|
|
|
91
103
|
:param Sequence[_builtins.str] ids: set of Catalog names
|
|
104
|
+
:param Union['GetCatalogsProviderConfigArgs', 'GetCatalogsProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
92
105
|
"""
|
|
93
106
|
__args__ = dict()
|
|
94
107
|
__args__['ids'] = ids
|
|
108
|
+
__args__['providerConfig'] = provider_config
|
|
95
109
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
96
110
|
__ret__ = pulumi.runtime.invoke('databricks:index/getCatalogs:getCatalogs', __args__, opts=opts, typ=GetCatalogsResult).value
|
|
97
111
|
|
|
98
112
|
return AwaitableGetCatalogsResult(
|
|
99
113
|
id=pulumi.get(__ret__, 'id'),
|
|
100
|
-
ids=pulumi.get(__ret__, 'ids')
|
|
114
|
+
ids=pulumi.get(__ret__, 'ids'),
|
|
115
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
101
116
|
def get_catalogs_output(ids: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
117
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetCatalogsProviderConfigArgs', 'GetCatalogsProviderConfigArgsDict']]]] = None,
|
|
102
118
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogsResult]:
|
|
103
119
|
"""
|
|
104
120
|
Retrieves a list of Catalog ids, that were created by Pulumi or manually, so that special handling could be applied.
|
|
@@ -126,11 +142,14 @@ def get_catalogs_output(ids: Optional[pulumi.Input[Optional[Sequence[_builtins.s
|
|
|
126
142
|
|
|
127
143
|
|
|
128
144
|
:param Sequence[_builtins.str] ids: set of Catalog names
|
|
145
|
+
:param Union['GetCatalogsProviderConfigArgs', 'GetCatalogsProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
129
146
|
"""
|
|
130
147
|
__args__ = dict()
|
|
131
148
|
__args__['ids'] = ids
|
|
149
|
+
__args__['providerConfig'] = provider_config
|
|
132
150
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
133
151
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getCatalogs:getCatalogs', __args__, opts=opts, typ=GetCatalogsResult)
|
|
134
152
|
return __ret__.apply(lambda __response__: GetCatalogsResult(
|
|
135
153
|
id=pulumi.get(__response__, 'id'),
|
|
136
|
-
ids=pulumi.get(__response__, 'ids')
|
|
154
|
+
ids=pulumi.get(__response__, 'ids'),
|
|
155
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
pulumi_databricks/get_cluster.py
CHANGED
|
@@ -28,7 +28,7 @@ class GetClusterResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getCluster.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, cluster_id=None, cluster_info=None, cluster_name=None, id=None):
|
|
31
|
+
def __init__(__self__, cluster_id=None, cluster_info=None, cluster_name=None, id=None, provider_config=None):
|
|
32
32
|
if cluster_id and not isinstance(cluster_id, str):
|
|
33
33
|
raise TypeError("Expected argument 'cluster_id' to be a str")
|
|
34
34
|
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
@@ -41,6 +41,9 @@ class GetClusterResult:
|
|
|
41
41
|
if id and not isinstance(id, str):
|
|
42
42
|
raise TypeError("Expected argument 'id' to be a str")
|
|
43
43
|
pulumi.set(__self__, "id", id)
|
|
44
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
45
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
46
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
44
47
|
|
|
45
48
|
@_builtins.property
|
|
46
49
|
@pulumi.getter(name="clusterId")
|
|
@@ -71,6 +74,11 @@ class GetClusterResult:
|
|
|
71
74
|
"""
|
|
72
75
|
return pulumi.get(self, "id")
|
|
73
76
|
|
|
77
|
+
@_builtins.property
|
|
78
|
+
@pulumi.getter(name="providerConfig")
|
|
79
|
+
def provider_config(self) -> Optional['outputs.GetClusterProviderConfigResult']:
|
|
80
|
+
return pulumi.get(self, "provider_config")
|
|
81
|
+
|
|
74
82
|
|
|
75
83
|
class AwaitableGetClusterResult(GetClusterResult):
|
|
76
84
|
# pylint: disable=using-constant-test
|
|
@@ -81,13 +89,15 @@ class AwaitableGetClusterResult(GetClusterResult):
|
|
|
81
89
|
cluster_id=self.cluster_id,
|
|
82
90
|
cluster_info=self.cluster_info,
|
|
83
91
|
cluster_name=self.cluster_name,
|
|
84
|
-
id=self.id
|
|
92
|
+
id=self.id,
|
|
93
|
+
provider_config=self.provider_config)
|
|
85
94
|
|
|
86
95
|
|
|
87
96
|
def get_cluster(cluster_id: Optional[_builtins.str] = None,
|
|
88
97
|
cluster_info: Optional[Union['GetClusterClusterInfoArgs', 'GetClusterClusterInfoArgsDict']] = None,
|
|
89
98
|
cluster_name: Optional[_builtins.str] = None,
|
|
90
99
|
id: Optional[_builtins.str] = None,
|
|
100
|
+
provider_config: Optional[Union['GetClusterProviderConfigArgs', 'GetClusterProviderConfigArgsDict']] = None,
|
|
91
101
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClusterResult:
|
|
92
102
|
"""
|
|
93
103
|
Retrieves information about a Cluster using its id. This could be retrieved programmatically using get_clusters data source.
|
|
@@ -111,12 +121,14 @@ def get_cluster(cluster_id: Optional[_builtins.str] = None,
|
|
|
111
121
|
:param Union['GetClusterClusterInfoArgs', 'GetClusterClusterInfoArgsDict'] cluster_info: block, consisting of following fields:
|
|
112
122
|
:param _builtins.str cluster_name: The exact name of the cluster to search. Can only be specified if there is exactly one cluster with the provided name.
|
|
113
123
|
:param _builtins.str id: cluster ID
|
|
124
|
+
:param Union['GetClusterProviderConfigArgs', 'GetClusterProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
114
125
|
"""
|
|
115
126
|
__args__ = dict()
|
|
116
127
|
__args__['clusterId'] = cluster_id
|
|
117
128
|
__args__['clusterInfo'] = cluster_info
|
|
118
129
|
__args__['clusterName'] = cluster_name
|
|
119
130
|
__args__['id'] = id
|
|
131
|
+
__args__['providerConfig'] = provider_config
|
|
120
132
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
121
133
|
__ret__ = pulumi.runtime.invoke('databricks:index/getCluster:getCluster', __args__, opts=opts, typ=GetClusterResult).value
|
|
122
134
|
|
|
@@ -124,11 +136,13 @@ def get_cluster(cluster_id: Optional[_builtins.str] = None,
|
|
|
124
136
|
cluster_id=pulumi.get(__ret__, 'cluster_id'),
|
|
125
137
|
cluster_info=pulumi.get(__ret__, 'cluster_info'),
|
|
126
138
|
cluster_name=pulumi.get(__ret__, 'cluster_name'),
|
|
127
|
-
id=pulumi.get(__ret__, 'id')
|
|
139
|
+
id=pulumi.get(__ret__, 'id'),
|
|
140
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
128
141
|
def get_cluster_output(cluster_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
129
142
|
cluster_info: Optional[pulumi.Input[Optional[Union['GetClusterClusterInfoArgs', 'GetClusterClusterInfoArgsDict']]]] = None,
|
|
130
143
|
cluster_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
131
144
|
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
145
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetClusterProviderConfigArgs', 'GetClusterProviderConfigArgsDict']]]] = None,
|
|
132
146
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterResult]:
|
|
133
147
|
"""
|
|
134
148
|
Retrieves information about a Cluster using its id. This could be retrieved programmatically using get_clusters data source.
|
|
@@ -152,16 +166,19 @@ def get_cluster_output(cluster_id: Optional[pulumi.Input[Optional[_builtins.str]
|
|
|
152
166
|
:param Union['GetClusterClusterInfoArgs', 'GetClusterClusterInfoArgsDict'] cluster_info: block, consisting of following fields:
|
|
153
167
|
:param _builtins.str cluster_name: The exact name of the cluster to search. Can only be specified if there is exactly one cluster with the provided name.
|
|
154
168
|
:param _builtins.str id: cluster ID
|
|
169
|
+
:param Union['GetClusterProviderConfigArgs', 'GetClusterProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
155
170
|
"""
|
|
156
171
|
__args__ = dict()
|
|
157
172
|
__args__['clusterId'] = cluster_id
|
|
158
173
|
__args__['clusterInfo'] = cluster_info
|
|
159
174
|
__args__['clusterName'] = cluster_name
|
|
160
175
|
__args__['id'] = id
|
|
176
|
+
__args__['providerConfig'] = provider_config
|
|
161
177
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
162
178
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getCluster:getCluster', __args__, opts=opts, typ=GetClusterResult)
|
|
163
179
|
return __ret__.apply(lambda __response__: GetClusterResult(
|
|
164
180
|
cluster_id=pulumi.get(__response__, 'cluster_id'),
|
|
165
181
|
cluster_info=pulumi.get(__response__, 'cluster_info'),
|
|
166
182
|
cluster_name=pulumi.get(__response__, 'cluster_name'),
|
|
167
|
-
id=pulumi.get(__response__, 'id')
|
|
183
|
+
id=pulumi.get(__response__, 'id'),
|
|
184
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
|
@@ -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
|
'GetClusterPolicyResult',
|
|
@@ -26,7 +28,7 @@ class GetClusterPolicyResult:
|
|
|
26
28
|
"""
|
|
27
29
|
A collection of values returned by getClusterPolicy.
|
|
28
30
|
"""
|
|
29
|
-
def __init__(__self__, definition=None, description=None, id=None, is_default=None, max_clusters_per_user=None, name=None, policy_family_definition_overrides=None, policy_family_id=None):
|
|
31
|
+
def __init__(__self__, definition=None, description=None, id=None, is_default=None, max_clusters_per_user=None, name=None, policy_family_definition_overrides=None, policy_family_id=None, provider_config=None):
|
|
30
32
|
if definition and not isinstance(definition, str):
|
|
31
33
|
raise TypeError("Expected argument 'definition' to be a str")
|
|
32
34
|
pulumi.set(__self__, "definition", definition)
|
|
@@ -51,6 +53,9 @@ class GetClusterPolicyResult:
|
|
|
51
53
|
if policy_family_id and not isinstance(policy_family_id, str):
|
|
52
54
|
raise TypeError("Expected argument 'policy_family_id' to be a str")
|
|
53
55
|
pulumi.set(__self__, "policy_family_id", policy_family_id)
|
|
56
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
57
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
58
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
54
59
|
|
|
55
60
|
@_builtins.property
|
|
56
61
|
@pulumi.getter
|
|
@@ -113,6 +118,11 @@ class GetClusterPolicyResult:
|
|
|
113
118
|
"""
|
|
114
119
|
return pulumi.get(self, "policy_family_id")
|
|
115
120
|
|
|
121
|
+
@_builtins.property
|
|
122
|
+
@pulumi.getter(name="providerConfig")
|
|
123
|
+
def provider_config(self) -> Optional['outputs.GetClusterPolicyProviderConfigResult']:
|
|
124
|
+
return pulumi.get(self, "provider_config")
|
|
125
|
+
|
|
116
126
|
|
|
117
127
|
class AwaitableGetClusterPolicyResult(GetClusterPolicyResult):
|
|
118
128
|
# pylint: disable=using-constant-test
|
|
@@ -127,7 +137,8 @@ class AwaitableGetClusterPolicyResult(GetClusterPolicyResult):
|
|
|
127
137
|
max_clusters_per_user=self.max_clusters_per_user,
|
|
128
138
|
name=self.name,
|
|
129
139
|
policy_family_definition_overrides=self.policy_family_definition_overrides,
|
|
130
|
-
policy_family_id=self.policy_family_id
|
|
140
|
+
policy_family_id=self.policy_family_id,
|
|
141
|
+
provider_config=self.provider_config)
|
|
131
142
|
|
|
132
143
|
|
|
133
144
|
def get_cluster_policy(definition: Optional[_builtins.str] = None,
|
|
@@ -138,6 +149,7 @@ def get_cluster_policy(definition: Optional[_builtins.str] = None,
|
|
|
138
149
|
name: Optional[_builtins.str] = None,
|
|
139
150
|
policy_family_definition_overrides: Optional[_builtins.str] = None,
|
|
140
151
|
policy_family_id: Optional[_builtins.str] = None,
|
|
152
|
+
provider_config: Optional[Union['GetClusterPolicyProviderConfigArgs', 'GetClusterPolicyProviderConfigArgsDict']] = None,
|
|
141
153
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClusterPolicyResult:
|
|
142
154
|
"""
|
|
143
155
|
Retrieves information about databricks_cluster_policy.
|
|
@@ -165,6 +177,7 @@ def get_cluster_policy(definition: Optional[_builtins.str] = None,
|
|
|
165
177
|
:param _builtins.str name: Name of the cluster policy. The cluster policy must exist before this resource can be planned.
|
|
166
178
|
:param _builtins.str policy_family_definition_overrides: Policy definition JSON document expressed in Databricks [Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definitions).
|
|
167
179
|
:param _builtins.str policy_family_id: ID of the policy family.
|
|
180
|
+
:param Union['GetClusterPolicyProviderConfigArgs', 'GetClusterPolicyProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
168
181
|
"""
|
|
169
182
|
__args__ = dict()
|
|
170
183
|
__args__['definition'] = definition
|
|
@@ -175,6 +188,7 @@ def get_cluster_policy(definition: Optional[_builtins.str] = None,
|
|
|
175
188
|
__args__['name'] = name
|
|
176
189
|
__args__['policyFamilyDefinitionOverrides'] = policy_family_definition_overrides
|
|
177
190
|
__args__['policyFamilyId'] = policy_family_id
|
|
191
|
+
__args__['providerConfig'] = provider_config
|
|
178
192
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
179
193
|
__ret__ = pulumi.runtime.invoke('databricks:index/getClusterPolicy:getClusterPolicy', __args__, opts=opts, typ=GetClusterPolicyResult).value
|
|
180
194
|
|
|
@@ -186,7 +200,8 @@ def get_cluster_policy(definition: Optional[_builtins.str] = None,
|
|
|
186
200
|
max_clusters_per_user=pulumi.get(__ret__, 'max_clusters_per_user'),
|
|
187
201
|
name=pulumi.get(__ret__, 'name'),
|
|
188
202
|
policy_family_definition_overrides=pulumi.get(__ret__, 'policy_family_definition_overrides'),
|
|
189
|
-
policy_family_id=pulumi.get(__ret__, 'policy_family_id')
|
|
203
|
+
policy_family_id=pulumi.get(__ret__, 'policy_family_id'),
|
|
204
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
190
205
|
def get_cluster_policy_output(definition: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
191
206
|
description: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
192
207
|
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
@@ -195,6 +210,7 @@ def get_cluster_policy_output(definition: Optional[pulumi.Input[Optional[_builti
|
|
|
195
210
|
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
196
211
|
policy_family_definition_overrides: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
197
212
|
policy_family_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
213
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetClusterPolicyProviderConfigArgs', 'GetClusterPolicyProviderConfigArgsDict']]]] = None,
|
|
198
214
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterPolicyResult]:
|
|
199
215
|
"""
|
|
200
216
|
Retrieves information about databricks_cluster_policy.
|
|
@@ -222,6 +238,7 @@ def get_cluster_policy_output(definition: Optional[pulumi.Input[Optional[_builti
|
|
|
222
238
|
:param _builtins.str name: Name of the cluster policy. The cluster policy must exist before this resource can be planned.
|
|
223
239
|
:param _builtins.str policy_family_definition_overrides: Policy definition JSON document expressed in Databricks [Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definitions).
|
|
224
240
|
:param _builtins.str policy_family_id: ID of the policy family.
|
|
241
|
+
:param Union['GetClusterPolicyProviderConfigArgs', 'GetClusterPolicyProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
225
242
|
"""
|
|
226
243
|
__args__ = dict()
|
|
227
244
|
__args__['definition'] = definition
|
|
@@ -232,6 +249,7 @@ def get_cluster_policy_output(definition: Optional[pulumi.Input[Optional[_builti
|
|
|
232
249
|
__args__['name'] = name
|
|
233
250
|
__args__['policyFamilyDefinitionOverrides'] = policy_family_definition_overrides
|
|
234
251
|
__args__['policyFamilyId'] = policy_family_id
|
|
252
|
+
__args__['providerConfig'] = provider_config
|
|
235
253
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
236
254
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getClusterPolicy:getClusterPolicy', __args__, opts=opts, typ=GetClusterPolicyResult)
|
|
237
255
|
return __ret__.apply(lambda __response__: GetClusterPolicyResult(
|
|
@@ -242,4 +260,5 @@ def get_cluster_policy_output(definition: Optional[pulumi.Input[Optional[_builti
|
|
|
242
260
|
max_clusters_per_user=pulumi.get(__response__, 'max_clusters_per_user'),
|
|
243
261
|
name=pulumi.get(__response__, 'name'),
|
|
244
262
|
policy_family_definition_overrides=pulumi.get(__response__, 'policy_family_definition_overrides'),
|
|
245
|
-
policy_family_id=pulumi.get(__response__, 'policy_family_id')
|
|
263
|
+
policy_family_id=pulumi.get(__response__, 'policy_family_id'),
|
|
264
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
|
@@ -28,7 +28,7 @@ class GetClustersResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getClusters.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, cluster_name_contains=None, filter_by=None, id=None, ids=None):
|
|
31
|
+
def __init__(__self__, cluster_name_contains=None, filter_by=None, id=None, ids=None, provider_config=None):
|
|
32
32
|
if cluster_name_contains and not isinstance(cluster_name_contains, str):
|
|
33
33
|
raise TypeError("Expected argument 'cluster_name_contains' to be a str")
|
|
34
34
|
pulumi.set(__self__, "cluster_name_contains", cluster_name_contains)
|
|
@@ -41,6 +41,9 @@ class GetClustersResult:
|
|
|
41
41
|
if ids and not isinstance(ids, list):
|
|
42
42
|
raise TypeError("Expected argument 'ids' to be a list")
|
|
43
43
|
pulumi.set(__self__, "ids", ids)
|
|
44
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
45
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
46
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
44
47
|
|
|
45
48
|
@_builtins.property
|
|
46
49
|
@pulumi.getter(name="clusterNameContains")
|
|
@@ -65,6 +68,11 @@ class GetClustersResult:
|
|
|
65
68
|
"""
|
|
66
69
|
return pulumi.get(self, "ids")
|
|
67
70
|
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter(name="providerConfig")
|
|
73
|
+
def provider_config(self) -> Optional['outputs.GetClustersProviderConfigResult']:
|
|
74
|
+
return pulumi.get(self, "provider_config")
|
|
75
|
+
|
|
68
76
|
|
|
69
77
|
class AwaitableGetClustersResult(GetClustersResult):
|
|
70
78
|
# pylint: disable=using-constant-test
|
|
@@ -75,13 +83,15 @@ class AwaitableGetClustersResult(GetClustersResult):
|
|
|
75
83
|
cluster_name_contains=self.cluster_name_contains,
|
|
76
84
|
filter_by=self.filter_by,
|
|
77
85
|
id=self.id,
|
|
78
|
-
ids=self.ids
|
|
86
|
+
ids=self.ids,
|
|
87
|
+
provider_config=self.provider_config)
|
|
79
88
|
|
|
80
89
|
|
|
81
90
|
def get_clusters(cluster_name_contains: Optional[_builtins.str] = None,
|
|
82
91
|
filter_by: Optional[Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict']] = None,
|
|
83
92
|
id: Optional[_builtins.str] = None,
|
|
84
93
|
ids: Optional[Sequence[_builtins.str]] = None,
|
|
94
|
+
provider_config: Optional[Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict']] = None,
|
|
85
95
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClustersResult:
|
|
86
96
|
"""
|
|
87
97
|
Retrieves a list of Cluster ids, that were created by Pulumi or manually, with or without databricks_cluster_policy.
|
|
@@ -146,12 +156,14 @@ def get_clusters(cluster_name_contains: Optional[_builtins.str] = None,
|
|
|
146
156
|
:param _builtins.str cluster_name_contains: Only return Cluster ids that match the given name string.
|
|
147
157
|
:param Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict'] filter_by: Filters to apply to the listed clusters. See filter_by Configuration Block below for details.
|
|
148
158
|
:param Sequence[_builtins.str] ids: list of Cluster ids
|
|
159
|
+
:param Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
149
160
|
"""
|
|
150
161
|
__args__ = dict()
|
|
151
162
|
__args__['clusterNameContains'] = cluster_name_contains
|
|
152
163
|
__args__['filterBy'] = filter_by
|
|
153
164
|
__args__['id'] = id
|
|
154
165
|
__args__['ids'] = ids
|
|
166
|
+
__args__['providerConfig'] = provider_config
|
|
155
167
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
156
168
|
__ret__ = pulumi.runtime.invoke('databricks:index/getClusters:getClusters', __args__, opts=opts, typ=GetClustersResult).value
|
|
157
169
|
|
|
@@ -159,11 +171,13 @@ def get_clusters(cluster_name_contains: Optional[_builtins.str] = None,
|
|
|
159
171
|
cluster_name_contains=pulumi.get(__ret__, 'cluster_name_contains'),
|
|
160
172
|
filter_by=pulumi.get(__ret__, 'filter_by'),
|
|
161
173
|
id=pulumi.get(__ret__, 'id'),
|
|
162
|
-
ids=pulumi.get(__ret__, 'ids')
|
|
174
|
+
ids=pulumi.get(__ret__, 'ids'),
|
|
175
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
163
176
|
def get_clusters_output(cluster_name_contains: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
164
177
|
filter_by: Optional[pulumi.Input[Optional[Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict']]]] = None,
|
|
165
178
|
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
166
179
|
ids: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
180
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict']]]] = None,
|
|
167
181
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClustersResult]:
|
|
168
182
|
"""
|
|
169
183
|
Retrieves a list of Cluster ids, that were created by Pulumi or manually, with or without databricks_cluster_policy.
|
|
@@ -228,16 +242,19 @@ def get_clusters_output(cluster_name_contains: Optional[pulumi.Input[Optional[_b
|
|
|
228
242
|
:param _builtins.str cluster_name_contains: Only return Cluster ids that match the given name string.
|
|
229
243
|
:param Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict'] filter_by: Filters to apply to the listed clusters. See filter_by Configuration Block below for details.
|
|
230
244
|
:param Sequence[_builtins.str] ids: list of Cluster ids
|
|
245
|
+
:param Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
231
246
|
"""
|
|
232
247
|
__args__ = dict()
|
|
233
248
|
__args__['clusterNameContains'] = cluster_name_contains
|
|
234
249
|
__args__['filterBy'] = filter_by
|
|
235
250
|
__args__['id'] = id
|
|
236
251
|
__args__['ids'] = ids
|
|
252
|
+
__args__['providerConfig'] = provider_config
|
|
237
253
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
238
254
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getClusters:getClusters', __args__, opts=opts, typ=GetClustersResult)
|
|
239
255
|
return __ret__.apply(lambda __response__: GetClustersResult(
|
|
240
256
|
cluster_name_contains=pulumi.get(__response__, 'cluster_name_contains'),
|
|
241
257
|
filter_by=pulumi.get(__response__, 'filter_by'),
|
|
242
258
|
id=pulumi.get(__response__, 'id'),
|
|
243
|
-
ids=pulumi.get(__response__, 'ids')
|
|
259
|
+
ids=pulumi.get(__response__, 'ids'),
|
|
260
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
|
@@ -28,13 +28,16 @@ class GetCurrentMetastoreResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getCurrentMetastore.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, id=None, metastore_info=None):
|
|
31
|
+
def __init__(__self__, id=None, metastore_info=None, provider_config=None):
|
|
32
32
|
if id and not isinstance(id, str):
|
|
33
33
|
raise TypeError("Expected argument 'id' to be a str")
|
|
34
34
|
pulumi.set(__self__, "id", id)
|
|
35
35
|
if metastore_info and not isinstance(metastore_info, dict):
|
|
36
36
|
raise TypeError("Expected argument 'metastore_info' to be a dict")
|
|
37
37
|
pulumi.set(__self__, "metastore_info", metastore_info)
|
|
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)
|
|
38
41
|
|
|
39
42
|
@_builtins.property
|
|
40
43
|
@pulumi.getter
|
|
@@ -52,6 +55,11 @@ class GetCurrentMetastoreResult:
|
|
|
52
55
|
"""
|
|
53
56
|
return pulumi.get(self, "metastore_info")
|
|
54
57
|
|
|
58
|
+
@_builtins.property
|
|
59
|
+
@pulumi.getter(name="providerConfig")
|
|
60
|
+
def provider_config(self) -> Optional['outputs.GetCurrentMetastoreProviderConfigResult']:
|
|
61
|
+
return pulumi.get(self, "provider_config")
|
|
62
|
+
|
|
55
63
|
|
|
56
64
|
class AwaitableGetCurrentMetastoreResult(GetCurrentMetastoreResult):
|
|
57
65
|
# pylint: disable=using-constant-test
|
|
@@ -60,11 +68,13 @@ class AwaitableGetCurrentMetastoreResult(GetCurrentMetastoreResult):
|
|
|
60
68
|
yield self
|
|
61
69
|
return GetCurrentMetastoreResult(
|
|
62
70
|
id=self.id,
|
|
63
|
-
metastore_info=self.metastore_info
|
|
71
|
+
metastore_info=self.metastore_info,
|
|
72
|
+
provider_config=self.provider_config)
|
|
64
73
|
|
|
65
74
|
|
|
66
75
|
def get_current_metastore(id: Optional[_builtins.str] = None,
|
|
67
76
|
metastore_info: Optional[Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict']] = None,
|
|
77
|
+
provider_config: Optional[Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict']] = None,
|
|
68
78
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCurrentMetastoreResult:
|
|
69
79
|
"""
|
|
70
80
|
Retrieves information about metastore attached to a given workspace.
|
|
@@ -95,18 +105,22 @@ def get_current_metastore(id: Optional[_builtins.str] = None,
|
|
|
95
105
|
|
|
96
106
|
:param _builtins.str id: metastore ID. Will be `no_metastore` if there is no metastore assigned for the current workspace
|
|
97
107
|
:param Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict'] metastore_info: summary about a metastore attached to the current workspace returned by [Get a metastore summary API](https://docs.databricks.com/api/workspace/metastores/summary). This contains the following attributes (check the API page for up-to-date details):
|
|
108
|
+
:param Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
98
109
|
"""
|
|
99
110
|
__args__ = dict()
|
|
100
111
|
__args__['id'] = id
|
|
101
112
|
__args__['metastoreInfo'] = metastore_info
|
|
113
|
+
__args__['providerConfig'] = provider_config
|
|
102
114
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
103
115
|
__ret__ = pulumi.runtime.invoke('databricks:index/getCurrentMetastore:getCurrentMetastore', __args__, opts=opts, typ=GetCurrentMetastoreResult).value
|
|
104
116
|
|
|
105
117
|
return AwaitableGetCurrentMetastoreResult(
|
|
106
118
|
id=pulumi.get(__ret__, 'id'),
|
|
107
|
-
metastore_info=pulumi.get(__ret__, 'metastore_info')
|
|
119
|
+
metastore_info=pulumi.get(__ret__, 'metastore_info'),
|
|
120
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
108
121
|
def get_current_metastore_output(id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
109
122
|
metastore_info: Optional[pulumi.Input[Optional[Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict']]]] = None,
|
|
123
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict']]]] = None,
|
|
110
124
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCurrentMetastoreResult]:
|
|
111
125
|
"""
|
|
112
126
|
Retrieves information about metastore attached to a given workspace.
|
|
@@ -137,12 +151,15 @@ def get_current_metastore_output(id: Optional[pulumi.Input[Optional[_builtins.st
|
|
|
137
151
|
|
|
138
152
|
:param _builtins.str id: metastore ID. Will be `no_metastore` if there is no metastore assigned for the current workspace
|
|
139
153
|
:param Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict'] metastore_info: summary about a metastore attached to the current workspace returned by [Get a metastore summary API](https://docs.databricks.com/api/workspace/metastores/summary). This contains the following attributes (check the API page for up-to-date details):
|
|
154
|
+
:param Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
140
155
|
"""
|
|
141
156
|
__args__ = dict()
|
|
142
157
|
__args__['id'] = id
|
|
143
158
|
__args__['metastoreInfo'] = metastore_info
|
|
159
|
+
__args__['providerConfig'] = provider_config
|
|
144
160
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
145
161
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getCurrentMetastore:getCurrentMetastore', __args__, opts=opts, typ=GetCurrentMetastoreResult)
|
|
146
162
|
return __ret__.apply(lambda __response__: GetCurrentMetastoreResult(
|
|
147
163
|
id=pulumi.get(__response__, 'id'),
|
|
148
|
-
metastore_info=pulumi.get(__response__, 'metastore_info')
|
|
164
|
+
metastore_info=pulumi.get(__response__, 'metastore_info'),
|
|
165
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|