pulumi-databricks 1.74.0a1753335781__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 (252) hide show
  1. pulumi_databricks/__init__.py +185 -12
  2. pulumi_databricks/_inputs.py +30467 -20225
  3. pulumi_databricks/access_control_rule_set.py +28 -29
  4. pulumi_databricks/account_federation_policy.py +473 -0
  5. pulumi_databricks/account_network_policy.py +74 -43
  6. pulumi_databricks/account_setting_v2.py +759 -0
  7. pulumi_databricks/aibi_dashboard_embedding_access_policy_setting.py +30 -31
  8. pulumi_databricks/aibi_dashboard_embedding_approved_domains_setting.py +30 -31
  9. pulumi_databricks/alert.py +185 -186
  10. pulumi_databricks/alert_v2.py +369 -211
  11. pulumi_databricks/app.py +315 -209
  12. pulumi_databricks/apps_settings_custom_template.py +531 -0
  13. pulumi_databricks/artifact_allowlist.py +72 -73
  14. pulumi_databricks/automatic_cluster_update_workspace_setting.py +30 -31
  15. pulumi_databricks/budget.py +84 -85
  16. pulumi_databricks/budget_policy.py +75 -53
  17. pulumi_databricks/catalog.py +544 -225
  18. pulumi_databricks/catalog_workspace_binding.py +82 -83
  19. pulumi_databricks/cluster.py +561 -683
  20. pulumi_databricks/cluster_policy.py +115 -116
  21. pulumi_databricks/compliance_security_profile_workspace_setting.py +30 -31
  22. pulumi_databricks/config/__init__.py +1 -1
  23. pulumi_databricks/config/__init__.pyi +3 -2
  24. pulumi_databricks/config/vars.py +40 -37
  25. pulumi_databricks/connection.py +346 -211
  26. pulumi_databricks/credential.py +262 -263
  27. pulumi_databricks/custom_app_integration.py +175 -176
  28. pulumi_databricks/dashboard.py +207 -208
  29. pulumi_databricks/data_quality_monitor.py +453 -0
  30. pulumi_databricks/data_quality_refresh.py +492 -0
  31. pulumi_databricks/database_database_catalog.py +437 -0
  32. pulumi_databricks/database_instance.py +938 -137
  33. pulumi_databricks/database_synced_database_table.py +589 -0
  34. pulumi_databricks/dbfs_file.py +87 -84
  35. pulumi_databricks/default_namespace_setting.py +30 -31
  36. pulumi_databricks/directory.py +61 -62
  37. pulumi_databricks/disable_legacy_access_setting.py +109 -33
  38. pulumi_databricks/disable_legacy_dbfs_setting.py +58 -39
  39. pulumi_databricks/disable_legacy_features_setting.py +62 -37
  40. pulumi_databricks/enhanced_security_monitoring_workspace_setting.py +30 -31
  41. pulumi_databricks/entitlements.py +148 -149
  42. pulumi_databricks/entity_tag_assignment.py +409 -0
  43. pulumi_databricks/external_location.py +276 -290
  44. pulumi_databricks/external_metadata.py +726 -0
  45. pulumi_databricks/feature_engineering_feature.py +480 -0
  46. pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
  47. pulumi_databricks/file.py +96 -97
  48. pulumi_databricks/get_account_federation_policies.py +127 -0
  49. pulumi_databricks/get_account_federation_policy.py +214 -0
  50. pulumi_databricks/get_account_network_policies.py +36 -7
  51. pulumi_databricks/get_account_network_policy.py +33 -29
  52. pulumi_databricks/get_account_setting_v2.py +331 -0
  53. pulumi_databricks/get_alert_v2.py +100 -84
  54. pulumi_databricks/get_alerts_v2.py +35 -17
  55. pulumi_databricks/get_app.py +31 -20
  56. pulumi_databricks/get_apps.py +26 -15
  57. pulumi_databricks/get_apps_settings_custom_template.py +207 -0
  58. pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
  59. pulumi_databricks/get_aws_assume_role_policy.py +27 -28
  60. pulumi_databricks/get_aws_bucket_policy.py +39 -40
  61. pulumi_databricks/get_aws_cross_account_policy.py +47 -48
  62. pulumi_databricks/get_aws_unity_catalog_assume_role_policy.py +35 -36
  63. pulumi_databricks/get_aws_unity_catalog_policy.py +35 -36
  64. pulumi_databricks/get_budget_policies.py +74 -11
  65. pulumi_databricks/get_budget_policy.py +43 -39
  66. pulumi_databricks/get_catalog.py +35 -19
  67. pulumi_databricks/get_catalogs.py +32 -14
  68. pulumi_databricks/get_cluster.py +41 -25
  69. pulumi_databricks/get_cluster_policy.py +72 -54
  70. pulumi_databricks/get_clusters.py +41 -25
  71. pulumi_databricks/get_current_config.py +23 -24
  72. pulumi_databricks/get_current_metastore.py +29 -13
  73. pulumi_databricks/get_current_user.py +17 -18
  74. pulumi_databricks/get_dashboards.py +34 -15
  75. pulumi_databricks/get_data_quality_monitor.py +210 -0
  76. pulumi_databricks/get_data_quality_monitors.py +143 -0
  77. pulumi_databricks/get_data_quality_refresh.py +270 -0
  78. pulumi_databricks/get_data_quality_refreshes.py +207 -0
  79. pulumi_databricks/get_database_database_catalog.py +176 -0
  80. pulumi_databricks/get_database_database_catalogs.py +120 -0
  81. pulumi_databricks/get_database_instance.py +274 -50
  82. pulumi_databricks/get_database_instances.py +35 -11
  83. pulumi_databricks/get_database_synced_database_table.py +225 -0
  84. pulumi_databricks/get_database_synced_database_tables.py +120 -0
  85. pulumi_databricks/get_dbfs_file.py +19 -20
  86. pulumi_databricks/get_dbfs_file_paths.py +16 -17
  87. pulumi_databricks/get_directory.py +43 -25
  88. pulumi_databricks/get_entity_tag_assignment.py +202 -0
  89. pulumi_databricks/get_entity_tag_assignments.py +187 -0
  90. pulumi_databricks/get_external_location.py +35 -19
  91. pulumi_databricks/get_external_locations.py +32 -14
  92. pulumi_databricks/get_external_metadata.py +292 -0
  93. pulumi_databricks/get_external_metadatas.py +135 -0
  94. pulumi_databricks/get_feature_engineering_feature.py +179 -0
  95. pulumi_databricks/get_feature_engineering_features.py +103 -0
  96. pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
  97. pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
  98. pulumi_databricks/get_functions.py +38 -24
  99. pulumi_databricks/get_group.py +85 -86
  100. pulumi_databricks/get_instance_pool.py +10 -11
  101. pulumi_databricks/get_instance_profiles.py +25 -9
  102. pulumi_databricks/get_job.py +22 -23
  103. pulumi_databricks/get_jobs.py +44 -26
  104. pulumi_databricks/get_materialized_features_feature_tag.py +102 -0
  105. pulumi_databricks/get_materialized_features_feature_tags.py +133 -0
  106. pulumi_databricks/get_metastore.py +28 -29
  107. pulumi_databricks/get_metastores.py +9 -10
  108. pulumi_databricks/get_mlflow_experiment.py +62 -46
  109. pulumi_databricks/get_mlflow_model.py +47 -31
  110. pulumi_databricks/get_mlflow_models.py +32 -14
  111. pulumi_databricks/get_mws_credentials.py +9 -10
  112. pulumi_databricks/get_mws_network_connectivity_config.py +40 -41
  113. pulumi_databricks/get_mws_network_connectivity_configs.py +15 -16
  114. pulumi_databricks/get_mws_workspaces.py +5 -6
  115. pulumi_databricks/get_node_type.py +123 -87
  116. pulumi_databricks/get_notebook.py +37 -38
  117. pulumi_databricks/get_notebook_paths.py +16 -17
  118. pulumi_databricks/get_notification_destinations.py +33 -18
  119. pulumi_databricks/get_online_store.py +36 -27
  120. pulumi_databricks/get_online_stores.py +33 -13
  121. pulumi_databricks/get_pipelines.py +49 -31
  122. pulumi_databricks/get_policy_info.py +338 -0
  123. pulumi_databricks/get_policy_infos.py +169 -0
  124. pulumi_databricks/get_quality_monitor_v2.py +21 -18
  125. pulumi_databricks/get_quality_monitors_v2.py +26 -8
  126. pulumi_databricks/get_registered_model.py +41 -27
  127. pulumi_databricks/get_registered_model_versions.py +29 -15
  128. pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
  129. pulumi_databricks/get_schema.py +32 -16
  130. pulumi_databricks/get_schemas.py +38 -20
  131. pulumi_databricks/get_service_principal.py +80 -58
  132. pulumi_databricks/get_service_principal_federation_policies.py +151 -0
  133. pulumi_databricks/get_service_principal_federation_policy.py +220 -0
  134. pulumi_databricks/get_service_principals.py +16 -17
  135. pulumi_databricks/get_serving_endpoints.py +23 -9
  136. pulumi_databricks/get_share.py +130 -32
  137. pulumi_databricks/get_shares.py +29 -11
  138. pulumi_databricks/get_spark_version.py +87 -69
  139. pulumi_databricks/get_sql_warehouse.py +124 -110
  140. pulumi_databricks/get_sql_warehouses.py +37 -19
  141. pulumi_databricks/get_storage_credential.py +32 -16
  142. pulumi_databricks/get_storage_credentials.py +32 -14
  143. pulumi_databricks/get_table.py +30 -14
  144. pulumi_databricks/get_tables.py +41 -23
  145. pulumi_databricks/get_tag_policies.py +139 -0
  146. pulumi_databricks/get_tag_policy.py +175 -0
  147. pulumi_databricks/get_user.py +33 -34
  148. pulumi_databricks/get_views.py +41 -23
  149. pulumi_databricks/get_volume.py +32 -16
  150. pulumi_databricks/get_volumes.py +41 -23
  151. pulumi_databricks/get_workspace_network_option.py +45 -26
  152. pulumi_databricks/get_workspace_setting_v2.py +331 -0
  153. pulumi_databricks/get_zones.py +39 -21
  154. pulumi_databricks/git_credential.py +242 -76
  155. pulumi_databricks/global_init_script.py +99 -100
  156. pulumi_databricks/grant.py +215 -212
  157. pulumi_databricks/grants.py +200 -211
  158. pulumi_databricks/group.py +176 -177
  159. pulumi_databricks/group_instance_profile.py +37 -38
  160. pulumi_databricks/group_member.py +37 -38
  161. pulumi_databricks/group_role.py +37 -38
  162. pulumi_databricks/instance_pool.py +168 -169
  163. pulumi_databricks/instance_profile.py +69 -70
  164. pulumi_databricks/ip_access_list.py +71 -72
  165. pulumi_databricks/job.py +426 -346
  166. pulumi_databricks/lakehouse_monitor.py +199 -200
  167. pulumi_databricks/library.py +264 -99
  168. pulumi_databricks/materialized_features_feature_tag.py +213 -0
  169. pulumi_databricks/metastore.py +254 -255
  170. pulumi_databricks/metastore_assignment.py +52 -53
  171. pulumi_databricks/metastore_data_access.py +153 -154
  172. pulumi_databricks/metastore_provider.py +69 -70
  173. pulumi_databricks/mlflow_experiment.py +108 -109
  174. pulumi_databricks/mlflow_model.py +45 -46
  175. pulumi_databricks/mlflow_webhook.py +75 -76
  176. pulumi_databricks/model_serving.py +195 -74
  177. pulumi_databricks/model_serving_provisioned_throughput.py +100 -54
  178. pulumi_databricks/mount.py +103 -104
  179. pulumi_databricks/mws_credentials.py +99 -100
  180. pulumi_databricks/mws_customer_managed_keys.py +75 -76
  181. pulumi_databricks/mws_log_delivery.py +188 -189
  182. pulumi_databricks/mws_ncc_binding.py +35 -36
  183. pulumi_databricks/mws_ncc_private_endpoint_rule.py +312 -289
  184. pulumi_databricks/mws_network_connectivity_config.py +136 -98
  185. pulumi_databricks/mws_networks.py +159 -160
  186. pulumi_databricks/mws_permission_assignment.py +70 -71
  187. pulumi_databricks/mws_private_access_settings.py +116 -117
  188. pulumi_databricks/mws_storage_configurations.py +74 -75
  189. pulumi_databricks/mws_vpc_endpoint.py +149 -150
  190. pulumi_databricks/mws_workspaces.py +464 -418
  191. pulumi_databricks/notebook.py +143 -144
  192. pulumi_databricks/notification_destination.py +38 -39
  193. pulumi_databricks/obo_token.py +63 -64
  194. pulumi_databricks/online_store.py +121 -70
  195. pulumi_databricks/online_table.py +41 -42
  196. pulumi_databricks/outputs.py +47821 -30802
  197. pulumi_databricks/permission_assignment.py +298 -57
  198. pulumi_databricks/permissions.py +523 -362
  199. pulumi_databricks/pipeline.py +515 -480
  200. pulumi_databricks/policy_info.py +916 -0
  201. pulumi_databricks/provider.py +283 -269
  202. pulumi_databricks/pulumi-plugin.json +1 -1
  203. pulumi_databricks/quality_monitor.py +263 -217
  204. pulumi_databricks/quality_monitor_v2.py +49 -46
  205. pulumi_databricks/query.py +227 -228
  206. pulumi_databricks/recipient.py +208 -209
  207. pulumi_databricks/registered_model.py +393 -122
  208. pulumi_databricks/repo.py +117 -118
  209. pulumi_databricks/restrict_workspace_admins_setting.py +30 -31
  210. pulumi_databricks/rfa_access_request_destinations.py +286 -0
  211. pulumi_databricks/schema.py +159 -160
  212. pulumi_databricks/secret.py +72 -73
  213. pulumi_databricks/secret_acl.py +52 -53
  214. pulumi_databricks/secret_scope.py +55 -56
  215. pulumi_databricks/service_principal.py +279 -278
  216. pulumi_databricks/service_principal_federation_policy.py +469 -0
  217. pulumi_databricks/service_principal_role.py +35 -36
  218. pulumi_databricks/service_principal_secret.py +156 -157
  219. pulumi_databricks/share.py +186 -187
  220. pulumi_databricks/sql_alert.py +98 -99
  221. pulumi_databricks/sql_dashboard.py +94 -95
  222. pulumi_databricks/sql_endpoint.py +298 -266
  223. pulumi_databricks/sql_global_config.py +103 -104
  224. pulumi_databricks/sql_permissions.py +121 -122
  225. pulumi_databricks/sql_query.py +150 -151
  226. pulumi_databricks/sql_table.py +310 -283
  227. pulumi_databricks/sql_visualization.py +92 -93
  228. pulumi_databricks/sql_widget.py +91 -88
  229. pulumi_databricks/storage_credential.py +236 -184
  230. pulumi_databricks/system_schema.py +50 -51
  231. pulumi_databricks/table.py +147 -148
  232. pulumi_databricks/tag_policy.py +357 -0
  233. pulumi_databricks/token.py +83 -84
  234. pulumi_databricks/user.py +284 -285
  235. pulumi_databricks/user_instance_profile.py +35 -36
  236. pulumi_databricks/user_role.py +35 -36
  237. pulumi_databricks/vector_search_endpoint.py +117 -118
  238. pulumi_databricks/vector_search_index.py +86 -87
  239. pulumi_databricks/volume.py +129 -130
  240. pulumi_databricks/workspace_binding.py +82 -131
  241. pulumi_databricks/workspace_conf.py +18 -19
  242. pulumi_databricks/workspace_file.py +100 -101
  243. pulumi_databricks/workspace_network_option.py +89 -40
  244. pulumi_databricks/workspace_setting_v2.py +759 -0
  245. {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
  246. pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
  247. pulumi_databricks/get_recipient_federation_policies.py +0 -83
  248. pulumi_databricks/get_recipient_federation_policy.py +0 -166
  249. pulumi_databricks/recipient_federation_policy.py +0 -347
  250. pulumi_databricks-1.74.0a1753335781.dist-info/RECORD +0 -205
  251. {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
  252. {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,143 @@
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
+ 'GetDataQualityMonitorsResult',
20
+ 'AwaitableGetDataQualityMonitorsResult',
21
+ 'get_data_quality_monitors',
22
+ 'get_data_quality_monitors_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetDataQualityMonitorsResult:
27
+ """
28
+ A collection of values returned by getDataQualityMonitors.
29
+ """
30
+ def __init__(__self__, id=None, monitors=None, page_size=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 monitors and not isinstance(monitors, list):
35
+ raise TypeError("Expected argument 'monitors' to be a list")
36
+ pulumi.set(__self__, "monitors", monitors)
37
+ if page_size and not isinstance(page_size, int):
38
+ raise TypeError("Expected argument 'page_size' to be a int")
39
+ pulumi.set(__self__, "page_size", page_size)
40
+
41
+ @_builtins.property
42
+ @pulumi.getter
43
+ def id(self) -> _builtins.str:
44
+ """
45
+ The provider-assigned unique ID for this managed resource.
46
+ """
47
+ return pulumi.get(self, "id")
48
+
49
+ @_builtins.property
50
+ @pulumi.getter
51
+ def monitors(self) -> Sequence['outputs.GetDataQualityMonitorsMonitorResult']:
52
+ return pulumi.get(self, "monitors")
53
+
54
+ @_builtins.property
55
+ @pulumi.getter(name="pageSize")
56
+ def page_size(self) -> Optional[_builtins.int]:
57
+ return pulumi.get(self, "page_size")
58
+
59
+
60
+ class AwaitableGetDataQualityMonitorsResult(GetDataQualityMonitorsResult):
61
+ # pylint: disable=using-constant-test
62
+ def __await__(self):
63
+ if False:
64
+ yield self
65
+ return GetDataQualityMonitorsResult(
66
+ id=self.id,
67
+ monitors=self.monitors,
68
+ page_size=self.page_size)
69
+
70
+
71
+ def get_data_quality_monitors(page_size: Optional[_builtins.int] = None,
72
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataQualityMonitorsResult:
73
+ """
74
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
75
+
76
+ This data source can be used to fetch the list of data quality monitors.
77
+
78
+ For the `table` `object_type`, the caller must either:
79
+ 1. be an owner of the table's parent catalog
80
+ 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
81
+ 3. have the following permissions:
82
+ - **USE_CATALOG** on the table's parent catalog
83
+ - **USE_SCHEMA** on the table's parent schema
84
+ - **SELECT** privilege on the table.
85
+
86
+ > **Note** This data source can only be used with a workspace-level provider!
87
+
88
+ ## Example Usage
89
+
90
+ Getting a list of all data quality monitors:
91
+
92
+ ```python
93
+ import pulumi
94
+ import pulumi_databricks as databricks
95
+
96
+ all = databricks.get_data_quality_monitors()
97
+ ```
98
+ """
99
+ __args__ = dict()
100
+ __args__['pageSize'] = page_size
101
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
102
+ __ret__ = pulumi.runtime.invoke('databricks:index/getDataQualityMonitors:getDataQualityMonitors', __args__, opts=opts, typ=GetDataQualityMonitorsResult).value
103
+
104
+ return AwaitableGetDataQualityMonitorsResult(
105
+ id=pulumi.get(__ret__, 'id'),
106
+ monitors=pulumi.get(__ret__, 'monitors'),
107
+ page_size=pulumi.get(__ret__, 'page_size'))
108
+ def get_data_quality_monitors_output(page_size: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
109
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDataQualityMonitorsResult]:
110
+ """
111
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
112
+
113
+ This data source can be used to fetch the list of data quality monitors.
114
+
115
+ For the `table` `object_type`, the caller must either:
116
+ 1. be an owner of the table's parent catalog
117
+ 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
118
+ 3. have the following permissions:
119
+ - **USE_CATALOG** on the table's parent catalog
120
+ - **USE_SCHEMA** on the table's parent schema
121
+ - **SELECT** privilege on the table.
122
+
123
+ > **Note** This data source can only be used with a workspace-level provider!
124
+
125
+ ## Example Usage
126
+
127
+ Getting a list of all data quality monitors:
128
+
129
+ ```python
130
+ import pulumi
131
+ import pulumi_databricks as databricks
132
+
133
+ all = databricks.get_data_quality_monitors()
134
+ ```
135
+ """
136
+ __args__ = dict()
137
+ __args__['pageSize'] = page_size
138
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
139
+ __ret__ = pulumi.runtime.invoke_output('databricks:index/getDataQualityMonitors:getDataQualityMonitors', __args__, opts=opts, typ=GetDataQualityMonitorsResult)
140
+ return __ret__.apply(lambda __response__: GetDataQualityMonitorsResult(
141
+ id=pulumi.get(__response__, 'id'),
142
+ monitors=pulumi.get(__response__, 'monitors'),
143
+ page_size=pulumi.get(__response__, 'page_size')))
@@ -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')))