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
@@ -14,6 +14,7 @@ else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from . import _utilities
16
16
  from . import outputs
17
+ from ._inputs import *
17
18
 
18
19
  __all__ = [
19
20
  'GetDashboardsResult',
@@ -27,7 +28,7 @@ class GetDashboardsResult:
27
28
  """
28
29
  A collection of values returned by getDashboards.
29
30
  """
30
- def __init__(__self__, dashboard_name_contains=None, dashboards=None, id=None):
31
+ def __init__(__self__, dashboard_name_contains=None, dashboards=None, id=None, provider_config=None):
31
32
  if dashboard_name_contains and not isinstance(dashboard_name_contains, str):
32
33
  raise TypeError("Expected argument 'dashboard_name_contains' to be a str")
33
34
  pulumi.set(__self__, "dashboard_name_contains", dashboard_name_contains)
@@ -37,6 +38,9 @@ class GetDashboardsResult:
37
38
  if id and not isinstance(id, str):
38
39
  raise TypeError("Expected argument 'id' to be a str")
39
40
  pulumi.set(__self__, "id", id)
41
+ if provider_config and not isinstance(provider_config, dict):
42
+ raise TypeError("Expected argument 'provider_config' to be a dict")
43
+ pulumi.set(__self__, "provider_config", provider_config)
40
44
 
41
45
  @_builtins.property
42
46
  @pulumi.getter(name="dashboardNameContains")
@@ -59,6 +63,11 @@ class GetDashboardsResult:
59
63
  """
60
64
  return pulumi.get(self, "id")
61
65
 
66
+ @_builtins.property
67
+ @pulumi.getter(name="providerConfig")
68
+ def provider_config(self) -> Optional['outputs.GetDashboardsProviderConfigResult']:
69
+ return pulumi.get(self, "provider_config")
70
+
62
71
 
63
72
  class AwaitableGetDashboardsResult(GetDashboardsResult):
64
73
  # pylint: disable=using-constant-test
@@ -68,43 +77,54 @@ class AwaitableGetDashboardsResult(GetDashboardsResult):
68
77
  return GetDashboardsResult(
69
78
  dashboard_name_contains=self.dashboard_name_contains,
70
79
  dashboards=self.dashboards,
71
- id=self.id)
80
+ id=self.id,
81
+ provider_config=self.provider_config)
72
82
 
73
83
 
74
84
  def get_dashboards(dashboard_name_contains: Optional[_builtins.str] = None,
85
+ provider_config: Optional[Union['GetDashboardsProviderConfigArgs', 'GetDashboardsProviderConfigArgsDict']] = None,
75
86
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDashboardsResult:
76
87
  """
77
88
  This data source allows you to retrieve information about Databricks [Dashboards](https://docs.databricks.com/en/dashboards/index.html).
78
89
 
79
90
  > This data source can only be used with a workspace-level provider!
80
91
 
92
+ ## Example Usage
93
+
81
94
 
82
95
  :param _builtins.str dashboard_name_contains: A **case-insensitive** substring to filter Dashboards by their name.
83
96
  """
84
97
  __args__ = dict()
85
98
  __args__['dashboardNameContains'] = dashboard_name_contains
99
+ __args__['providerConfig'] = provider_config
86
100
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
87
101
  __ret__ = pulumi.runtime.invoke('databricks:index/getDashboards:getDashboards', __args__, opts=opts, typ=GetDashboardsResult).value
88
102
 
89
103
  return AwaitableGetDashboardsResult(
90
104
  dashboard_name_contains=pulumi.get(__ret__, 'dashboard_name_contains'),
91
105
  dashboards=pulumi.get(__ret__, 'dashboards'),
92
- id=pulumi.get(__ret__, 'id'))
106
+ id=pulumi.get(__ret__, 'id'),
107
+ provider_config=pulumi.get(__ret__, 'provider_config'))
93
108
  def get_dashboards_output(dashboard_name_contains: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
109
+ provider_config: Optional[pulumi.Input[Optional[Union['GetDashboardsProviderConfigArgs', 'GetDashboardsProviderConfigArgsDict']]]] = None,
94
110
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDashboardsResult]:
95
111
  """
96
112
  This data source allows you to retrieve information about Databricks [Dashboards](https://docs.databricks.com/en/dashboards/index.html).
97
113
 
98
114
  > This data source can only be used with a workspace-level provider!
99
115
 
116
+ ## Example Usage
117
+
100
118
 
101
119
  :param _builtins.str dashboard_name_contains: A **case-insensitive** substring to filter Dashboards by their name.
102
120
  """
103
121
  __args__ = dict()
104
122
  __args__['dashboardNameContains'] = dashboard_name_contains
123
+ __args__['providerConfig'] = provider_config
105
124
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
106
125
  __ret__ = pulumi.runtime.invoke_output('databricks:index/getDashboards:getDashboards', __args__, opts=opts, typ=GetDashboardsResult)
107
126
  return __ret__.apply(lambda __response__: GetDashboardsResult(
108
127
  dashboard_name_contains=pulumi.get(__response__, 'dashboard_name_contains'),
109
128
  dashboards=pulumi.get(__response__, 'dashboards'),
110
- id=pulumi.get(__response__, 'id')))
129
+ id=pulumi.get(__response__, 'id'),
130
+ provider_config=pulumi.get(__response__, 'provider_config')))
@@ -0,0 +1,210 @@
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
+ 'GetDataQualityMonitorResult',
20
+ 'AwaitableGetDataQualityMonitorResult',
21
+ 'get_data_quality_monitor',
22
+ 'get_data_quality_monitor_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetDataQualityMonitorResult:
27
+ """
28
+ A collection of values returned by getDataQualityMonitor.
29
+ """
30
+ def __init__(__self__, anomaly_detection_config=None, data_profiling_config=None, id=None, object_id=None, object_type=None):
31
+ if anomaly_detection_config and not isinstance(anomaly_detection_config, dict):
32
+ raise TypeError("Expected argument 'anomaly_detection_config' to be a dict")
33
+ pulumi.set(__self__, "anomaly_detection_config", anomaly_detection_config)
34
+ if data_profiling_config and not isinstance(data_profiling_config, dict):
35
+ raise TypeError("Expected argument 'data_profiling_config' to be a dict")
36
+ pulumi.set(__self__, "data_profiling_config", data_profiling_config)
37
+ if id and not isinstance(id, str):
38
+ raise TypeError("Expected argument 'id' to be a str")
39
+ pulumi.set(__self__, "id", id)
40
+ if object_id and not isinstance(object_id, str):
41
+ raise TypeError("Expected argument 'object_id' to be a str")
42
+ pulumi.set(__self__, "object_id", object_id)
43
+ if object_type and not isinstance(object_type, str):
44
+ raise TypeError("Expected argument 'object_type' to be a str")
45
+ pulumi.set(__self__, "object_type", object_type)
46
+
47
+ @_builtins.property
48
+ @pulumi.getter(name="anomalyDetectionConfig")
49
+ def anomaly_detection_config(self) -> 'outputs.GetDataQualityMonitorAnomalyDetectionConfigResult':
50
+ """
51
+ (AnomalyDetectionConfig) - Anomaly Detection Configuration, applicable to `schema` object types
52
+ """
53
+ return pulumi.get(self, "anomaly_detection_config")
54
+
55
+ @_builtins.property
56
+ @pulumi.getter(name="dataProfilingConfig")
57
+ def data_profiling_config(self) -> 'outputs.GetDataQualityMonitorDataProfilingConfigResult':
58
+ """
59
+ (DataProfilingConfig) - Data Profiling Configuration, applicable to `table` object types. Exactly one `Analysis Configuration`
60
+ must be present
61
+ """
62
+ return pulumi.get(self, "data_profiling_config")
63
+
64
+ @_builtins.property
65
+ @pulumi.getter
66
+ def id(self) -> _builtins.str:
67
+ """
68
+ The provider-assigned unique ID for this managed resource.
69
+ """
70
+ return pulumi.get(self, "id")
71
+
72
+ @_builtins.property
73
+ @pulumi.getter(name="objectId")
74
+ def object_id(self) -> _builtins.str:
75
+ """
76
+ (string) - The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
77
+ """
78
+ return pulumi.get(self, "object_id")
79
+
80
+ @_builtins.property
81
+ @pulumi.getter(name="objectType")
82
+ def object_type(self) -> _builtins.str:
83
+ """
84
+ (string) - The type of the monitored object. Can be one of the following: `schema` or `table`
85
+ """
86
+ return pulumi.get(self, "object_type")
87
+
88
+
89
+ class AwaitableGetDataQualityMonitorResult(GetDataQualityMonitorResult):
90
+ # pylint: disable=using-constant-test
91
+ def __await__(self):
92
+ if False:
93
+ yield self
94
+ return GetDataQualityMonitorResult(
95
+ anomaly_detection_config=self.anomaly_detection_config,
96
+ data_profiling_config=self.data_profiling_config,
97
+ id=self.id,
98
+ object_id=self.object_id,
99
+ object_type=self.object_type)
100
+
101
+
102
+ def get_data_quality_monitor(object_id: Optional[_builtins.str] = None,
103
+ object_type: Optional[_builtins.str] = None,
104
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataQualityMonitorResult:
105
+ """
106
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
107
+
108
+ This data source can be used to fetch a data quality monitor.
109
+
110
+ For the `table` `object_type`, the caller must either:
111
+ 1. be an owner of the table's parent catalog
112
+ 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
113
+ 3. have the following permissions:
114
+ - **USE_CATALOG** on the table's parent catalog
115
+ - **USE_SCHEMA** on the table's parent schema
116
+ - **SELECT** privilege on the table.
117
+
118
+ > **Note** This data source can only be used with a workspace-level provider!
119
+
120
+ ## Example Usage
121
+
122
+ Getting a data quality monitor by Unity Catalog object type (currently supports `schema` and `table`) and object id:
123
+
124
+ ```python
125
+ import pulumi
126
+ import pulumi_databricks as databricks
127
+
128
+ this = databricks.get_schema(name="my_catalog.my_schema")
129
+ this_get_data_quality_monitor = databricks.get_data_quality_monitor(object_type="schema",
130
+ object_id=this.schema_info.schema_id)
131
+ ```
132
+
133
+
134
+ :param _builtins.str object_id: The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
135
+
136
+ Find the `schema_id` from either:
137
+ 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
138
+ 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
139
+
140
+ Find the `table_id` from either:
141
+ 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
142
+ 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field
143
+ :param _builtins.str object_type: The type of the monitored object. Can be one of the following: `schema` or `table`
144
+ """
145
+ __args__ = dict()
146
+ __args__['objectId'] = object_id
147
+ __args__['objectType'] = object_type
148
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
149
+ __ret__ = pulumi.runtime.invoke('databricks:index/getDataQualityMonitor:getDataQualityMonitor', __args__, opts=opts, typ=GetDataQualityMonitorResult).value
150
+
151
+ return AwaitableGetDataQualityMonitorResult(
152
+ anomaly_detection_config=pulumi.get(__ret__, 'anomaly_detection_config'),
153
+ data_profiling_config=pulumi.get(__ret__, 'data_profiling_config'),
154
+ id=pulumi.get(__ret__, 'id'),
155
+ object_id=pulumi.get(__ret__, 'object_id'),
156
+ object_type=pulumi.get(__ret__, 'object_type'))
157
+ def get_data_quality_monitor_output(object_id: Optional[pulumi.Input[_builtins.str]] = None,
158
+ object_type: Optional[pulumi.Input[_builtins.str]] = None,
159
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDataQualityMonitorResult]:
160
+ """
161
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
162
+
163
+ This data source can be used to fetch a data quality monitor.
164
+
165
+ For the `table` `object_type`, the caller must either:
166
+ 1. be an owner of the table's parent catalog
167
+ 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema.
168
+ 3. have the following permissions:
169
+ - **USE_CATALOG** on the table's parent catalog
170
+ - **USE_SCHEMA** on the table's parent schema
171
+ - **SELECT** privilege on the table.
172
+
173
+ > **Note** This data source can only be used with a workspace-level provider!
174
+
175
+ ## Example Usage
176
+
177
+ Getting a data quality monitor by Unity Catalog object type (currently supports `schema` and `table`) and object id:
178
+
179
+ ```python
180
+ import pulumi
181
+ import pulumi_databricks as databricks
182
+
183
+ this = databricks.get_schema(name="my_catalog.my_schema")
184
+ this_get_data_quality_monitor = databricks.get_data_quality_monitor(object_type="schema",
185
+ object_id=this.schema_info.schema_id)
186
+ ```
187
+
188
+
189
+ :param _builtins.str object_id: The UUID of the request object. It is `schema_id` for `schema`, and `table_id` for `table`.
190
+
191
+ Find the `schema_id` from either:
192
+ 1. The [schema_id](https://docs.databricks.com/api/workspace/schemas/get#schema_id) of the `Schemas` resource.
193
+ 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `schema` > go to the `Details` tab > the `Schema ID` field.
194
+
195
+ Find the `table_id` from either:
196
+ 1. The [table_id](https://docs.databricks.com/api/workspace/tables/get#table_id) of the `Tables` resource.
197
+ 2. In [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/) > select the `table` > go to the `Details` tab > the `Table ID` field
198
+ :param _builtins.str object_type: The type of the monitored object. Can be one of the following: `schema` or `table`
199
+ """
200
+ __args__ = dict()
201
+ __args__['objectId'] = object_id
202
+ __args__['objectType'] = object_type
203
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
204
+ __ret__ = pulumi.runtime.invoke_output('databricks:index/getDataQualityMonitor:getDataQualityMonitor', __args__, opts=opts, typ=GetDataQualityMonitorResult)
205
+ return __ret__.apply(lambda __response__: GetDataQualityMonitorResult(
206
+ anomaly_detection_config=pulumi.get(__response__, 'anomaly_detection_config'),
207
+ data_profiling_config=pulumi.get(__response__, 'data_profiling_config'),
208
+ id=pulumi.get(__response__, 'id'),
209
+ object_id=pulumi.get(__response__, 'object_id'),
210
+ object_type=pulumi.get(__response__, 'object_type')))
@@ -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')))