pulumi-databricks 1.77.0a1761975834__py3-none-any.whl → 1.79.0a1762839813__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_databricks/__init__.py +54 -46
- pulumi_databricks/_inputs.py +26079 -32918
- pulumi_databricks/account_federation_policy.py +44 -16
- pulumi_databricks/account_network_policy.py +56 -2
- pulumi_databricks/account_setting_v2.py +46 -83
- pulumi_databricks/alert_v2.py +168 -134
- pulumi_databricks/app.py +153 -0
- pulumi_databricks/apps_settings_custom_template.py +75 -52
- pulumi_databricks/budget_policy.py +6 -2
- pulumi_databricks/catalog.py +65 -23
- pulumi_databricks/cluster.py +47 -168
- pulumi_databricks/cluster_policy.py +120 -0
- pulumi_databricks/config/__init__.pyi +4 -0
- pulumi_databricks/config/vars.py +8 -0
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +9 -52
- pulumi_databricks/database_instance.py +271 -120
- pulumi_databricks/database_synced_database_table.py +239 -52
- pulumi_databricks/entitlements.py +21 -21
- pulumi_databricks/entity_tag_assignment.py +83 -52
- pulumi_databricks/external_location.py +131 -7
- pulumi_databricks/external_metadata.py +16 -59
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/file.py +2 -2
- pulumi_databricks/get_account_federation_policies.py +22 -3
- pulumi_databricks/get_account_federation_policy.py +12 -27
- pulumi_databricks/get_account_network_policies.py +4 -0
- pulumi_databricks/get_account_network_policy.py +9 -18
- pulumi_databricks/get_account_setting_v2.py +36 -141
- pulumi_databricks/get_alert_v2.py +41 -107
- pulumi_databricks/get_alerts_v2.py +29 -31
- pulumi_databricks/get_app.py +21 -5
- pulumi_databricks/get_apps.py +22 -6
- pulumi_databricks/get_apps_settings_custom_template.py +11 -55
- pulumi_databricks/get_apps_settings_custom_templates.py +25 -21
- pulumi_databricks/get_aws_assume_role_policy.py +14 -14
- pulumi_databricks/get_aws_bucket_policy.py +10 -10
- pulumi_databricks/get_aws_unity_catalog_assume_role_policy.py +10 -10
- pulumi_databricks/get_aws_unity_catalog_policy.py +10 -10
- pulumi_databricks/get_budget_policies.py +70 -6
- pulumi_databricks/get_budget_policy.py +9 -32
- pulumi_databricks/get_catalog.py +21 -4
- pulumi_databricks/get_catalogs.py +23 -4
- pulumi_databricks/get_cluster.py +75 -4
- pulumi_databricks/get_cluster_policy.py +23 -4
- pulumi_databricks/get_clusters.py +21 -4
- pulumi_databricks/get_current_config.py +4 -4
- pulumi_databricks/get_current_metastore.py +21 -4
- pulumi_databricks/get_dashboards.py +20 -4
- pulumi_databricks/get_data_quality_monitor.py +210 -0
- pulumi_databricks/get_data_quality_monitors.py +143 -0
- pulumi_databricks/get_data_quality_refresh.py +270 -0
- pulumi_databricks/get_data_quality_refreshes.py +207 -0
- pulumi_databricks/get_database_database_catalog.py +10 -41
- pulumi_databricks/get_database_database_catalogs.py +37 -18
- pulumi_databricks/get_database_instance.py +93 -99
- pulumi_databricks/get_database_instances.py +20 -16
- pulumi_databricks/get_database_synced_database_table.py +11 -49
- pulumi_databricks/get_database_synced_database_tables.py +42 -23
- pulumi_databricks/get_directory.py +20 -1
- pulumi_databricks/get_entity_tag_assignment.py +63 -30
- pulumi_databricks/get_entity_tag_assignments.py +69 -23
- pulumi_databricks/get_external_location.py +21 -4
- pulumi_databricks/get_external_locations.py +23 -4
- pulumi_databricks/get_external_metadata.py +18 -73
- pulumi_databricks/get_external_metadatas.py +22 -16
- pulumi_databricks/get_feature_engineering_feature.py +179 -0
- pulumi_databricks/get_feature_engineering_features.py +103 -0
- pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
- pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
- pulumi_databricks/get_functions.py +16 -1
- pulumi_databricks/get_instance_profiles.py +21 -4
- pulumi_databricks/get_jobs.py +23 -4
- pulumi_databricks/get_materialized_features_feature_tag.py +7 -32
- pulumi_databricks/get_materialized_features_feature_tags.py +50 -18
- pulumi_databricks/get_metastore.py +6 -6
- pulumi_databricks/get_mlflow_experiment.py +18 -1
- pulumi_databricks/get_mlflow_model.py +18 -1
- pulumi_databricks/get_mlflow_models.py +23 -4
- pulumi_databricks/get_node_type.py +42 -5
- pulumi_databricks/get_notebook.py +20 -1
- pulumi_databricks/get_notification_destinations.py +17 -1
- pulumi_databricks/get_online_store.py +11 -38
- pulumi_databricks/get_online_stores.py +20 -18
- pulumi_databricks/get_pipelines.py +23 -4
- pulumi_databricks/get_policy_info.py +21 -109
- pulumi_databricks/get_policy_infos.py +50 -25
- pulumi_databricks/get_quality_monitor_v2.py +8 -21
- pulumi_databricks/get_quality_monitors_v2.py +23 -25
- pulumi_databricks/get_registered_model.py +19 -4
- pulumi_databricks/get_registered_model_versions.py +19 -4
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +18 -1
- pulumi_databricks/get_schemas.py +23 -4
- pulumi_databricks/get_service_principal_federation_policies.py +23 -4
- pulumi_databricks/get_service_principal_federation_policy.py +15 -24
- pulumi_databricks/get_service_principals.py +64 -0
- pulumi_databricks/get_serving_endpoints.py +19 -4
- pulumi_databricks/get_share.py +117 -18
- pulumi_databricks/get_shares.py +22 -3
- pulumi_databricks/get_spark_version.py +20 -1
- pulumi_databricks/get_sql_warehouse.py +16 -1
- pulumi_databricks/get_sql_warehouses.py +20 -1
- pulumi_databricks/get_storage_credential.py +18 -1
- pulumi_databricks/get_storage_credentials.py +23 -4
- pulumi_databricks/get_table.py +18 -1
- pulumi_databricks/get_tables.py +20 -1
- pulumi_databricks/get_tag_policies.py +55 -23
- pulumi_databricks/get_tag_policy.py +60 -40
- pulumi_databricks/get_views.py +20 -1
- pulumi_databricks/get_volume.py +18 -1
- pulumi_databricks/get_volumes.py +20 -1
- pulumi_databricks/get_workspace_network_option.py +8 -16
- pulumi_databricks/get_workspace_setting_v2.py +41 -163
- pulumi_databricks/get_zones.py +20 -1
- pulumi_databricks/git_credential.py +54 -7
- pulumi_databricks/group.py +21 -21
- pulumi_databricks/instance_profile.py +0 -182
- pulumi_databricks/job.py +47 -0
- pulumi_databricks/library.py +165 -0
- pulumi_databricks/materialized_features_feature_tag.py +9 -52
- pulumi_databricks/metastore.py +81 -7
- pulumi_databricks/metastore_data_access.py +48 -0
- pulumi_databricks/mlflow_webhook.py +4 -4
- pulumi_databricks/mws_credentials.py +10 -10
- pulumi_databricks/mws_customer_managed_keys.py +0 -288
- pulumi_databricks/mws_log_delivery.py +146 -0
- pulumi_databricks/mws_storage_configurations.py +16 -16
- pulumi_databricks/mws_vpc_endpoint.py +56 -56
- pulumi_databricks/mws_workspaces.py +146 -65
- pulumi_databricks/notebook.py +49 -0
- pulumi_databricks/online_store.py +9 -52
- pulumi_databricks/outputs.py +11885 -13474
- pulumi_databricks/permission_assignment.py +299 -8
- pulumi_databricks/permissions.py +6 -6
- pulumi_databricks/pipeline.py +37 -3
- pulumi_databricks/policy_info.py +9 -52
- pulumi_databricks/provider.py +36 -1
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +47 -0
- pulumi_databricks/quality_monitor_v2.py +9 -52
- pulumi_databricks/recipient.py +74 -0
- pulumi_databricks/registered_model.py +308 -36
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/schema.py +7 -7
- pulumi_databricks/service_principal_federation_policy.py +48 -16
- pulumi_databricks/share.py +71 -84
- pulumi_databricks/sql_table.py +42 -14
- pulumi_databricks/storage_credential.py +15 -2
- pulumi_databricks/tag_policy.py +111 -54
- pulumi_databricks/user.py +21 -21
- pulumi_databricks/volume.py +7 -7
- pulumi_databricks/workspace_binding.py +0 -48
- pulumi_databricks/workspace_network_option.py +6 -2
- pulumi_databricks/workspace_setting_v2.py +49 -133
- {pulumi_databricks-1.77.0a1761975834.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/METADATA +1 -1
- pulumi_databricks-1.79.0a1762839813.dist-info/RECORD +250 -0
- pulumi_databricks/clean_room_asset.py +0 -938
- pulumi_databricks/clean_room_auto_approval_rule.py +0 -473
- pulumi_databricks/clean_rooms_clean_room.py +0 -569
- pulumi_databricks/get_clean_room_asset.py +0 -416
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_asset.py +0 -392
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_assets.py +0 -121
- pulumi_databricks/get_clean_room_assets.py +0 -146
- pulumi_databricks/get_clean_room_auto_approval_rule.py +0 -217
- pulumi_databricks/get_clean_room_auto_approval_rules.py +0 -101
- pulumi_databricks/get_clean_rooms_clean_room.py +0 -289
- pulumi_databricks/get_clean_rooms_clean_rooms.py +0 -125
- pulumi_databricks/get_recipient_federation_policies.py +0 -101
- pulumi_databricks/get_recipient_federation_policy.py +0 -182
- pulumi_databricks/recipient_federation_policy.py +0 -393
- pulumi_databricks-1.77.0a1761975834.dist-info/RECORD +0 -250
- {pulumi_databricks-1.77.0a1761975834.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.77.0a1761975834.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/top_level.txt +0 -0
|
@@ -14,7 +14,6 @@ else:
|
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
16
|
from . import outputs
|
|
17
|
-
from ._inputs import *
|
|
18
17
|
|
|
19
18
|
__all__ = [
|
|
20
19
|
'GetBudgetPolicyResult',
|
|
@@ -47,7 +46,7 @@ class GetBudgetPolicyResult:
|
|
|
47
46
|
|
|
48
47
|
@_builtins.property
|
|
49
48
|
@pulumi.getter(name="bindingWorkspaceIds")
|
|
50
|
-
def binding_workspace_ids(self) ->
|
|
49
|
+
def binding_workspace_ids(self) -> Sequence[_builtins.int]:
|
|
51
50
|
"""
|
|
52
51
|
(list of integer) - List of workspaces that this budget policy will be exclusively bound to.
|
|
53
52
|
An empty binding implies that this budget policy is open to any workspace in the account
|
|
@@ -56,7 +55,7 @@ class GetBudgetPolicyResult:
|
|
|
56
55
|
|
|
57
56
|
@_builtins.property
|
|
58
57
|
@pulumi.getter(name="customTags")
|
|
59
|
-
def custom_tags(self) ->
|
|
58
|
+
def custom_tags(self) -> Sequence['outputs.GetBudgetPolicyCustomTagResult']:
|
|
60
59
|
"""
|
|
61
60
|
(list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
|
|
62
61
|
"""
|
|
@@ -80,7 +79,7 @@ class GetBudgetPolicyResult:
|
|
|
80
79
|
|
|
81
80
|
@_builtins.property
|
|
82
81
|
@pulumi.getter(name="policyName")
|
|
83
|
-
def policy_name(self) ->
|
|
82
|
+
def policy_name(self) -> _builtins.str:
|
|
84
83
|
"""
|
|
85
84
|
(string) - The name of the policy.
|
|
86
85
|
- Must be unique among active policies.
|
|
@@ -103,12 +102,11 @@ class AwaitableGetBudgetPolicyResult(GetBudgetPolicyResult):
|
|
|
103
102
|
policy_name=self.policy_name)
|
|
104
103
|
|
|
105
104
|
|
|
106
|
-
def get_budget_policy(
|
|
107
|
-
custom_tags: Optional[Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']]] = None,
|
|
108
|
-
policy_id: Optional[_builtins.str] = None,
|
|
109
|
-
policy_name: Optional[_builtins.str] = None,
|
|
105
|
+
def get_budget_policy(policy_id: Optional[_builtins.str] = None,
|
|
110
106
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBudgetPolicyResult:
|
|
111
107
|
"""
|
|
108
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
109
|
+
|
|
112
110
|
This data source can be used to get a single budget policy.
|
|
113
111
|
|
|
114
112
|
> **Note** This data source can only be used with an account-level provider!
|
|
@@ -125,20 +123,10 @@ def get_budget_policy(binding_workspace_ids: Optional[Sequence[_builtins.int]] =
|
|
|
125
123
|
```
|
|
126
124
|
|
|
127
125
|
|
|
128
|
-
:param Sequence[_builtins.int] binding_workspace_ids: (list of integer) - List of workspaces that this budget policy will be exclusively bound to.
|
|
129
|
-
An empty binding implies that this budget policy is open to any workspace in the account
|
|
130
|
-
:param Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']] custom_tags: (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
|
|
131
126
|
:param _builtins.str policy_id: The Id of the policy. This field is generated by Databricks and globally unique
|
|
132
|
-
:param _builtins.str policy_name: (string) - The name of the policy.
|
|
133
|
-
- Must be unique among active policies.
|
|
134
|
-
- Can contain only characters from the ISO 8859-1 (latin1) set.
|
|
135
|
-
- Can't start with reserved keywords such as `databricks:default-policy`
|
|
136
127
|
"""
|
|
137
128
|
__args__ = dict()
|
|
138
|
-
__args__['bindingWorkspaceIds'] = binding_workspace_ids
|
|
139
|
-
__args__['customTags'] = custom_tags
|
|
140
129
|
__args__['policyId'] = policy_id
|
|
141
|
-
__args__['policyName'] = policy_name
|
|
142
130
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
143
131
|
__ret__ = pulumi.runtime.invoke('databricks:index/getBudgetPolicy:getBudgetPolicy', __args__, opts=opts, typ=GetBudgetPolicyResult).value
|
|
144
132
|
|
|
@@ -148,12 +136,11 @@ def get_budget_policy(binding_workspace_ids: Optional[Sequence[_builtins.int]] =
|
|
|
148
136
|
id=pulumi.get(__ret__, 'id'),
|
|
149
137
|
policy_id=pulumi.get(__ret__, 'policy_id'),
|
|
150
138
|
policy_name=pulumi.get(__ret__, 'policy_name'))
|
|
151
|
-
def get_budget_policy_output(
|
|
152
|
-
custom_tags: Optional[pulumi.Input[Optional[Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']]]]] = None,
|
|
153
|
-
policy_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
154
|
-
policy_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
139
|
+
def get_budget_policy_output(policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
155
140
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetBudgetPolicyResult]:
|
|
156
141
|
"""
|
|
142
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
143
|
+
|
|
157
144
|
This data source can be used to get a single budget policy.
|
|
158
145
|
|
|
159
146
|
> **Note** This data source can only be used with an account-level provider!
|
|
@@ -170,20 +157,10 @@ def get_budget_policy_output(binding_workspace_ids: Optional[pulumi.Input[Option
|
|
|
170
157
|
```
|
|
171
158
|
|
|
172
159
|
|
|
173
|
-
:param Sequence[_builtins.int] binding_workspace_ids: (list of integer) - List of workspaces that this budget policy will be exclusively bound to.
|
|
174
|
-
An empty binding implies that this budget policy is open to any workspace in the account
|
|
175
|
-
:param Sequence[Union['GetBudgetPolicyCustomTagArgs', 'GetBudgetPolicyCustomTagArgsDict']] custom_tags: (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
|
|
176
160
|
:param _builtins.str policy_id: The Id of the policy. This field is generated by Databricks and globally unique
|
|
177
|
-
:param _builtins.str policy_name: (string) - The name of the policy.
|
|
178
|
-
- Must be unique among active policies.
|
|
179
|
-
- Can contain only characters from the ISO 8859-1 (latin1) set.
|
|
180
|
-
- Can't start with reserved keywords such as `databricks:default-policy`
|
|
181
161
|
"""
|
|
182
162
|
__args__ = dict()
|
|
183
|
-
__args__['bindingWorkspaceIds'] = binding_workspace_ids
|
|
184
|
-
__args__['customTags'] = custom_tags
|
|
185
163
|
__args__['policyId'] = policy_id
|
|
186
|
-
__args__['policyName'] = policy_name
|
|
187
164
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
188
165
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getBudgetPolicy:getBudgetPolicy', __args__, opts=opts, typ=GetBudgetPolicyResult)
|
|
189
166
|
return __ret__.apply(lambda __response__: GetBudgetPolicyResult(
|
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.
|
|
@@ -106,17 +116,46 @@ def get_cluster(cluster_id: Optional[_builtins.str] = None,
|
|
|
106
116
|
all_get_cluster = {__key: databricks.get_cluster(cluster_id=__value) for __key, __value in all.ids}
|
|
107
117
|
```
|
|
108
118
|
|
|
119
|
+
### Multiple clusters with the same name
|
|
120
|
+
|
|
121
|
+
When fetching a cluster whose name is not unique (including terminated but not permanently deleted clusters), you must use the `cluster_id` argument to uniquely identify the cluster. Combine this data source with `get_clusters` to get the `cluster_id` of the cluster you want to fetch.
|
|
122
|
+
|
|
123
|
+
```python
|
|
124
|
+
import pulumi
|
|
125
|
+
import pulumi_databricks as databricks
|
|
126
|
+
|
|
127
|
+
my_cluster = databricks.get_clusters(cluster_name_contains="my-cluster",
|
|
128
|
+
filter_by={
|
|
129
|
+
"cluster_states": ["RUNNING"],
|
|
130
|
+
})
|
|
131
|
+
my_cluster_get_cluster = databricks.get_cluster(cluster_id=my_cluster.ids[0])
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Related Resources
|
|
135
|
+
|
|
136
|
+
The following resources are often used in the same context:
|
|
137
|
+
|
|
138
|
+
* End to end workspace management guide.
|
|
139
|
+
* Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
|
|
140
|
+
* ClusterPolicy to create a Cluster policy, which limits the ability to create clusters based on a set of rules.
|
|
141
|
+
* InstancePool to manage [instance pools](https://docs.databricks.com/clusters/instance-pools/index.html) to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances.
|
|
142
|
+
* Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a databricks_cluster.
|
|
143
|
+
* Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
|
|
144
|
+
* Pipeline to deploy [Lakeflow Declarative Pipelines](https://docs.databricks.com/aws/en/dlt).
|
|
145
|
+
|
|
109
146
|
|
|
110
147
|
:param _builtins.str cluster_id: The id of the cluster.
|
|
111
148
|
:param Union['GetClusterClusterInfoArgs', 'GetClusterClusterInfoArgsDict'] cluster_info: block, consisting of following fields:
|
|
112
149
|
: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
150
|
:param _builtins.str id: cluster ID
|
|
151
|
+
:param Union['GetClusterProviderConfigArgs', 'GetClusterProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
114
152
|
"""
|
|
115
153
|
__args__ = dict()
|
|
116
154
|
__args__['clusterId'] = cluster_id
|
|
117
155
|
__args__['clusterInfo'] = cluster_info
|
|
118
156
|
__args__['clusterName'] = cluster_name
|
|
119
157
|
__args__['id'] = id
|
|
158
|
+
__args__['providerConfig'] = provider_config
|
|
120
159
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
121
160
|
__ret__ = pulumi.runtime.invoke('databricks:index/getCluster:getCluster', __args__, opts=opts, typ=GetClusterResult).value
|
|
122
161
|
|
|
@@ -124,11 +163,13 @@ def get_cluster(cluster_id: Optional[_builtins.str] = None,
|
|
|
124
163
|
cluster_id=pulumi.get(__ret__, 'cluster_id'),
|
|
125
164
|
cluster_info=pulumi.get(__ret__, 'cluster_info'),
|
|
126
165
|
cluster_name=pulumi.get(__ret__, 'cluster_name'),
|
|
127
|
-
id=pulumi.get(__ret__, 'id')
|
|
166
|
+
id=pulumi.get(__ret__, 'id'),
|
|
167
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
128
168
|
def get_cluster_output(cluster_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
129
169
|
cluster_info: Optional[pulumi.Input[Optional[Union['GetClusterClusterInfoArgs', 'GetClusterClusterInfoArgsDict']]]] = None,
|
|
130
170
|
cluster_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
131
171
|
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
172
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetClusterProviderConfigArgs', 'GetClusterProviderConfigArgsDict']]]] = None,
|
|
132
173
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterResult]:
|
|
133
174
|
"""
|
|
134
175
|
Retrieves information about a Cluster using its id. This could be retrieved programmatically using get_clusters data source.
|
|
@@ -147,21 +188,51 @@ def get_cluster_output(cluster_id: Optional[pulumi.Input[Optional[_builtins.str]
|
|
|
147
188
|
all_get_cluster = {__key: databricks.get_cluster(cluster_id=__value) for __key, __value in all.ids}
|
|
148
189
|
```
|
|
149
190
|
|
|
191
|
+
### Multiple clusters with the same name
|
|
192
|
+
|
|
193
|
+
When fetching a cluster whose name is not unique (including terminated but not permanently deleted clusters), you must use the `cluster_id` argument to uniquely identify the cluster. Combine this data source with `get_clusters` to get the `cluster_id` of the cluster you want to fetch.
|
|
194
|
+
|
|
195
|
+
```python
|
|
196
|
+
import pulumi
|
|
197
|
+
import pulumi_databricks as databricks
|
|
198
|
+
|
|
199
|
+
my_cluster = databricks.get_clusters(cluster_name_contains="my-cluster",
|
|
200
|
+
filter_by={
|
|
201
|
+
"cluster_states": ["RUNNING"],
|
|
202
|
+
})
|
|
203
|
+
my_cluster_get_cluster = databricks.get_cluster(cluster_id=my_cluster.ids[0])
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Related Resources
|
|
207
|
+
|
|
208
|
+
The following resources are often used in the same context:
|
|
209
|
+
|
|
210
|
+
* End to end workspace management guide.
|
|
211
|
+
* Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
|
|
212
|
+
* ClusterPolicy to create a Cluster policy, which limits the ability to create clusters based on a set of rules.
|
|
213
|
+
* InstancePool to manage [instance pools](https://docs.databricks.com/clusters/instance-pools/index.html) to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances.
|
|
214
|
+
* Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a databricks_cluster.
|
|
215
|
+
* Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
|
|
216
|
+
* Pipeline to deploy [Lakeflow Declarative Pipelines](https://docs.databricks.com/aws/en/dlt).
|
|
217
|
+
|
|
150
218
|
|
|
151
219
|
:param _builtins.str cluster_id: The id of the cluster.
|
|
152
220
|
:param Union['GetClusterClusterInfoArgs', 'GetClusterClusterInfoArgsDict'] cluster_info: block, consisting of following fields:
|
|
153
221
|
: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
222
|
:param _builtins.str id: cluster ID
|
|
223
|
+
:param Union['GetClusterProviderConfigArgs', 'GetClusterProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
155
224
|
"""
|
|
156
225
|
__args__ = dict()
|
|
157
226
|
__args__['clusterId'] = cluster_id
|
|
158
227
|
__args__['clusterInfo'] = cluster_info
|
|
159
228
|
__args__['clusterName'] = cluster_name
|
|
160
229
|
__args__['id'] = id
|
|
230
|
+
__args__['providerConfig'] = provider_config
|
|
161
231
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
162
232
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getCluster:getCluster', __args__, opts=opts, typ=GetClusterResult)
|
|
163
233
|
return __ret__.apply(lambda __response__: GetClusterResult(
|
|
164
234
|
cluster_id=pulumi.get(__response__, 'cluster_id'),
|
|
165
235
|
cluster_info=pulumi.get(__response__, 'cluster_info'),
|
|
166
236
|
cluster_name=pulumi.get(__response__, 'cluster_name'),
|
|
167
|
-
id=pulumi.get(__response__, 'id')
|
|
237
|
+
id=pulumi.get(__response__, 'id'),
|
|
238
|
+
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')))
|