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.
Files changed (159) hide show
  1. pulumi_databricks/__init__.py +129 -46
  2. pulumi_databricks/_inputs.py +13377 -13798
  3. pulumi_databricks/account_federation_policy.py +473 -0
  4. pulumi_databricks/account_network_policy.py +12 -4
  5. pulumi_databricks/account_setting_v2.py +759 -0
  6. pulumi_databricks/alert_v2.py +223 -90
  7. pulumi_databricks/app.py +111 -4
  8. pulumi_databricks/apps_settings_custom_template.py +531 -0
  9. pulumi_databricks/budget_policy.py +28 -5
  10. pulumi_databricks/catalog.py +322 -2
  11. pulumi_databricks/cluster.py +47 -168
  12. pulumi_databricks/config/__init__.pyi +2 -0
  13. pulumi_databricks/config/vars.py +4 -0
  14. pulumi_databricks/connection.py +0 -34
  15. pulumi_databricks/data_quality_monitor.py +453 -0
  16. pulumi_databricks/data_quality_refresh.py +492 -0
  17. pulumi_databricks/database_database_catalog.py +8 -4
  18. pulumi_databricks/database_instance.py +354 -73
  19. pulumi_databricks/database_synced_database_table.py +52 -4
  20. pulumi_databricks/entitlements.py +21 -21
  21. pulumi_databricks/entity_tag_assignment.py +409 -0
  22. pulumi_databricks/external_metadata.py +15 -11
  23. pulumi_databricks/feature_engineering_feature.py +480 -0
  24. pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
  25. pulumi_databricks/get_account_federation_policies.py +127 -0
  26. pulumi_databricks/get_account_federation_policy.py +214 -0
  27. pulumi_databricks/get_account_network_policies.py +4 -0
  28. pulumi_databricks/get_account_network_policy.py +17 -18
  29. pulumi_databricks/get_account_setting_v2.py +331 -0
  30. pulumi_databricks/get_alert_v2.py +78 -70
  31. pulumi_databricks/get_alerts_v2.py +31 -12
  32. pulumi_databricks/get_app.py +21 -9
  33. pulumi_databricks/get_apps.py +22 -10
  34. pulumi_databricks/get_apps_settings_custom_template.py +207 -0
  35. pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
  36. pulumi_databricks/get_aws_bucket_policy.py +6 -6
  37. pulumi_databricks/get_budget_policies.py +70 -6
  38. pulumi_databricks/get_budget_policy.py +35 -30
  39. pulumi_databricks/get_catalog.py +21 -4
  40. pulumi_databricks/get_catalogs.py +23 -4
  41. pulumi_databricks/get_cluster.py +21 -4
  42. pulumi_databricks/get_cluster_policy.py +23 -4
  43. pulumi_databricks/get_clusters.py +21 -4
  44. pulumi_databricks/get_current_metastore.py +21 -4
  45. pulumi_databricks/get_dashboards.py +24 -4
  46. pulumi_databricks/get_data_quality_monitor.py +210 -0
  47. pulumi_databricks/get_data_quality_monitors.py +143 -0
  48. pulumi_databricks/get_data_quality_refresh.py +270 -0
  49. pulumi_databricks/get_data_quality_refreshes.py +207 -0
  50. pulumi_databricks/get_database_database_catalog.py +6 -20
  51. pulumi_databricks/get_database_database_catalogs.py +46 -8
  52. pulumi_databricks/get_database_instance.py +122 -75
  53. pulumi_databricks/get_database_instances.py +31 -6
  54. pulumi_databricks/get_database_synced_database_table.py +7 -28
  55. pulumi_databricks/get_database_synced_database_tables.py +43 -5
  56. pulumi_databricks/get_directory.py +20 -1
  57. pulumi_databricks/get_entity_tag_assignment.py +202 -0
  58. pulumi_databricks/get_entity_tag_assignments.py +187 -0
  59. pulumi_databricks/get_external_location.py +21 -4
  60. pulumi_databricks/get_external_locations.py +23 -4
  61. pulumi_databricks/get_external_metadata.py +12 -50
  62. pulumi_databricks/get_external_metadatas.py +55 -6
  63. pulumi_databricks/get_feature_engineering_feature.py +179 -0
  64. pulumi_databricks/get_feature_engineering_features.py +103 -0
  65. pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
  66. pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
  67. pulumi_databricks/get_functions.py +16 -1
  68. pulumi_databricks/get_instance_profiles.py +21 -4
  69. pulumi_databricks/get_jobs.py +23 -4
  70. pulumi_databricks/get_materialized_features_feature_tag.py +3 -11
  71. pulumi_databricks/get_materialized_features_feature_tags.py +59 -8
  72. pulumi_databricks/get_metastore.py +2 -2
  73. pulumi_databricks/get_mlflow_experiment.py +18 -1
  74. pulumi_databricks/get_mlflow_model.py +18 -1
  75. pulumi_databricks/get_mlflow_models.py +23 -4
  76. pulumi_databricks/get_node_type.py +42 -5
  77. pulumi_databricks/get_notification_destinations.py +17 -1
  78. pulumi_databricks/get_online_store.py +7 -17
  79. pulumi_databricks/get_online_stores.py +29 -8
  80. pulumi_databricks/get_pipelines.py +23 -4
  81. pulumi_databricks/get_policy_info.py +28 -99
  82. pulumi_databricks/get_policy_infos.py +92 -5
  83. pulumi_databricks/get_quality_monitor_v2.py +4 -0
  84. pulumi_databricks/get_quality_monitors_v2.py +22 -3
  85. pulumi_databricks/get_registered_model.py +19 -4
  86. pulumi_databricks/get_registered_model_versions.py +19 -4
  87. pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
  88. pulumi_databricks/get_schema.py +18 -1
  89. pulumi_databricks/get_schemas.py +23 -4
  90. pulumi_databricks/get_service_principal_federation_policies.py +151 -0
  91. pulumi_databricks/get_service_principal_federation_policy.py +220 -0
  92. pulumi_databricks/get_serving_endpoints.py +19 -4
  93. pulumi_databricks/get_share.py +117 -18
  94. pulumi_databricks/get_shares.py +22 -3
  95. pulumi_databricks/get_spark_version.py +20 -1
  96. pulumi_databricks/get_sql_warehouse.py +16 -1
  97. pulumi_databricks/get_sql_warehouses.py +20 -1
  98. pulumi_databricks/get_storage_credential.py +18 -1
  99. pulumi_databricks/get_storage_credentials.py +23 -4
  100. pulumi_databricks/get_table.py +18 -1
  101. pulumi_databricks/get_tables.py +20 -1
  102. pulumi_databricks/get_tag_policies.py +139 -0
  103. pulumi_databricks/get_tag_policy.py +175 -0
  104. pulumi_databricks/get_views.py +20 -1
  105. pulumi_databricks/get_volume.py +18 -1
  106. pulumi_databricks/get_volumes.py +20 -1
  107. pulumi_databricks/get_workspace_network_option.py +8 -16
  108. pulumi_databricks/get_workspace_setting_v2.py +331 -0
  109. pulumi_databricks/get_zones.py +20 -1
  110. pulumi_databricks/git_credential.py +54 -7
  111. pulumi_databricks/grant.py +2 -2
  112. pulumi_databricks/group.py +21 -21
  113. pulumi_databricks/job.py +47 -0
  114. pulumi_databricks/library.py +165 -0
  115. pulumi_databricks/materialized_features_feature_tag.py +8 -4
  116. pulumi_databricks/mws_ncc_private_endpoint_rule.py +7 -7
  117. pulumi_databricks/mws_permission_assignment.py +16 -16
  118. pulumi_databricks/mws_storage_configurations.py +6 -6
  119. pulumi_databricks/mws_workspaces.py +76 -29
  120. pulumi_databricks/online_store.py +8 -4
  121. pulumi_databricks/outputs.py +26397 -22382
  122. pulumi_databricks/permission_assignment.py +266 -24
  123. pulumi_databricks/pipeline.py +37 -3
  124. pulumi_databricks/policy_info.py +43 -39
  125. pulumi_databricks/provider.py +15 -0
  126. pulumi_databricks/pulumi-plugin.json +1 -1
  127. pulumi_databricks/quality_monitor.py +47 -0
  128. pulumi_databricks/quality_monitor_v2.py +8 -4
  129. pulumi_databricks/registered_model.py +301 -29
  130. pulumi_databricks/rfa_access_request_destinations.py +286 -0
  131. pulumi_databricks/service_principal_federation_policy.py +469 -0
  132. pulumi_databricks/share.py +71 -84
  133. pulumi_databricks/sql_endpoint.py +47 -0
  134. pulumi_databricks/sql_table.py +35 -7
  135. pulumi_databricks/storage_credential.py +59 -6
  136. pulumi_databricks/tag_policy.py +357 -0
  137. pulumi_databricks/user.py +21 -21
  138. pulumi_databricks/workspace_binding.py +0 -48
  139. pulumi_databricks/workspace_network_option.py +8 -4
  140. pulumi_databricks/workspace_setting_v2.py +759 -0
  141. {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
  142. pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
  143. pulumi_databricks/clean_room_asset.py +0 -891
  144. pulumi_databricks/clean_room_auto_approval_rule.py +0 -426
  145. pulumi_databricks/clean_rooms_clean_room.py +0 -518
  146. pulumi_databricks/get_clean_room_asset.py +0 -399
  147. pulumi_databricks/get_clean_room_asset_revisions_clean_room_asset.py +0 -375
  148. pulumi_databricks/get_clean_room_asset_revisions_clean_room_assets.py +0 -82
  149. pulumi_databricks/get_clean_room_assets.py +0 -104
  150. pulumi_databricks/get_clean_room_auto_approval_rule.py +0 -200
  151. pulumi_databricks/get_clean_room_auto_approval_rules.py +0 -82
  152. pulumi_databricks/get_clean_rooms_clean_room.py +0 -272
  153. pulumi_databricks/get_clean_rooms_clean_rooms.py +0 -104
  154. pulumi_databricks/get_recipient_federation_policies.py +0 -82
  155. pulumi_databricks/get_recipient_federation_policy.py +0 -165
  156. pulumi_databricks/recipient_federation_policy.py +0 -346
  157. pulumi_databricks-1.75.0a1756323569.dist-info/RECORD +0 -231
  158. {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
  159. {pulumi_databricks-1.75.0a1756323569.dist-info → pulumi_databricks-1.77.0.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
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](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
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](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
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](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
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](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')))
@@ -109,12 +109,11 @@ class AwaitableGetDatabaseDatabaseCatalogResult(GetDatabaseDatabaseCatalogResult
109
109
  uid=self.uid)
110
110
 
111
111
 
112
- def get_database_database_catalog(create_database_if_not_exists: Optional[_builtins.bool] = None,
113
- database_instance_name: Optional[_builtins.str] = None,
114
- database_name: Optional[_builtins.str] = None,
115
- name: Optional[_builtins.str] = None,
112
+ def get_database_database_catalog(name: Optional[_builtins.str] = None,
116
113
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseDatabaseCatalogResult:
117
114
  """
115
+ [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
116
+
118
117
  This data source can be used to get a single Database Catalog.
119
118
 
120
119
  ## Example Usage
@@ -129,15 +128,9 @@ def get_database_database_catalog(create_database_if_not_exists: Optional[_built
129
128
  ```
130
129
 
131
130
 
132
- :param _builtins.bool create_database_if_not_exists: (boolean)
133
- :param _builtins.str database_instance_name: (string) - The name of the DatabaseInstance housing the database
134
- :param _builtins.str database_name: (string) - The name of the database (in a instance) associated with the catalog
135
131
  :param _builtins.str name: The name of the catalog in UC
136
132
  """
137
133
  __args__ = dict()
138
- __args__['createDatabaseIfNotExists'] = create_database_if_not_exists
139
- __args__['databaseInstanceName'] = database_instance_name
140
- __args__['databaseName'] = database_name
141
134
  __args__['name'] = name
142
135
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
143
136
  __ret__ = pulumi.runtime.invoke('databricks:index/getDatabaseDatabaseCatalog:getDatabaseDatabaseCatalog', __args__, opts=opts, typ=GetDatabaseDatabaseCatalogResult).value
@@ -149,12 +142,11 @@ def get_database_database_catalog(create_database_if_not_exists: Optional[_built
149
142
  id=pulumi.get(__ret__, 'id'),
150
143
  name=pulumi.get(__ret__, 'name'),
151
144
  uid=pulumi.get(__ret__, 'uid'))
152
- def get_database_database_catalog_output(create_database_if_not_exists: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
153
- database_instance_name: Optional[pulumi.Input[_builtins.str]] = None,
154
- database_name: Optional[pulumi.Input[_builtins.str]] = None,
155
- name: Optional[pulumi.Input[_builtins.str]] = None,
145
+ def get_database_database_catalog_output(name: Optional[pulumi.Input[_builtins.str]] = None,
156
146
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabaseDatabaseCatalogResult]:
157
147
  """
148
+ [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
149
+
158
150
  This data source can be used to get a single Database Catalog.
159
151
 
160
152
  ## Example Usage
@@ -169,15 +161,9 @@ def get_database_database_catalog_output(create_database_if_not_exists: Optional
169
161
  ```
170
162
 
171
163
 
172
- :param _builtins.bool create_database_if_not_exists: (boolean)
173
- :param _builtins.str database_instance_name: (string) - The name of the DatabaseInstance housing the database
174
- :param _builtins.str database_name: (string) - The name of the database (in a instance) associated with the catalog
175
164
  :param _builtins.str name: The name of the catalog in UC
176
165
  """
177
166
  __args__ = dict()
178
- __args__['createDatabaseIfNotExists'] = create_database_if_not_exists
179
- __args__['databaseInstanceName'] = database_instance_name
180
- __args__['databaseName'] = database_name
181
167
  __args__['name'] = name
182
168
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
183
169
  __ret__ = pulumi.runtime.invoke_output('databricks:index/getDatabaseDatabaseCatalog:getDatabaseDatabaseCatalog', __args__, opts=opts, typ=GetDatabaseDatabaseCatalogResult)
@@ -27,13 +27,19 @@ class GetDatabaseDatabaseCatalogsResult:
27
27
  """
28
28
  A collection of values returned by getDatabaseDatabaseCatalogs.
29
29
  """
30
- def __init__(__self__, database_catalogs=None, id=None):
30
+ def __init__(__self__, database_catalogs=None, id=None, instance_name=None, page_size=None):
31
31
  if database_catalogs and not isinstance(database_catalogs, list):
32
32
  raise TypeError("Expected argument 'database_catalogs' to be a list")
33
33
  pulumi.set(__self__, "database_catalogs", database_catalogs)
34
34
  if id and not isinstance(id, str):
35
35
  raise TypeError("Expected argument 'id' to be a str")
36
36
  pulumi.set(__self__, "id", id)
37
+ if instance_name and not isinstance(instance_name, str):
38
+ raise TypeError("Expected argument 'instance_name' to be a str")
39
+ pulumi.set(__self__, "instance_name", instance_name)
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)
37
43
 
38
44
  @_builtins.property
39
45
  @pulumi.getter(name="databaseCatalogs")
@@ -48,6 +54,16 @@ class GetDatabaseDatabaseCatalogsResult:
48
54
  """
49
55
  return pulumi.get(self, "id")
50
56
 
57
+ @_builtins.property
58
+ @pulumi.getter(name="instanceName")
59
+ def instance_name(self) -> _builtins.str:
60
+ return pulumi.get(self, "instance_name")
61
+
62
+ @_builtins.property
63
+ @pulumi.getter(name="pageSize")
64
+ def page_size(self) -> Optional[_builtins.int]:
65
+ return pulumi.get(self, "page_size")
66
+
51
67
 
52
68
  class AwaitableGetDatabaseDatabaseCatalogsResult(GetDatabaseDatabaseCatalogsResult):
53
69
  # pylint: disable=using-constant-test
@@ -56,27 +72,49 @@ class AwaitableGetDatabaseDatabaseCatalogsResult(GetDatabaseDatabaseCatalogsResu
56
72
  yield self
57
73
  return GetDatabaseDatabaseCatalogsResult(
58
74
  database_catalogs=self.database_catalogs,
59
- id=self.id)
75
+ id=self.id,
76
+ instance_name=self.instance_name,
77
+ page_size=self.page_size)
60
78
 
61
79
 
62
- def get_database_database_catalogs(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseDatabaseCatalogsResult:
80
+ def get_database_database_catalogs(instance_name: Optional[_builtins.str] = None,
81
+ page_size: Optional[_builtins.int] = None,
82
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseDatabaseCatalogsResult:
63
83
  """
64
- Use this data source to access information about an existing resource.
84
+ [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
85
+
86
+
87
+ :param _builtins.str instance_name: Name of the instance to get database catalogs for
88
+ :param _builtins.int page_size: Upper bound for items returned
65
89
  """
66
90
  __args__ = dict()
91
+ __args__['instanceName'] = instance_name
92
+ __args__['pageSize'] = page_size
67
93
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
68
94
  __ret__ = pulumi.runtime.invoke('databricks:index/getDatabaseDatabaseCatalogs:getDatabaseDatabaseCatalogs', __args__, opts=opts, typ=GetDatabaseDatabaseCatalogsResult).value
69
95
 
70
96
  return AwaitableGetDatabaseDatabaseCatalogsResult(
71
97
  database_catalogs=pulumi.get(__ret__, 'database_catalogs'),
72
- id=pulumi.get(__ret__, 'id'))
73
- def get_database_database_catalogs_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabaseDatabaseCatalogsResult]:
98
+ id=pulumi.get(__ret__, 'id'),
99
+ instance_name=pulumi.get(__ret__, 'instance_name'),
100
+ page_size=pulumi.get(__ret__, 'page_size'))
101
+ def get_database_database_catalogs_output(instance_name: Optional[pulumi.Input[_builtins.str]] = None,
102
+ page_size: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
103
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabaseDatabaseCatalogsResult]:
74
104
  """
75
- Use this data source to access information about an existing resource.
105
+ [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
106
+
107
+
108
+ :param _builtins.str instance_name: Name of the instance to get database catalogs for
109
+ :param _builtins.int page_size: Upper bound for items returned
76
110
  """
77
111
  __args__ = dict()
112
+ __args__['instanceName'] = instance_name
113
+ __args__['pageSize'] = page_size
78
114
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
79
115
  __ret__ = pulumi.runtime.invoke_output('databricks:index/getDatabaseDatabaseCatalogs:getDatabaseDatabaseCatalogs', __args__, opts=opts, typ=GetDatabaseDatabaseCatalogsResult)
80
116
  return __ret__.apply(lambda __response__: GetDatabaseDatabaseCatalogsResult(
81
117
  database_catalogs=pulumi.get(__response__, 'database_catalogs'),
82
- id=pulumi.get(__response__, 'id')))
118
+ id=pulumi.get(__response__, 'id'),
119
+ instance_name=pulumi.get(__response__, 'instance_name'),
120
+ page_size=pulumi.get(__response__, 'page_size')))