pulumi-databricks 1.77.0a1761975834__py3-none-any.whl → 1.79.0a1762839813__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_databricks/__init__.py +54 -46
- pulumi_databricks/_inputs.py +26079 -32918
- pulumi_databricks/account_federation_policy.py +44 -16
- pulumi_databricks/account_network_policy.py +56 -2
- pulumi_databricks/account_setting_v2.py +46 -83
- pulumi_databricks/alert_v2.py +168 -134
- pulumi_databricks/app.py +153 -0
- pulumi_databricks/apps_settings_custom_template.py +75 -52
- pulumi_databricks/budget_policy.py +6 -2
- pulumi_databricks/catalog.py +65 -23
- pulumi_databricks/cluster.py +47 -168
- pulumi_databricks/cluster_policy.py +120 -0
- pulumi_databricks/config/__init__.pyi +4 -0
- pulumi_databricks/config/vars.py +8 -0
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +9 -52
- pulumi_databricks/database_instance.py +271 -120
- pulumi_databricks/database_synced_database_table.py +239 -52
- pulumi_databricks/entitlements.py +21 -21
- pulumi_databricks/entity_tag_assignment.py +83 -52
- pulumi_databricks/external_location.py +131 -7
- pulumi_databricks/external_metadata.py +16 -59
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/file.py +2 -2
- pulumi_databricks/get_account_federation_policies.py +22 -3
- pulumi_databricks/get_account_federation_policy.py +12 -27
- pulumi_databricks/get_account_network_policies.py +4 -0
- pulumi_databricks/get_account_network_policy.py +9 -18
- pulumi_databricks/get_account_setting_v2.py +36 -141
- pulumi_databricks/get_alert_v2.py +41 -107
- pulumi_databricks/get_alerts_v2.py +29 -31
- pulumi_databricks/get_app.py +21 -5
- pulumi_databricks/get_apps.py +22 -6
- pulumi_databricks/get_apps_settings_custom_template.py +11 -55
- pulumi_databricks/get_apps_settings_custom_templates.py +25 -21
- pulumi_databricks/get_aws_assume_role_policy.py +14 -14
- pulumi_databricks/get_aws_bucket_policy.py +10 -10
- pulumi_databricks/get_aws_unity_catalog_assume_role_policy.py +10 -10
- pulumi_databricks/get_aws_unity_catalog_policy.py +10 -10
- pulumi_databricks/get_budget_policies.py +70 -6
- pulumi_databricks/get_budget_policy.py +9 -32
- pulumi_databricks/get_catalog.py +21 -4
- pulumi_databricks/get_catalogs.py +23 -4
- pulumi_databricks/get_cluster.py +75 -4
- pulumi_databricks/get_cluster_policy.py +23 -4
- pulumi_databricks/get_clusters.py +21 -4
- pulumi_databricks/get_current_config.py +4 -4
- pulumi_databricks/get_current_metastore.py +21 -4
- pulumi_databricks/get_dashboards.py +20 -4
- pulumi_databricks/get_data_quality_monitor.py +210 -0
- pulumi_databricks/get_data_quality_monitors.py +143 -0
- pulumi_databricks/get_data_quality_refresh.py +270 -0
- pulumi_databricks/get_data_quality_refreshes.py +207 -0
- pulumi_databricks/get_database_database_catalog.py +10 -41
- pulumi_databricks/get_database_database_catalogs.py +37 -18
- pulumi_databricks/get_database_instance.py +93 -99
- pulumi_databricks/get_database_instances.py +20 -16
- pulumi_databricks/get_database_synced_database_table.py +11 -49
- pulumi_databricks/get_database_synced_database_tables.py +42 -23
- pulumi_databricks/get_directory.py +20 -1
- pulumi_databricks/get_entity_tag_assignment.py +63 -30
- pulumi_databricks/get_entity_tag_assignments.py +69 -23
- pulumi_databricks/get_external_location.py +21 -4
- pulumi_databricks/get_external_locations.py +23 -4
- pulumi_databricks/get_external_metadata.py +18 -73
- pulumi_databricks/get_external_metadatas.py +22 -16
- pulumi_databricks/get_feature_engineering_feature.py +179 -0
- pulumi_databricks/get_feature_engineering_features.py +103 -0
- pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
- pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
- pulumi_databricks/get_functions.py +16 -1
- pulumi_databricks/get_instance_profiles.py +21 -4
- pulumi_databricks/get_jobs.py +23 -4
- pulumi_databricks/get_materialized_features_feature_tag.py +7 -32
- pulumi_databricks/get_materialized_features_feature_tags.py +50 -18
- pulumi_databricks/get_metastore.py +6 -6
- pulumi_databricks/get_mlflow_experiment.py +18 -1
- pulumi_databricks/get_mlflow_model.py +18 -1
- pulumi_databricks/get_mlflow_models.py +23 -4
- pulumi_databricks/get_node_type.py +42 -5
- pulumi_databricks/get_notebook.py +20 -1
- pulumi_databricks/get_notification_destinations.py +17 -1
- pulumi_databricks/get_online_store.py +11 -38
- pulumi_databricks/get_online_stores.py +20 -18
- pulumi_databricks/get_pipelines.py +23 -4
- pulumi_databricks/get_policy_info.py +21 -109
- pulumi_databricks/get_policy_infos.py +50 -25
- pulumi_databricks/get_quality_monitor_v2.py +8 -21
- pulumi_databricks/get_quality_monitors_v2.py +23 -25
- pulumi_databricks/get_registered_model.py +19 -4
- pulumi_databricks/get_registered_model_versions.py +19 -4
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +18 -1
- pulumi_databricks/get_schemas.py +23 -4
- pulumi_databricks/get_service_principal_federation_policies.py +23 -4
- pulumi_databricks/get_service_principal_federation_policy.py +15 -24
- pulumi_databricks/get_service_principals.py +64 -0
- pulumi_databricks/get_serving_endpoints.py +19 -4
- pulumi_databricks/get_share.py +117 -18
- pulumi_databricks/get_shares.py +22 -3
- pulumi_databricks/get_spark_version.py +20 -1
- pulumi_databricks/get_sql_warehouse.py +16 -1
- pulumi_databricks/get_sql_warehouses.py +20 -1
- pulumi_databricks/get_storage_credential.py +18 -1
- pulumi_databricks/get_storage_credentials.py +23 -4
- pulumi_databricks/get_table.py +18 -1
- pulumi_databricks/get_tables.py +20 -1
- pulumi_databricks/get_tag_policies.py +55 -23
- pulumi_databricks/get_tag_policy.py +60 -40
- pulumi_databricks/get_views.py +20 -1
- pulumi_databricks/get_volume.py +18 -1
- pulumi_databricks/get_volumes.py +20 -1
- pulumi_databricks/get_workspace_network_option.py +8 -16
- pulumi_databricks/get_workspace_setting_v2.py +41 -163
- pulumi_databricks/get_zones.py +20 -1
- pulumi_databricks/git_credential.py +54 -7
- pulumi_databricks/group.py +21 -21
- pulumi_databricks/instance_profile.py +0 -182
- pulumi_databricks/job.py +47 -0
- pulumi_databricks/library.py +165 -0
- pulumi_databricks/materialized_features_feature_tag.py +9 -52
- pulumi_databricks/metastore.py +81 -7
- pulumi_databricks/metastore_data_access.py +48 -0
- pulumi_databricks/mlflow_webhook.py +4 -4
- pulumi_databricks/mws_credentials.py +10 -10
- pulumi_databricks/mws_customer_managed_keys.py +0 -288
- pulumi_databricks/mws_log_delivery.py +146 -0
- pulumi_databricks/mws_storage_configurations.py +16 -16
- pulumi_databricks/mws_vpc_endpoint.py +56 -56
- pulumi_databricks/mws_workspaces.py +146 -65
- pulumi_databricks/notebook.py +49 -0
- pulumi_databricks/online_store.py +9 -52
- pulumi_databricks/outputs.py +11885 -13474
- pulumi_databricks/permission_assignment.py +299 -8
- pulumi_databricks/permissions.py +6 -6
- pulumi_databricks/pipeline.py +37 -3
- pulumi_databricks/policy_info.py +9 -52
- pulumi_databricks/provider.py +36 -1
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +47 -0
- pulumi_databricks/quality_monitor_v2.py +9 -52
- pulumi_databricks/recipient.py +74 -0
- pulumi_databricks/registered_model.py +308 -36
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/schema.py +7 -7
- pulumi_databricks/service_principal_federation_policy.py +48 -16
- pulumi_databricks/share.py +71 -84
- pulumi_databricks/sql_table.py +42 -14
- pulumi_databricks/storage_credential.py +15 -2
- pulumi_databricks/tag_policy.py +111 -54
- pulumi_databricks/user.py +21 -21
- pulumi_databricks/volume.py +7 -7
- pulumi_databricks/workspace_binding.py +0 -48
- pulumi_databricks/workspace_network_option.py +6 -2
- pulumi_databricks/workspace_setting_v2.py +49 -133
- {pulumi_databricks-1.77.0a1761975834.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/METADATA +1 -1
- pulumi_databricks-1.79.0a1762839813.dist-info/RECORD +250 -0
- pulumi_databricks/clean_room_asset.py +0 -938
- pulumi_databricks/clean_room_auto_approval_rule.py +0 -473
- pulumi_databricks/clean_rooms_clean_room.py +0 -569
- pulumi_databricks/get_clean_room_asset.py +0 -416
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_asset.py +0 -392
- pulumi_databricks/get_clean_room_asset_revisions_clean_room_assets.py +0 -121
- pulumi_databricks/get_clean_room_assets.py +0 -146
- pulumi_databricks/get_clean_room_auto_approval_rule.py +0 -217
- pulumi_databricks/get_clean_room_auto_approval_rules.py +0 -101
- pulumi_databricks/get_clean_rooms_clean_room.py +0 -289
- pulumi_databricks/get_clean_rooms_clean_rooms.py +0 -125
- pulumi_databricks/get_recipient_federation_policies.py +0 -101
- pulumi_databricks/get_recipient_federation_policy.py +0 -182
- pulumi_databricks/recipient_federation_policy.py +0 -393
- pulumi_databricks-1.77.0a1761975834.dist-info/RECORD +0 -250
- {pulumi_databricks-1.77.0a1761975834.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.77.0a1761975834.dist-info → pulumi_databricks-1.79.0a1762839813.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@ class GetClustersResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getClusters.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, cluster_name_contains=None, filter_by=None, id=None, ids=None):
|
|
31
|
+
def __init__(__self__, cluster_name_contains=None, filter_by=None, id=None, ids=None, provider_config=None):
|
|
32
32
|
if cluster_name_contains and not isinstance(cluster_name_contains, str):
|
|
33
33
|
raise TypeError("Expected argument 'cluster_name_contains' to be a str")
|
|
34
34
|
pulumi.set(__self__, "cluster_name_contains", cluster_name_contains)
|
|
@@ -41,6 +41,9 @@ class GetClustersResult:
|
|
|
41
41
|
if ids and not isinstance(ids, list):
|
|
42
42
|
raise TypeError("Expected argument 'ids' to be a list")
|
|
43
43
|
pulumi.set(__self__, "ids", ids)
|
|
44
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
45
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
46
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
44
47
|
|
|
45
48
|
@_builtins.property
|
|
46
49
|
@pulumi.getter(name="clusterNameContains")
|
|
@@ -65,6 +68,11 @@ class GetClustersResult:
|
|
|
65
68
|
"""
|
|
66
69
|
return pulumi.get(self, "ids")
|
|
67
70
|
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter(name="providerConfig")
|
|
73
|
+
def provider_config(self) -> Optional['outputs.GetClustersProviderConfigResult']:
|
|
74
|
+
return pulumi.get(self, "provider_config")
|
|
75
|
+
|
|
68
76
|
|
|
69
77
|
class AwaitableGetClustersResult(GetClustersResult):
|
|
70
78
|
# pylint: disable=using-constant-test
|
|
@@ -75,13 +83,15 @@ class AwaitableGetClustersResult(GetClustersResult):
|
|
|
75
83
|
cluster_name_contains=self.cluster_name_contains,
|
|
76
84
|
filter_by=self.filter_by,
|
|
77
85
|
id=self.id,
|
|
78
|
-
ids=self.ids
|
|
86
|
+
ids=self.ids,
|
|
87
|
+
provider_config=self.provider_config)
|
|
79
88
|
|
|
80
89
|
|
|
81
90
|
def get_clusters(cluster_name_contains: Optional[_builtins.str] = None,
|
|
82
91
|
filter_by: Optional[Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict']] = None,
|
|
83
92
|
id: Optional[_builtins.str] = None,
|
|
84
93
|
ids: Optional[Sequence[_builtins.str]] = None,
|
|
94
|
+
provider_config: Optional[Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict']] = None,
|
|
85
95
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClustersResult:
|
|
86
96
|
"""
|
|
87
97
|
Retrieves a list of Cluster ids, that were created by Pulumi or manually, with or without databricks_cluster_policy.
|
|
@@ -146,12 +156,14 @@ def get_clusters(cluster_name_contains: Optional[_builtins.str] = None,
|
|
|
146
156
|
:param _builtins.str cluster_name_contains: Only return Cluster ids that match the given name string.
|
|
147
157
|
:param Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict'] filter_by: Filters to apply to the listed clusters. See filter_by Configuration Block below for details.
|
|
148
158
|
:param Sequence[_builtins.str] ids: list of Cluster ids
|
|
159
|
+
:param Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
149
160
|
"""
|
|
150
161
|
__args__ = dict()
|
|
151
162
|
__args__['clusterNameContains'] = cluster_name_contains
|
|
152
163
|
__args__['filterBy'] = filter_by
|
|
153
164
|
__args__['id'] = id
|
|
154
165
|
__args__['ids'] = ids
|
|
166
|
+
__args__['providerConfig'] = provider_config
|
|
155
167
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
156
168
|
__ret__ = pulumi.runtime.invoke('databricks:index/getClusters:getClusters', __args__, opts=opts, typ=GetClustersResult).value
|
|
157
169
|
|
|
@@ -159,11 +171,13 @@ def get_clusters(cluster_name_contains: Optional[_builtins.str] = None,
|
|
|
159
171
|
cluster_name_contains=pulumi.get(__ret__, 'cluster_name_contains'),
|
|
160
172
|
filter_by=pulumi.get(__ret__, 'filter_by'),
|
|
161
173
|
id=pulumi.get(__ret__, 'id'),
|
|
162
|
-
ids=pulumi.get(__ret__, 'ids')
|
|
174
|
+
ids=pulumi.get(__ret__, 'ids'),
|
|
175
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
163
176
|
def get_clusters_output(cluster_name_contains: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
164
177
|
filter_by: Optional[pulumi.Input[Optional[Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict']]]] = None,
|
|
165
178
|
id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
166
179
|
ids: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
180
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict']]]] = None,
|
|
167
181
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClustersResult]:
|
|
168
182
|
"""
|
|
169
183
|
Retrieves a list of Cluster ids, that were created by Pulumi or manually, with or without databricks_cluster_policy.
|
|
@@ -228,16 +242,19 @@ def get_clusters_output(cluster_name_contains: Optional[pulumi.Input[Optional[_b
|
|
|
228
242
|
:param _builtins.str cluster_name_contains: Only return Cluster ids that match the given name string.
|
|
229
243
|
:param Union['GetClustersFilterByArgs', 'GetClustersFilterByArgsDict'] filter_by: Filters to apply to the listed clusters. See filter_by Configuration Block below for details.
|
|
230
244
|
:param Sequence[_builtins.str] ids: list of Cluster ids
|
|
245
|
+
:param Union['GetClustersProviderConfigArgs', 'GetClustersProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
231
246
|
"""
|
|
232
247
|
__args__ = dict()
|
|
233
248
|
__args__['clusterNameContains'] = cluster_name_contains
|
|
234
249
|
__args__['filterBy'] = filter_by
|
|
235
250
|
__args__['id'] = id
|
|
236
251
|
__args__['ids'] = ids
|
|
252
|
+
__args__['providerConfig'] = provider_config
|
|
237
253
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
238
254
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getClusters:getClusters', __args__, opts=opts, typ=GetClustersResult)
|
|
239
255
|
return __ret__.apply(lambda __response__: GetClustersResult(
|
|
240
256
|
cluster_name_contains=pulumi.get(__response__, 'cluster_name_contains'),
|
|
241
257
|
filter_by=pulumi.get(__response__, 'filter_by'),
|
|
242
258
|
id=pulumi.get(__response__, 'id'),
|
|
243
|
-
ids=pulumi.get(__response__, 'ids')
|
|
259
|
+
ids=pulumi.get(__response__, 'ids'),
|
|
260
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
|
@@ -130,10 +130,10 @@ def get_current_config(account_id: Optional[_builtins.str] = None,
|
|
|
130
130
|
"azure": True,
|
|
131
131
|
}].apply(lambda entries: [{
|
|
132
132
|
"accessConnectorId": cloud_credential_id,
|
|
133
|
-
} for
|
|
133
|
+
} for entry2 in entries])),
|
|
134
134
|
databricks_gcp_service_account=single_or_none([{"key": k, "value": v} for k, v in {} if this.cloud_type == "gcp" else {
|
|
135
135
|
"gcp": True,
|
|
136
|
-
}].apply(lambda entries: [{} for
|
|
136
|
+
}].apply(lambda entries: [{} for entry3 in entries])),
|
|
137
137
|
name="storage_cred",
|
|
138
138
|
comment="Managed by TF")
|
|
139
139
|
```
|
|
@@ -209,10 +209,10 @@ def get_current_config_output(account_id: Optional[pulumi.Input[Optional[_builti
|
|
|
209
209
|
"azure": True,
|
|
210
210
|
}].apply(lambda entries: [{
|
|
211
211
|
"accessConnectorId": cloud_credential_id,
|
|
212
|
-
} for
|
|
212
|
+
} for entry2 in entries])),
|
|
213
213
|
databricks_gcp_service_account=single_or_none([{"key": k, "value": v} for k, v in {} if this.cloud_type == "gcp" else {
|
|
214
214
|
"gcp": True,
|
|
215
|
-
}].apply(lambda entries: [{} for
|
|
215
|
+
}].apply(lambda entries: [{} for entry3 in entries])),
|
|
216
216
|
name="storage_cred",
|
|
217
217
|
comment="Managed by TF")
|
|
218
218
|
```
|
|
@@ -28,13 +28,16 @@ class GetCurrentMetastoreResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getCurrentMetastore.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, id=None, metastore_info=None):
|
|
31
|
+
def __init__(__self__, id=None, metastore_info=None, provider_config=None):
|
|
32
32
|
if id and not isinstance(id, str):
|
|
33
33
|
raise TypeError("Expected argument 'id' to be a str")
|
|
34
34
|
pulumi.set(__self__, "id", id)
|
|
35
35
|
if metastore_info and not isinstance(metastore_info, dict):
|
|
36
36
|
raise TypeError("Expected argument 'metastore_info' to be a dict")
|
|
37
37
|
pulumi.set(__self__, "metastore_info", metastore_info)
|
|
38
|
+
if provider_config and not isinstance(provider_config, dict):
|
|
39
|
+
raise TypeError("Expected argument 'provider_config' to be a dict")
|
|
40
|
+
pulumi.set(__self__, "provider_config", provider_config)
|
|
38
41
|
|
|
39
42
|
@_builtins.property
|
|
40
43
|
@pulumi.getter
|
|
@@ -52,6 +55,11 @@ class GetCurrentMetastoreResult:
|
|
|
52
55
|
"""
|
|
53
56
|
return pulumi.get(self, "metastore_info")
|
|
54
57
|
|
|
58
|
+
@_builtins.property
|
|
59
|
+
@pulumi.getter(name="providerConfig")
|
|
60
|
+
def provider_config(self) -> Optional['outputs.GetCurrentMetastoreProviderConfigResult']:
|
|
61
|
+
return pulumi.get(self, "provider_config")
|
|
62
|
+
|
|
55
63
|
|
|
56
64
|
class AwaitableGetCurrentMetastoreResult(GetCurrentMetastoreResult):
|
|
57
65
|
# pylint: disable=using-constant-test
|
|
@@ -60,11 +68,13 @@ class AwaitableGetCurrentMetastoreResult(GetCurrentMetastoreResult):
|
|
|
60
68
|
yield self
|
|
61
69
|
return GetCurrentMetastoreResult(
|
|
62
70
|
id=self.id,
|
|
63
|
-
metastore_info=self.metastore_info
|
|
71
|
+
metastore_info=self.metastore_info,
|
|
72
|
+
provider_config=self.provider_config)
|
|
64
73
|
|
|
65
74
|
|
|
66
75
|
def get_current_metastore(id: Optional[_builtins.str] = None,
|
|
67
76
|
metastore_info: Optional[Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict']] = None,
|
|
77
|
+
provider_config: Optional[Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict']] = None,
|
|
68
78
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCurrentMetastoreResult:
|
|
69
79
|
"""
|
|
70
80
|
Retrieves information about metastore attached to a given workspace.
|
|
@@ -95,18 +105,22 @@ def get_current_metastore(id: Optional[_builtins.str] = None,
|
|
|
95
105
|
|
|
96
106
|
:param _builtins.str id: metastore ID. Will be `no_metastore` if there is no metastore assigned for the current workspace
|
|
97
107
|
:param Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict'] metastore_info: summary about a metastore attached to the current workspace returned by [Get a metastore summary API](https://docs.databricks.com/api/workspace/metastores/summary). This contains the following attributes (check the API page for up-to-date details):
|
|
108
|
+
:param Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
98
109
|
"""
|
|
99
110
|
__args__ = dict()
|
|
100
111
|
__args__['id'] = id
|
|
101
112
|
__args__['metastoreInfo'] = metastore_info
|
|
113
|
+
__args__['providerConfig'] = provider_config
|
|
102
114
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
103
115
|
__ret__ = pulumi.runtime.invoke('databricks:index/getCurrentMetastore:getCurrentMetastore', __args__, opts=opts, typ=GetCurrentMetastoreResult).value
|
|
104
116
|
|
|
105
117
|
return AwaitableGetCurrentMetastoreResult(
|
|
106
118
|
id=pulumi.get(__ret__, 'id'),
|
|
107
|
-
metastore_info=pulumi.get(__ret__, 'metastore_info')
|
|
119
|
+
metastore_info=pulumi.get(__ret__, 'metastore_info'),
|
|
120
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
108
121
|
def get_current_metastore_output(id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
109
122
|
metastore_info: Optional[pulumi.Input[Optional[Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict']]]] = None,
|
|
123
|
+
provider_config: Optional[pulumi.Input[Optional[Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict']]]] = None,
|
|
110
124
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCurrentMetastoreResult]:
|
|
111
125
|
"""
|
|
112
126
|
Retrieves information about metastore attached to a given workspace.
|
|
@@ -137,12 +151,15 @@ def get_current_metastore_output(id: Optional[pulumi.Input[Optional[_builtins.st
|
|
|
137
151
|
|
|
138
152
|
:param _builtins.str id: metastore ID. Will be `no_metastore` if there is no metastore assigned for the current workspace
|
|
139
153
|
:param Union['GetCurrentMetastoreMetastoreInfoArgs', 'GetCurrentMetastoreMetastoreInfoArgsDict'] metastore_info: summary about a metastore attached to the current workspace returned by [Get a metastore summary API](https://docs.databricks.com/api/workspace/metastores/summary). This contains the following attributes (check the API page for up-to-date details):
|
|
154
|
+
:param Union['GetCurrentMetastoreProviderConfigArgs', 'GetCurrentMetastoreProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider. This block consists of the following fields:
|
|
140
155
|
"""
|
|
141
156
|
__args__ = dict()
|
|
142
157
|
__args__['id'] = id
|
|
143
158
|
__args__['metastoreInfo'] = metastore_info
|
|
159
|
+
__args__['providerConfig'] = provider_config
|
|
144
160
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
145
161
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getCurrentMetastore:getCurrentMetastore', __args__, opts=opts, typ=GetCurrentMetastoreResult)
|
|
146
162
|
return __ret__.apply(lambda __response__: GetCurrentMetastoreResult(
|
|
147
163
|
id=pulumi.get(__response__, 'id'),
|
|
148
|
-
metastore_info=pulumi.get(__response__, 'metastore_info')
|
|
164
|
+
metastore_info=pulumi.get(__response__, 'metastore_info'),
|
|
165
|
+
provider_config=pulumi.get(__response__, 'provider_config')))
|
|
@@ -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,10 +77,12 @@ 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).
|
|
@@ -85,14 +96,17 @@ def get_dashboards(dashboard_name_contains: Optional[_builtins.str] = None,
|
|
|
85
96
|
"""
|
|
86
97
|
__args__ = dict()
|
|
87
98
|
__args__['dashboardNameContains'] = dashboard_name_contains
|
|
99
|
+
__args__['providerConfig'] = provider_config
|
|
88
100
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
89
101
|
__ret__ = pulumi.runtime.invoke('databricks:index/getDashboards:getDashboards', __args__, opts=opts, typ=GetDashboardsResult).value
|
|
90
102
|
|
|
91
103
|
return AwaitableGetDashboardsResult(
|
|
92
104
|
dashboard_name_contains=pulumi.get(__ret__, 'dashboard_name_contains'),
|
|
93
105
|
dashboards=pulumi.get(__ret__, 'dashboards'),
|
|
94
|
-
id=pulumi.get(__ret__, 'id')
|
|
106
|
+
id=pulumi.get(__ret__, 'id'),
|
|
107
|
+
provider_config=pulumi.get(__ret__, 'provider_config'))
|
|
95
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,
|
|
96
110
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDashboardsResult]:
|
|
97
111
|
"""
|
|
98
112
|
This data source allows you to retrieve information about Databricks [Dashboards](https://docs.databricks.com/en/dashboards/index.html).
|
|
@@ -106,9 +120,11 @@ def get_dashboards_output(dashboard_name_contains: Optional[pulumi.Input[Optiona
|
|
|
106
120
|
"""
|
|
107
121
|
__args__ = dict()
|
|
108
122
|
__args__['dashboardNameContains'] = dashboard_name_contains
|
|
123
|
+
__args__['providerConfig'] = provider_config
|
|
109
124
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
110
125
|
__ret__ = pulumi.runtime.invoke_output('databricks:index/getDashboards:getDashboards', __args__, opts=opts, typ=GetDashboardsResult)
|
|
111
126
|
return __ret__.apply(lambda __response__: GetDashboardsResult(
|
|
112
127
|
dashboard_name_contains=pulumi.get(__response__, 'dashboard_name_contains'),
|
|
113
128
|
dashboards=pulumi.get(__response__, 'dashboards'),
|
|
114
|
-
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
|
+
[](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
|
+
[](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
|
+
[](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
|
+
[](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')))
|