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
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'GetDataQualityRefreshResult',
|
|
19
|
+
'AwaitableGetDataQualityRefreshResult',
|
|
20
|
+
'get_data_quality_refresh',
|
|
21
|
+
'get_data_quality_refresh_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetDataQualityRefreshResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getDataQualityRefresh.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, end_time_ms=None, id=None, message=None, object_id=None, object_type=None, refresh_id=None, start_time_ms=None, state=None, trigger=None):
|
|
30
|
+
if end_time_ms and not isinstance(end_time_ms, int):
|
|
31
|
+
raise TypeError("Expected argument 'end_time_ms' to be a int")
|
|
32
|
+
pulumi.set(__self__, "end_time_ms", end_time_ms)
|
|
33
|
+
if id and not isinstance(id, str):
|
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
+
pulumi.set(__self__, "id", id)
|
|
36
|
+
if message and not isinstance(message, str):
|
|
37
|
+
raise TypeError("Expected argument 'message' to be a str")
|
|
38
|
+
pulumi.set(__self__, "message", message)
|
|
39
|
+
if object_id and not isinstance(object_id, str):
|
|
40
|
+
raise TypeError("Expected argument 'object_id' to be a str")
|
|
41
|
+
pulumi.set(__self__, "object_id", object_id)
|
|
42
|
+
if object_type and not isinstance(object_type, str):
|
|
43
|
+
raise TypeError("Expected argument 'object_type' to be a str")
|
|
44
|
+
pulumi.set(__self__, "object_type", object_type)
|
|
45
|
+
if refresh_id and not isinstance(refresh_id, int):
|
|
46
|
+
raise TypeError("Expected argument 'refresh_id' to be a int")
|
|
47
|
+
pulumi.set(__self__, "refresh_id", refresh_id)
|
|
48
|
+
if start_time_ms and not isinstance(start_time_ms, int):
|
|
49
|
+
raise TypeError("Expected argument 'start_time_ms' to be a int")
|
|
50
|
+
pulumi.set(__self__, "start_time_ms", start_time_ms)
|
|
51
|
+
if state and not isinstance(state, str):
|
|
52
|
+
raise TypeError("Expected argument 'state' to be a str")
|
|
53
|
+
pulumi.set(__self__, "state", state)
|
|
54
|
+
if trigger and not isinstance(trigger, str):
|
|
55
|
+
raise TypeError("Expected argument 'trigger' to be a str")
|
|
56
|
+
pulumi.set(__self__, "trigger", trigger)
|
|
57
|
+
|
|
58
|
+
@_builtins.property
|
|
59
|
+
@pulumi.getter(name="endTimeMs")
|
|
60
|
+
def end_time_ms(self) -> _builtins.int:
|
|
61
|
+
"""
|
|
62
|
+
(integer) - Time when the refresh ended (milliseconds since 1/1/1970 UTC)
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "end_time_ms")
|
|
65
|
+
|
|
66
|
+
@_builtins.property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def id(self) -> _builtins.str:
|
|
69
|
+
"""
|
|
70
|
+
The provider-assigned unique ID for this managed resource.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "id")
|
|
73
|
+
|
|
74
|
+
@_builtins.property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def message(self) -> _builtins.str:
|
|
77
|
+
"""
|
|
78
|
+
(string) - An optional message to give insight into the current state of the refresh (e.g. FAILURE messages)
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "message")
|
|
81
|
+
|
|
82
|
+
@_builtins.property
|
|
83
|
+
@pulumi.getter(name="objectId")
|
|
84
|
+
def object_id(self) -> _builtins.str:
|
|
85
|
+
"""
|
|
86
|
+
(string) - The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "object_id")
|
|
89
|
+
|
|
90
|
+
@_builtins.property
|
|
91
|
+
@pulumi.getter(name="objectType")
|
|
92
|
+
def object_type(self) -> _builtins.str:
|
|
93
|
+
"""
|
|
94
|
+
(string) - The type of the monitored object. Can be one of the following: `schema`or `table`
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "object_type")
|
|
97
|
+
|
|
98
|
+
@_builtins.property
|
|
99
|
+
@pulumi.getter(name="refreshId")
|
|
100
|
+
def refresh_id(self) -> _builtins.int:
|
|
101
|
+
"""
|
|
102
|
+
(integer) - Unique id of the refresh operation
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "refresh_id")
|
|
105
|
+
|
|
106
|
+
@_builtins.property
|
|
107
|
+
@pulumi.getter(name="startTimeMs")
|
|
108
|
+
def start_time_ms(self) -> _builtins.int:
|
|
109
|
+
"""
|
|
110
|
+
(integer) - Time when the refresh started (milliseconds since 1/1/1970 UTC)
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "start_time_ms")
|
|
113
|
+
|
|
114
|
+
@_builtins.property
|
|
115
|
+
@pulumi.getter
|
|
116
|
+
def state(self) -> _builtins.str:
|
|
117
|
+
"""
|
|
118
|
+
(string) - The current state of the refresh. Possible values are: `MONITOR_REFRESH_STATE_CANCELED`, `MONITOR_REFRESH_STATE_FAILED`, `MONITOR_REFRESH_STATE_PENDING`, `MONITOR_REFRESH_STATE_RUNNING`, `MONITOR_REFRESH_STATE_SUCCESS`, `MONITOR_REFRESH_STATE_UNKNOWN`
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "state")
|
|
121
|
+
|
|
122
|
+
@_builtins.property
|
|
123
|
+
@pulumi.getter
|
|
124
|
+
def trigger(self) -> _builtins.str:
|
|
125
|
+
"""
|
|
126
|
+
(string) - What triggered the refresh. Possible values are: `MONITOR_REFRESH_TRIGGER_DATA_CHANGE`, `MONITOR_REFRESH_TRIGGER_MANUAL`, `MONITOR_REFRESH_TRIGGER_SCHEDULE`, `MONITOR_REFRESH_TRIGGER_UNKNOWN`
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "trigger")
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class AwaitableGetDataQualityRefreshResult(GetDataQualityRefreshResult):
|
|
132
|
+
# pylint: disable=using-constant-test
|
|
133
|
+
def __await__(self):
|
|
134
|
+
if False:
|
|
135
|
+
yield self
|
|
136
|
+
return GetDataQualityRefreshResult(
|
|
137
|
+
end_time_ms=self.end_time_ms,
|
|
138
|
+
id=self.id,
|
|
139
|
+
message=self.message,
|
|
140
|
+
object_id=self.object_id,
|
|
141
|
+
object_type=self.object_type,
|
|
142
|
+
refresh_id=self.refresh_id,
|
|
143
|
+
start_time_ms=self.start_time_ms,
|
|
144
|
+
state=self.state,
|
|
145
|
+
trigger=self.trigger)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def get_data_quality_refresh(object_id: Optional[_builtins.str] = None,
|
|
149
|
+
object_type: Optional[_builtins.str] = None,
|
|
150
|
+
refresh_id: Optional[_builtins.int] = None,
|
|
151
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataQualityRefreshResult:
|
|
152
|
+
"""
|
|
153
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
154
|
+
|
|
155
|
+
This data source can be used to fetch a data quality refresh on a Unity Catalog table.
|
|
156
|
+
|
|
157
|
+
The caller must either:
|
|
158
|
+
1. be an owner of the table's parent catalog
|
|
159
|
+
2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
|
|
160
|
+
3. have the following permissions:
|
|
161
|
+
- **USE_CATALOG** on the table's parent catalog
|
|
162
|
+
- **USE_SCHEMA** on the table's parent schema
|
|
163
|
+
- **SELECT** privilege on the table.
|
|
164
|
+
|
|
165
|
+
> **Note** This data source can only be used with a workspace-level provider!
|
|
166
|
+
|
|
167
|
+
## Example Usage
|
|
168
|
+
|
|
169
|
+
Getting a data quality refresh by Unity Catalog object type (currently supports `table`) and object id:
|
|
170
|
+
|
|
171
|
+
```python
|
|
172
|
+
import pulumi
|
|
173
|
+
import pulumi_databricks as databricks
|
|
174
|
+
|
|
175
|
+
this = databricks.get_table(name="my_catalog.my_schema.my_table")
|
|
176
|
+
this_get_data_quality_refresh = databricks.get_data_quality_refresh(object_type="table",
|
|
177
|
+
object_id=this.id)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param _builtins.str object_id: The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
|
|
182
|
+
|
|
183
|
+
Find the `schema_id` from either:
|
|
184
|
+
1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
|
|
185
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
|
|
186
|
+
|
|
187
|
+
Find the `table_id` from either:
|
|
188
|
+
1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
|
|
189
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field
|
|
190
|
+
:param _builtins.str object_type: The type of the monitored object. Can be one of the following: `schema`or `table`
|
|
191
|
+
:param _builtins.int refresh_id: Unique id of the refresh operation
|
|
192
|
+
"""
|
|
193
|
+
__args__ = dict()
|
|
194
|
+
__args__['objectId'] = object_id
|
|
195
|
+
__args__['objectType'] = object_type
|
|
196
|
+
__args__['refreshId'] = refresh_id
|
|
197
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
198
|
+
__ret__ = pulumi.runtime.invoke('databricks:index/getDataQualityRefresh:getDataQualityRefresh', __args__, opts=opts, typ=GetDataQualityRefreshResult).value
|
|
199
|
+
|
|
200
|
+
return AwaitableGetDataQualityRefreshResult(
|
|
201
|
+
end_time_ms=pulumi.get(__ret__, 'end_time_ms'),
|
|
202
|
+
id=pulumi.get(__ret__, 'id'),
|
|
203
|
+
message=pulumi.get(__ret__, 'message'),
|
|
204
|
+
object_id=pulumi.get(__ret__, 'object_id'),
|
|
205
|
+
object_type=pulumi.get(__ret__, 'object_type'),
|
|
206
|
+
refresh_id=pulumi.get(__ret__, 'refresh_id'),
|
|
207
|
+
start_time_ms=pulumi.get(__ret__, 'start_time_ms'),
|
|
208
|
+
state=pulumi.get(__ret__, 'state'),
|
|
209
|
+
trigger=pulumi.get(__ret__, 'trigger'))
|
|
210
|
+
def get_data_quality_refresh_output(object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
211
|
+
object_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
212
|
+
refresh_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
213
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDataQualityRefreshResult]:
|
|
214
|
+
"""
|
|
215
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
216
|
+
|
|
217
|
+
This data source can be used to fetch a data quality refresh on a Unity Catalog table.
|
|
218
|
+
|
|
219
|
+
The caller must either:
|
|
220
|
+
1. be an owner of the table's parent catalog
|
|
221
|
+
2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
|
|
222
|
+
3. have the following permissions:
|
|
223
|
+
- **USE_CATALOG** on the table's parent catalog
|
|
224
|
+
- **USE_SCHEMA** on the table's parent schema
|
|
225
|
+
- **SELECT** privilege on the table.
|
|
226
|
+
|
|
227
|
+
> **Note** This data source can only be used with a workspace-level provider!
|
|
228
|
+
|
|
229
|
+
## Example Usage
|
|
230
|
+
|
|
231
|
+
Getting a data quality refresh by Unity Catalog object type (currently supports `table`) and object id:
|
|
232
|
+
|
|
233
|
+
```python
|
|
234
|
+
import pulumi
|
|
235
|
+
import pulumi_databricks as databricks
|
|
236
|
+
|
|
237
|
+
this = databricks.get_table(name="my_catalog.my_schema.my_table")
|
|
238
|
+
this_get_data_quality_refresh = databricks.get_data_quality_refresh(object_type="table",
|
|
239
|
+
object_id=this.id)
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
:param _builtins.str object_id: The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
|
|
244
|
+
|
|
245
|
+
Find the `schema_id` from either:
|
|
246
|
+
1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
|
|
247
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
|
|
248
|
+
|
|
249
|
+
Find the `table_id` from either:
|
|
250
|
+
1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
|
|
251
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field
|
|
252
|
+
:param _builtins.str object_type: The type of the monitored object. Can be one of the following: `schema`or `table`
|
|
253
|
+
:param _builtins.int refresh_id: Unique id of the refresh operation
|
|
254
|
+
"""
|
|
255
|
+
__args__ = dict()
|
|
256
|
+
__args__['objectId'] = object_id
|
|
257
|
+
__args__['objectType'] = object_type
|
|
258
|
+
__args__['refreshId'] = refresh_id
|
|
259
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
260
|
+
__ret__ = pulumi.runtime.invoke_output('databricks:index/getDataQualityRefresh:getDataQualityRefresh', __args__, opts=opts, typ=GetDataQualityRefreshResult)
|
|
261
|
+
return __ret__.apply(lambda __response__: GetDataQualityRefreshResult(
|
|
262
|
+
end_time_ms=pulumi.get(__response__, 'end_time_ms'),
|
|
263
|
+
id=pulumi.get(__response__, 'id'),
|
|
264
|
+
message=pulumi.get(__response__, 'message'),
|
|
265
|
+
object_id=pulumi.get(__response__, 'object_id'),
|
|
266
|
+
object_type=pulumi.get(__response__, 'object_type'),
|
|
267
|
+
refresh_id=pulumi.get(__response__, 'refresh_id'),
|
|
268
|
+
start_time_ms=pulumi.get(__response__, 'start_time_ms'),
|
|
269
|
+
state=pulumi.get(__response__, 'state'),
|
|
270
|
+
trigger=pulumi.get(__response__, 'trigger')))
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetDataQualityRefreshesResult',
|
|
20
|
+
'AwaitableGetDataQualityRefreshesResult',
|
|
21
|
+
'get_data_quality_refreshes',
|
|
22
|
+
'get_data_quality_refreshes_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetDataQualityRefreshesResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getDataQualityRefreshes.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, id=None, object_id=None, object_type=None, page_size=None, refreshes=None):
|
|
31
|
+
if id and not isinstance(id, str):
|
|
32
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "id", id)
|
|
34
|
+
if object_id and not isinstance(object_id, str):
|
|
35
|
+
raise TypeError("Expected argument 'object_id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "object_id", object_id)
|
|
37
|
+
if object_type and not isinstance(object_type, str):
|
|
38
|
+
raise TypeError("Expected argument 'object_type' to be a str")
|
|
39
|
+
pulumi.set(__self__, "object_type", object_type)
|
|
40
|
+
if page_size and not isinstance(page_size, int):
|
|
41
|
+
raise TypeError("Expected argument 'page_size' to be a int")
|
|
42
|
+
pulumi.set(__self__, "page_size", page_size)
|
|
43
|
+
if refreshes and not isinstance(refreshes, list):
|
|
44
|
+
raise TypeError("Expected argument 'refreshes' to be a list")
|
|
45
|
+
pulumi.set(__self__, "refreshes", refreshes)
|
|
46
|
+
|
|
47
|
+
@_builtins.property
|
|
48
|
+
@pulumi.getter
|
|
49
|
+
def id(self) -> _builtins.str:
|
|
50
|
+
"""
|
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
|
52
|
+
"""
|
|
53
|
+
return pulumi.get(self, "id")
|
|
54
|
+
|
|
55
|
+
@_builtins.property
|
|
56
|
+
@pulumi.getter(name="objectId")
|
|
57
|
+
def object_id(self) -> _builtins.str:
|
|
58
|
+
"""
|
|
59
|
+
(string) - The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "object_id")
|
|
62
|
+
|
|
63
|
+
@_builtins.property
|
|
64
|
+
@pulumi.getter(name="objectType")
|
|
65
|
+
def object_type(self) -> _builtins.str:
|
|
66
|
+
"""
|
|
67
|
+
(string) - The type of the monitored object. Can be one of the following: `schema`or `table`
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "object_type")
|
|
70
|
+
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter(name="pageSize")
|
|
73
|
+
def page_size(self) -> Optional[_builtins.int]:
|
|
74
|
+
return pulumi.get(self, "page_size")
|
|
75
|
+
|
|
76
|
+
@_builtins.property
|
|
77
|
+
@pulumi.getter
|
|
78
|
+
def refreshes(self) -> Sequence['outputs.GetDataQualityRefreshesRefreshResult']:
|
|
79
|
+
return pulumi.get(self, "refreshes")
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class AwaitableGetDataQualityRefreshesResult(GetDataQualityRefreshesResult):
|
|
83
|
+
# pylint: disable=using-constant-test
|
|
84
|
+
def __await__(self):
|
|
85
|
+
if False:
|
|
86
|
+
yield self
|
|
87
|
+
return GetDataQualityRefreshesResult(
|
|
88
|
+
id=self.id,
|
|
89
|
+
object_id=self.object_id,
|
|
90
|
+
object_type=self.object_type,
|
|
91
|
+
page_size=self.page_size,
|
|
92
|
+
refreshes=self.refreshes)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def get_data_quality_refreshes(object_id: Optional[_builtins.str] = None,
|
|
96
|
+
object_type: Optional[_builtins.str] = None,
|
|
97
|
+
page_size: Optional[_builtins.int] = None,
|
|
98
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataQualityRefreshesResult:
|
|
99
|
+
"""
|
|
100
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
101
|
+
|
|
102
|
+
This data source can be used to fetch the list of data quality refreshes on a Unity Catalog table.
|
|
103
|
+
|
|
104
|
+
The caller must either:
|
|
105
|
+
1. be an owner of the table's parent catalog
|
|
106
|
+
2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
|
|
107
|
+
3. have the following permissions:
|
|
108
|
+
- **USE_CATALOG** on the table's parent catalog
|
|
109
|
+
- **USE_SCHEMA** on the table's parent schema
|
|
110
|
+
- **SELECT** privilege on the table.
|
|
111
|
+
|
|
112
|
+
> **Note** This data source can only be used with a workspace-level provider!
|
|
113
|
+
|
|
114
|
+
## Example Usage
|
|
115
|
+
|
|
116
|
+
Getting a list of all data quality refresh for a given table:
|
|
117
|
+
|
|
118
|
+
```python
|
|
119
|
+
import pulumi
|
|
120
|
+
import pulumi_databricks as databricks
|
|
121
|
+
|
|
122
|
+
this = databricks.get_table(name="my_catalog.my_schema.my_table")
|
|
123
|
+
all = databricks.get_data_quality_refreshes(object_type="table",
|
|
124
|
+
object_id=this.id)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param _builtins.str object_id: The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
|
|
129
|
+
|
|
130
|
+
Find the `schema_id` from either:
|
|
131
|
+
1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
|
|
132
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
|
|
133
|
+
|
|
134
|
+
Find the `table_id` from either:
|
|
135
|
+
1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
|
|
136
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field
|
|
137
|
+
:param _builtins.str object_type: The type of the monitored object. Can be one of the following: `schema` or `table`
|
|
138
|
+
"""
|
|
139
|
+
__args__ = dict()
|
|
140
|
+
__args__['objectId'] = object_id
|
|
141
|
+
__args__['objectType'] = object_type
|
|
142
|
+
__args__['pageSize'] = page_size
|
|
143
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
144
|
+
__ret__ = pulumi.runtime.invoke('databricks:index/getDataQualityRefreshes:getDataQualityRefreshes', __args__, opts=opts, typ=GetDataQualityRefreshesResult).value
|
|
145
|
+
|
|
146
|
+
return AwaitableGetDataQualityRefreshesResult(
|
|
147
|
+
id=pulumi.get(__ret__, 'id'),
|
|
148
|
+
object_id=pulumi.get(__ret__, 'object_id'),
|
|
149
|
+
object_type=pulumi.get(__ret__, 'object_type'),
|
|
150
|
+
page_size=pulumi.get(__ret__, 'page_size'),
|
|
151
|
+
refreshes=pulumi.get(__ret__, 'refreshes'))
|
|
152
|
+
def get_data_quality_refreshes_output(object_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
153
|
+
object_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
154
|
+
page_size: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
155
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDataQualityRefreshesResult]:
|
|
156
|
+
"""
|
|
157
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
158
|
+
|
|
159
|
+
This data source can be used to fetch the list of data quality refreshes on a Unity Catalog table.
|
|
160
|
+
|
|
161
|
+
The caller must either:
|
|
162
|
+
1. be an owner of the table's parent catalog
|
|
163
|
+
2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
|
|
164
|
+
3. have the following permissions:
|
|
165
|
+
- **USE_CATALOG** on the table's parent catalog
|
|
166
|
+
- **USE_SCHEMA** on the table's parent schema
|
|
167
|
+
- **SELECT** privilege on the table.
|
|
168
|
+
|
|
169
|
+
> **Note** This data source can only be used with a workspace-level provider!
|
|
170
|
+
|
|
171
|
+
## Example Usage
|
|
172
|
+
|
|
173
|
+
Getting a list of all data quality refresh for a given table:
|
|
174
|
+
|
|
175
|
+
```python
|
|
176
|
+
import pulumi
|
|
177
|
+
import pulumi_databricks as databricks
|
|
178
|
+
|
|
179
|
+
this = databricks.get_table(name="my_catalog.my_schema.my_table")
|
|
180
|
+
all = databricks.get_data_quality_refreshes(object_type="table",
|
|
181
|
+
object_id=this.id)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:param _builtins.str object_id: The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
|
|
186
|
+
|
|
187
|
+
Find the `schema_id` from either:
|
|
188
|
+
1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
|
|
189
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
|
|
190
|
+
|
|
191
|
+
Find the `table_id` from either:
|
|
192
|
+
1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
|
|
193
|
+
2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field
|
|
194
|
+
:param _builtins.str object_type: The type of the monitored object. Can be one of the following: `schema` or `table`
|
|
195
|
+
"""
|
|
196
|
+
__args__ = dict()
|
|
197
|
+
__args__['objectId'] = object_id
|
|
198
|
+
__args__['objectType'] = object_type
|
|
199
|
+
__args__['pageSize'] = page_size
|
|
200
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
201
|
+
__ret__ = pulumi.runtime.invoke_output('databricks:index/getDataQualityRefreshes:getDataQualityRefreshes', __args__, opts=opts, typ=GetDataQualityRefreshesResult)
|
|
202
|
+
return __ret__.apply(lambda __response__: GetDataQualityRefreshesResult(
|
|
203
|
+
id=pulumi.get(__response__, 'id'),
|
|
204
|
+
object_id=pulumi.get(__response__, 'object_id'),
|
|
205
|
+
object_type=pulumi.get(__response__, 'object_type'),
|
|
206
|
+
page_size=pulumi.get(__response__, 'page_size'),
|
|
207
|
+
refreshes=pulumi.get(__response__, 'refreshes')))
|
|
@@ -26,7 +26,7 @@ class GetDatabaseDatabaseCatalogResult:
|
|
|
26
26
|
"""
|
|
27
27
|
A collection of values returned by getDatabaseDatabaseCatalog.
|
|
28
28
|
"""
|
|
29
|
-
def __init__(__self__, create_database_if_not_exists=None, database_instance_name=None, database_name=None, id=None, name=None, uid=None
|
|
29
|
+
def __init__(__self__, create_database_if_not_exists=None, database_instance_name=None, database_name=None, id=None, name=None, uid=None):
|
|
30
30
|
if create_database_if_not_exists and not isinstance(create_database_if_not_exists, bool):
|
|
31
31
|
raise TypeError("Expected argument 'create_database_if_not_exists' to be a bool")
|
|
32
32
|
pulumi.set(__self__, "create_database_if_not_exists", create_database_if_not_exists)
|
|
@@ -45,9 +45,6 @@ class GetDatabaseDatabaseCatalogResult:
|
|
|
45
45
|
if uid and not isinstance(uid, str):
|
|
46
46
|
raise TypeError("Expected argument 'uid' to be a str")
|
|
47
47
|
pulumi.set(__self__, "uid", uid)
|
|
48
|
-
if workspace_id and not isinstance(workspace_id, str):
|
|
49
|
-
raise TypeError("Expected argument 'workspace_id' to be a str")
|
|
50
|
-
pulumi.set(__self__, "workspace_id", workspace_id)
|
|
51
48
|
|
|
52
49
|
@_builtins.property
|
|
53
50
|
@pulumi.getter(name="createDatabaseIfNotExists")
|
|
@@ -97,11 +94,6 @@ class GetDatabaseDatabaseCatalogResult:
|
|
|
97
94
|
"""
|
|
98
95
|
return pulumi.get(self, "uid")
|
|
99
96
|
|
|
100
|
-
@_builtins.property
|
|
101
|
-
@pulumi.getter(name="workspaceId")
|
|
102
|
-
def workspace_id(self) -> Optional[_builtins.str]:
|
|
103
|
-
return pulumi.get(self, "workspace_id")
|
|
104
|
-
|
|
105
97
|
|
|
106
98
|
class AwaitableGetDatabaseDatabaseCatalogResult(GetDatabaseDatabaseCatalogResult):
|
|
107
99
|
# pylint: disable=using-constant-test
|
|
@@ -114,17 +106,14 @@ class AwaitableGetDatabaseDatabaseCatalogResult(GetDatabaseDatabaseCatalogResult
|
|
|
114
106
|
database_name=self.database_name,
|
|
115
107
|
id=self.id,
|
|
116
108
|
name=self.name,
|
|
117
|
-
uid=self.uid
|
|
118
|
-
workspace_id=self.workspace_id)
|
|
109
|
+
uid=self.uid)
|
|
119
110
|
|
|
120
111
|
|
|
121
|
-
def get_database_database_catalog(
|
|
122
|
-
database_instance_name: Optional[_builtins.str] = None,
|
|
123
|
-
database_name: Optional[_builtins.str] = None,
|
|
124
|
-
name: Optional[_builtins.str] = None,
|
|
125
|
-
workspace_id: Optional[_builtins.str] = None,
|
|
112
|
+
def get_database_database_catalog(name: Optional[_builtins.str] = None,
|
|
126
113
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseDatabaseCatalogResult:
|
|
127
114
|
"""
|
|
115
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
116
|
+
|
|
128
117
|
This data source can be used to get a single Database Catalog.
|
|
129
118
|
|
|
130
119
|
## Example Usage
|
|
@@ -139,18 +128,10 @@ def get_database_database_catalog(create_database_if_not_exists: Optional[_built
|
|
|
139
128
|
```
|
|
140
129
|
|
|
141
130
|
|
|
142
|
-
:param _builtins.bool create_database_if_not_exists: (boolean)
|
|
143
|
-
:param _builtins.str database_instance_name: (string) - The name of the DatabaseInstance housing the database
|
|
144
|
-
:param _builtins.str database_name: (string) - The name of the database (in a instance) associated with the catalog
|
|
145
131
|
:param _builtins.str name: The name of the catalog in UC
|
|
146
|
-
:param _builtins.str workspace_id: Workspace ID of the resource
|
|
147
132
|
"""
|
|
148
133
|
__args__ = dict()
|
|
149
|
-
__args__['createDatabaseIfNotExists'] = create_database_if_not_exists
|
|
150
|
-
__args__['databaseInstanceName'] = database_instance_name
|
|
151
|
-
__args__['databaseName'] = database_name
|
|
152
134
|
__args__['name'] = name
|
|
153
|
-
__args__['workspaceId'] = workspace_id
|
|
154
135
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
155
136
|
__ret__ = pulumi.runtime.invoke('databricks:index/getDatabaseDatabaseCatalog:getDatabaseDatabaseCatalog', __args__, opts=opts, typ=GetDatabaseDatabaseCatalogResult).value
|
|
156
137
|
|
|
@@ -160,15 +141,12 @@ def get_database_database_catalog(create_database_if_not_exists: Optional[_built
|
|
|
160
141
|
database_name=pulumi.get(__ret__, 'database_name'),
|
|
161
142
|
id=pulumi.get(__ret__, 'id'),
|
|
162
143
|
name=pulumi.get(__ret__, 'name'),
|
|
163
|
-
uid=pulumi.get(__ret__, 'uid')
|
|
164
|
-
|
|
165
|
-
def get_database_database_catalog_output(create_database_if_not_exists: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
166
|
-
database_instance_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
167
|
-
database_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
168
|
-
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
169
|
-
workspace_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
144
|
+
uid=pulumi.get(__ret__, 'uid'))
|
|
145
|
+
def get_database_database_catalog_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
170
146
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabaseDatabaseCatalogResult]:
|
|
171
147
|
"""
|
|
148
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
149
|
+
|
|
172
150
|
This data source can be used to get a single Database Catalog.
|
|
173
151
|
|
|
174
152
|
## Example Usage
|
|
@@ -183,18 +161,10 @@ def get_database_database_catalog_output(create_database_if_not_exists: Optional
|
|
|
183
161
|
```
|
|
184
162
|
|
|
185
163
|
|
|
186
|
-
:param _builtins.bool create_database_if_not_exists: (boolean)
|
|
187
|
-
:param _builtins.str database_instance_name: (string) - The name of the DatabaseInstance housing the database
|
|
188
|
-
:param _builtins.str database_name: (string) - The name of the database (in a instance) associated with the catalog
|
|
189
164
|
:param _builtins.str name: The name of the catalog in UC
|
|
190
|
-
:param _builtins.str workspace_id: Workspace ID of the resource
|
|
191
165
|
"""
|
|
192
166
|
__args__ = dict()
|
|
193
|
-
__args__['createDatabaseIfNotExists'] = create_database_if_not_exists
|
|
194
|
-
__args__['databaseInstanceName'] = database_instance_name
|
|
195
|
-
__args__['databaseName'] = database_name
|
|
196
167
|
__args__['name'] = name
|
|
197
|
-
__args__['workspaceId'] = workspace_id
|
|
198
168
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
199
169
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getDatabaseDatabaseCatalog:getDatabaseDatabaseCatalog', __args__, opts=opts, typ=GetDatabaseDatabaseCatalogResult)
|
|
200
170
|
return __ret__.apply(lambda __response__: GetDatabaseDatabaseCatalogResult(
|
|
@@ -203,5 +173,4 @@ def get_database_database_catalog_output(create_database_if_not_exists: Optional
|
|
|
203
173
|
database_name=pulumi.get(__response__, 'database_name'),
|
|
204
174
|
id=pulumi.get(__response__, 'id'),
|
|
205
175
|
name=pulumi.get(__response__, 'name'),
|
|
206
|
-
uid=pulumi.get(__response__, 'uid')
|
|
207
|
-
workspace_id=pulumi.get(__response__, 'workspace_id')))
|
|
176
|
+
uid=pulumi.get(__response__, 'uid')))
|