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
pulumi_databricks/alert_v2.py
CHANGED
|
@@ -21,24 +21,24 @@ __all__ = ['AlertV2Args', 'AlertV2']
|
|
|
21
21
|
@pulumi.input_type
|
|
22
22
|
class AlertV2Args:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
|
+
display_name: pulumi.Input[_builtins.str],
|
|
25
|
+
evaluation: pulumi.Input['AlertV2EvaluationArgs'],
|
|
26
|
+
query_text: pulumi.Input[_builtins.str],
|
|
27
|
+
schedule: pulumi.Input['AlertV2ScheduleArgs'],
|
|
28
|
+
warehouse_id: pulumi.Input[_builtins.str],
|
|
24
29
|
custom_description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
30
|
custom_summary: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
-
display_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
-
evaluation: Optional[pulumi.Input['AlertV2EvaluationArgs']] = None,
|
|
28
31
|
parent_path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
-
query_text: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
32
|
run_as: Optional[pulumi.Input['AlertV2RunAsArgs']] = None,
|
|
31
|
-
run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None
|
|
32
|
-
schedule: Optional[pulumi.Input['AlertV2ScheduleArgs']] = None,
|
|
33
|
-
warehouse_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
-
workspace_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
33
|
+
run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
35
34
|
"""
|
|
36
35
|
The set of arguments for constructing a AlertV2 resource.
|
|
36
|
+
:param pulumi.Input[_builtins.str] display_name: The display name of the alert
|
|
37
|
+
:param pulumi.Input[_builtins.str] query_text: Text of the query to be run
|
|
38
|
+
:param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
|
|
37
39
|
:param pulumi.Input[_builtins.str] custom_description: Custom description for the alert. support mustache template
|
|
38
40
|
:param pulumi.Input[_builtins.str] custom_summary: Custom summary for the alert. support mustache template
|
|
39
|
-
:param pulumi.Input[_builtins.str] display_name: The display name of the alert
|
|
40
41
|
:param pulumi.Input[_builtins.str] parent_path: The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated
|
|
41
|
-
:param pulumi.Input[_builtins.str] query_text: Text of the query to be run
|
|
42
42
|
:param pulumi.Input['AlertV2RunAsArgs'] run_as: Specifies the identity that will be used to run the alert.
|
|
43
43
|
This field allows you to configure alerts to run as a specific user or service principal.
|
|
44
44
|
- For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
|
|
@@ -47,31 +47,76 @@ class AlertV2Args:
|
|
|
47
47
|
:param pulumi.Input[_builtins.str] run_as_user_name: The run as username or application ID of service principal.
|
|
48
48
|
On Create and Update, this field can be set to application ID of an active service principal. Setting this field requires the servicePrincipal/user role.
|
|
49
49
|
Deprecated: Use `run_as` field instead. This field will be removed in a future release
|
|
50
|
-
:param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
|
|
51
|
-
:param pulumi.Input[_builtins.str] workspace_id: Workspace ID of the resource
|
|
52
50
|
"""
|
|
51
|
+
pulumi.set(__self__, "display_name", display_name)
|
|
52
|
+
pulumi.set(__self__, "evaluation", evaluation)
|
|
53
|
+
pulumi.set(__self__, "query_text", query_text)
|
|
54
|
+
pulumi.set(__self__, "schedule", schedule)
|
|
55
|
+
pulumi.set(__self__, "warehouse_id", warehouse_id)
|
|
53
56
|
if custom_description is not None:
|
|
54
57
|
pulumi.set(__self__, "custom_description", custom_description)
|
|
55
58
|
if custom_summary is not None:
|
|
56
59
|
pulumi.set(__self__, "custom_summary", custom_summary)
|
|
57
|
-
if display_name is not None:
|
|
58
|
-
pulumi.set(__self__, "display_name", display_name)
|
|
59
|
-
if evaluation is not None:
|
|
60
|
-
pulumi.set(__self__, "evaluation", evaluation)
|
|
61
60
|
if parent_path is not None:
|
|
62
61
|
pulumi.set(__self__, "parent_path", parent_path)
|
|
63
|
-
if query_text is not None:
|
|
64
|
-
pulumi.set(__self__, "query_text", query_text)
|
|
65
62
|
if run_as is not None:
|
|
66
63
|
pulumi.set(__self__, "run_as", run_as)
|
|
67
64
|
if run_as_user_name is not None:
|
|
68
65
|
pulumi.set(__self__, "run_as_user_name", run_as_user_name)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
|
|
67
|
+
@_builtins.property
|
|
68
|
+
@pulumi.getter(name="displayName")
|
|
69
|
+
def display_name(self) -> pulumi.Input[_builtins.str]:
|
|
70
|
+
"""
|
|
71
|
+
The display name of the alert
|
|
72
|
+
"""
|
|
73
|
+
return pulumi.get(self, "display_name")
|
|
74
|
+
|
|
75
|
+
@display_name.setter
|
|
76
|
+
def display_name(self, value: pulumi.Input[_builtins.str]):
|
|
77
|
+
pulumi.set(self, "display_name", value)
|
|
78
|
+
|
|
79
|
+
@_builtins.property
|
|
80
|
+
@pulumi.getter
|
|
81
|
+
def evaluation(self) -> pulumi.Input['AlertV2EvaluationArgs']:
|
|
82
|
+
return pulumi.get(self, "evaluation")
|
|
83
|
+
|
|
84
|
+
@evaluation.setter
|
|
85
|
+
def evaluation(self, value: pulumi.Input['AlertV2EvaluationArgs']):
|
|
86
|
+
pulumi.set(self, "evaluation", value)
|
|
87
|
+
|
|
88
|
+
@_builtins.property
|
|
89
|
+
@pulumi.getter(name="queryText")
|
|
90
|
+
def query_text(self) -> pulumi.Input[_builtins.str]:
|
|
91
|
+
"""
|
|
92
|
+
Text of the query to be run
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "query_text")
|
|
95
|
+
|
|
96
|
+
@query_text.setter
|
|
97
|
+
def query_text(self, value: pulumi.Input[_builtins.str]):
|
|
98
|
+
pulumi.set(self, "query_text", value)
|
|
99
|
+
|
|
100
|
+
@_builtins.property
|
|
101
|
+
@pulumi.getter
|
|
102
|
+
def schedule(self) -> pulumi.Input['AlertV2ScheduleArgs']:
|
|
103
|
+
return pulumi.get(self, "schedule")
|
|
104
|
+
|
|
105
|
+
@schedule.setter
|
|
106
|
+
def schedule(self, value: pulumi.Input['AlertV2ScheduleArgs']):
|
|
107
|
+
pulumi.set(self, "schedule", value)
|
|
108
|
+
|
|
109
|
+
@_builtins.property
|
|
110
|
+
@pulumi.getter(name="warehouseId")
|
|
111
|
+
def warehouse_id(self) -> pulumi.Input[_builtins.str]:
|
|
112
|
+
"""
|
|
113
|
+
ID of the SQL warehouse attached to the alert
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "warehouse_id")
|
|
116
|
+
|
|
117
|
+
@warehouse_id.setter
|
|
118
|
+
def warehouse_id(self, value: pulumi.Input[_builtins.str]):
|
|
119
|
+
pulumi.set(self, "warehouse_id", value)
|
|
75
120
|
|
|
76
121
|
@_builtins.property
|
|
77
122
|
@pulumi.getter(name="customDescription")
|
|
@@ -97,27 +142,6 @@ class AlertV2Args:
|
|
|
97
142
|
def custom_summary(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
98
143
|
pulumi.set(self, "custom_summary", value)
|
|
99
144
|
|
|
100
|
-
@_builtins.property
|
|
101
|
-
@pulumi.getter(name="displayName")
|
|
102
|
-
def display_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
103
|
-
"""
|
|
104
|
-
The display name of the alert
|
|
105
|
-
"""
|
|
106
|
-
return pulumi.get(self, "display_name")
|
|
107
|
-
|
|
108
|
-
@display_name.setter
|
|
109
|
-
def display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
110
|
-
pulumi.set(self, "display_name", value)
|
|
111
|
-
|
|
112
|
-
@_builtins.property
|
|
113
|
-
@pulumi.getter
|
|
114
|
-
def evaluation(self) -> Optional[pulumi.Input['AlertV2EvaluationArgs']]:
|
|
115
|
-
return pulumi.get(self, "evaluation")
|
|
116
|
-
|
|
117
|
-
@evaluation.setter
|
|
118
|
-
def evaluation(self, value: Optional[pulumi.Input['AlertV2EvaluationArgs']]):
|
|
119
|
-
pulumi.set(self, "evaluation", value)
|
|
120
|
-
|
|
121
145
|
@_builtins.property
|
|
122
146
|
@pulumi.getter(name="parentPath")
|
|
123
147
|
def parent_path(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -130,18 +154,6 @@ class AlertV2Args:
|
|
|
130
154
|
def parent_path(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
131
155
|
pulumi.set(self, "parent_path", value)
|
|
132
156
|
|
|
133
|
-
@_builtins.property
|
|
134
|
-
@pulumi.getter(name="queryText")
|
|
135
|
-
def query_text(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
136
|
-
"""
|
|
137
|
-
Text of the query to be run
|
|
138
|
-
"""
|
|
139
|
-
return pulumi.get(self, "query_text")
|
|
140
|
-
|
|
141
|
-
@query_text.setter
|
|
142
|
-
def query_text(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
143
|
-
pulumi.set(self, "query_text", value)
|
|
144
|
-
|
|
145
157
|
@_builtins.property
|
|
146
158
|
@pulumi.getter(name="runAs")
|
|
147
159
|
def run_as(self) -> Optional[pulumi.Input['AlertV2RunAsArgs']]:
|
|
@@ -172,39 +184,6 @@ class AlertV2Args:
|
|
|
172
184
|
def run_as_user_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
173
185
|
pulumi.set(self, "run_as_user_name", value)
|
|
174
186
|
|
|
175
|
-
@_builtins.property
|
|
176
|
-
@pulumi.getter
|
|
177
|
-
def schedule(self) -> Optional[pulumi.Input['AlertV2ScheduleArgs']]:
|
|
178
|
-
return pulumi.get(self, "schedule")
|
|
179
|
-
|
|
180
|
-
@schedule.setter
|
|
181
|
-
def schedule(self, value: Optional[pulumi.Input['AlertV2ScheduleArgs']]):
|
|
182
|
-
pulumi.set(self, "schedule", value)
|
|
183
|
-
|
|
184
|
-
@_builtins.property
|
|
185
|
-
@pulumi.getter(name="warehouseId")
|
|
186
|
-
def warehouse_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
187
|
-
"""
|
|
188
|
-
ID of the SQL warehouse attached to the alert
|
|
189
|
-
"""
|
|
190
|
-
return pulumi.get(self, "warehouse_id")
|
|
191
|
-
|
|
192
|
-
@warehouse_id.setter
|
|
193
|
-
def warehouse_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
194
|
-
pulumi.set(self, "warehouse_id", value)
|
|
195
|
-
|
|
196
|
-
@_builtins.property
|
|
197
|
-
@pulumi.getter(name="workspaceId")
|
|
198
|
-
def workspace_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
199
|
-
"""
|
|
200
|
-
Workspace ID of the resource
|
|
201
|
-
"""
|
|
202
|
-
return pulumi.get(self, "workspace_id")
|
|
203
|
-
|
|
204
|
-
@workspace_id.setter
|
|
205
|
-
def workspace_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
206
|
-
pulumi.set(self, "workspace_id", value)
|
|
207
|
-
|
|
208
187
|
|
|
209
188
|
@pulumi.input_type
|
|
210
189
|
class _AlertV2State:
|
|
@@ -223,8 +202,7 @@ class _AlertV2State:
|
|
|
223
202
|
run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
224
203
|
schedule: Optional[pulumi.Input['AlertV2ScheduleArgs']] = None,
|
|
225
204
|
update_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
226
|
-
warehouse_id: Optional[pulumi.Input[_builtins.str]] = None
|
|
227
|
-
workspace_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
205
|
+
warehouse_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
228
206
|
"""
|
|
229
207
|
Input properties used for looking up and filtering AlertV2 resources.
|
|
230
208
|
:param pulumi.Input[_builtins.str] create_time: (string) - The timestamp indicating when the alert was created
|
|
@@ -234,7 +212,7 @@ class _AlertV2State:
|
|
|
234
212
|
:param pulumi.Input['AlertV2EffectiveRunAsArgs'] effective_run_as: (AlertV2RunAs) - The actual identity that will be used to execute the alert.
|
|
235
213
|
This is an output-only field that shows the resolved run-as identity after applying
|
|
236
214
|
permissions and defaults
|
|
237
|
-
:param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `
|
|
215
|
+
:param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
|
|
238
216
|
:param pulumi.Input[_builtins.str] owner_user_name: (string) - The owner's username. This field is set to "Unavailable" if the user has been deleted
|
|
239
217
|
:param pulumi.Input[_builtins.str] parent_path: The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated
|
|
240
218
|
:param pulumi.Input[_builtins.str] query_text: Text of the query to be run
|
|
@@ -248,7 +226,6 @@ class _AlertV2State:
|
|
|
248
226
|
Deprecated: Use `run_as` field instead. This field will be removed in a future release
|
|
249
227
|
:param pulumi.Input[_builtins.str] update_time: (string) - The timestamp indicating when the alert was updated
|
|
250
228
|
:param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
|
|
251
|
-
:param pulumi.Input[_builtins.str] workspace_id: Workspace ID of the resource
|
|
252
229
|
"""
|
|
253
230
|
if create_time is not None:
|
|
254
231
|
pulumi.set(__self__, "create_time", create_time)
|
|
@@ -280,8 +257,6 @@ class _AlertV2State:
|
|
|
280
257
|
pulumi.set(__self__, "update_time", update_time)
|
|
281
258
|
if warehouse_id is not None:
|
|
282
259
|
pulumi.set(__self__, "warehouse_id", warehouse_id)
|
|
283
|
-
if workspace_id is not None:
|
|
284
|
-
pulumi.set(__self__, "workspace_id", workspace_id)
|
|
285
260
|
|
|
286
261
|
@_builtins.property
|
|
287
262
|
@pulumi.getter(name="createTime")
|
|
@@ -358,7 +333,7 @@ class _AlertV2State:
|
|
|
358
333
|
@pulumi.getter(name="lifecycleState")
|
|
359
334
|
def lifecycle_state(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
360
335
|
"""
|
|
361
|
-
(string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `
|
|
336
|
+
(string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
|
|
362
337
|
"""
|
|
363
338
|
return pulumi.get(self, "lifecycle_state")
|
|
364
339
|
|
|
@@ -465,18 +440,6 @@ class _AlertV2State:
|
|
|
465
440
|
def warehouse_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
466
441
|
pulumi.set(self, "warehouse_id", value)
|
|
467
442
|
|
|
468
|
-
@_builtins.property
|
|
469
|
-
@pulumi.getter(name="workspaceId")
|
|
470
|
-
def workspace_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
471
|
-
"""
|
|
472
|
-
Workspace ID of the resource
|
|
473
|
-
"""
|
|
474
|
-
return pulumi.get(self, "workspace_id")
|
|
475
|
-
|
|
476
|
-
@workspace_id.setter
|
|
477
|
-
def workspace_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
478
|
-
pulumi.set(self, "workspace_id", value)
|
|
479
|
-
|
|
480
443
|
|
|
481
444
|
@pulumi.type_token("databricks:index/alertV2:AlertV2")
|
|
482
445
|
class AlertV2(pulumi.CustomResource):
|
|
@@ -494,9 +457,10 @@ class AlertV2(pulumi.CustomResource):
|
|
|
494
457
|
run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
495
458
|
schedule: Optional[pulumi.Input[Union['AlertV2ScheduleArgs', 'AlertV2ScheduleArgsDict']]] = None,
|
|
496
459
|
warehouse_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
497
|
-
workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
498
460
|
__props__=None):
|
|
499
461
|
"""
|
|
462
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
463
|
+
|
|
500
464
|
The Alert v2 resource allows you to manage SQL alerts in Databricks SQL. Alerts monitor query results and notify you when specific conditions are met.
|
|
501
465
|
|
|
502
466
|
Alerts run on a schedule and evaluate query results against defined thresholds. When an alert is triggered, notifications can be sent to specified users or destinations.
|
|
@@ -506,6 +470,42 @@ class AlertV2(pulumi.CustomResource):
|
|
|
506
470
|
### Basic Alert Example
|
|
507
471
|
This example creates a basic alert that monitors a query and sends notifications to a user when the value exceeds a threshold:
|
|
508
472
|
|
|
473
|
+
```python
|
|
474
|
+
import pulumi
|
|
475
|
+
import pulumi_databricks as databricks
|
|
476
|
+
|
|
477
|
+
basic_alert = databricks.AlertV2("basic_alert",
|
|
478
|
+
display_name="High Error Rate Alert",
|
|
479
|
+
query_text="SELECT count(*) as error_count FROM logs WHERE level = 'ERROR' AND timestamp > now() - interval 1 hour",
|
|
480
|
+
warehouse_id="a7066a8ef796be84",
|
|
481
|
+
parent_path="/Users/user@example.com",
|
|
482
|
+
evaluation={
|
|
483
|
+
"source": {
|
|
484
|
+
"name": "error_count",
|
|
485
|
+
"display": "Error Count",
|
|
486
|
+
"aggregation": "COUNT",
|
|
487
|
+
},
|
|
488
|
+
"comparison_operator": "GREATER_THAN",
|
|
489
|
+
"threshold": {
|
|
490
|
+
"value": {
|
|
491
|
+
"double_value": 100,
|
|
492
|
+
},
|
|
493
|
+
},
|
|
494
|
+
"empty_result_state": "OK",
|
|
495
|
+
"notification": {
|
|
496
|
+
"subscriptions": [{
|
|
497
|
+
"user_email": "user@example.com",
|
|
498
|
+
}],
|
|
499
|
+
"notify_on_ok": True,
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
schedule={
|
|
503
|
+
"quartz_cron_schedule": "0 0/15 * * * ?",
|
|
504
|
+
"timezone_id": "America/Los_Angeles",
|
|
505
|
+
"pause_status": "UNPAUSED",
|
|
506
|
+
})
|
|
507
|
+
```
|
|
508
|
+
|
|
509
509
|
## Import
|
|
510
510
|
|
|
511
511
|
As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -523,7 +523,7 @@ class AlertV2(pulumi.CustomResource):
|
|
|
523
523
|
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
524
524
|
|
|
525
525
|
```sh
|
|
526
|
-
$ pulumi import databricks:index/alertV2:AlertV2
|
|
526
|
+
$ pulumi import databricks:index/alertV2:AlertV2 this "id"
|
|
527
527
|
```
|
|
528
528
|
|
|
529
529
|
:param str resource_name: The name of the resource.
|
|
@@ -542,15 +542,16 @@ class AlertV2(pulumi.CustomResource):
|
|
|
542
542
|
On Create and Update, this field can be set to application ID of an active service principal. Setting this field requires the servicePrincipal/user role.
|
|
543
543
|
Deprecated: Use `run_as` field instead. This field will be removed in a future release
|
|
544
544
|
:param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
|
|
545
|
-
:param pulumi.Input[_builtins.str] workspace_id: Workspace ID of the resource
|
|
546
545
|
"""
|
|
547
546
|
...
|
|
548
547
|
@overload
|
|
549
548
|
def __init__(__self__,
|
|
550
549
|
resource_name: str,
|
|
551
|
-
args:
|
|
550
|
+
args: AlertV2Args,
|
|
552
551
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
553
552
|
"""
|
|
553
|
+
[](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
554
|
+
|
|
554
555
|
The Alert v2 resource allows you to manage SQL alerts in Databricks SQL. Alerts monitor query results and notify you when specific conditions are met.
|
|
555
556
|
|
|
556
557
|
Alerts run on a schedule and evaluate query results against defined thresholds. When an alert is triggered, notifications can be sent to specified users or destinations.
|
|
@@ -560,6 +561,42 @@ class AlertV2(pulumi.CustomResource):
|
|
|
560
561
|
### Basic Alert Example
|
|
561
562
|
This example creates a basic alert that monitors a query and sends notifications to a user when the value exceeds a threshold:
|
|
562
563
|
|
|
564
|
+
```python
|
|
565
|
+
import pulumi
|
|
566
|
+
import pulumi_databricks as databricks
|
|
567
|
+
|
|
568
|
+
basic_alert = databricks.AlertV2("basic_alert",
|
|
569
|
+
display_name="High Error Rate Alert",
|
|
570
|
+
query_text="SELECT count(*) as error_count FROM logs WHERE level = 'ERROR' AND timestamp > now() - interval 1 hour",
|
|
571
|
+
warehouse_id="a7066a8ef796be84",
|
|
572
|
+
parent_path="/Users/user@example.com",
|
|
573
|
+
evaluation={
|
|
574
|
+
"source": {
|
|
575
|
+
"name": "error_count",
|
|
576
|
+
"display": "Error Count",
|
|
577
|
+
"aggregation": "COUNT",
|
|
578
|
+
},
|
|
579
|
+
"comparison_operator": "GREATER_THAN",
|
|
580
|
+
"threshold": {
|
|
581
|
+
"value": {
|
|
582
|
+
"double_value": 100,
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
"empty_result_state": "OK",
|
|
586
|
+
"notification": {
|
|
587
|
+
"subscriptions": [{
|
|
588
|
+
"user_email": "user@example.com",
|
|
589
|
+
}],
|
|
590
|
+
"notify_on_ok": True,
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
schedule={
|
|
594
|
+
"quartz_cron_schedule": "0 0/15 * * * ?",
|
|
595
|
+
"timezone_id": "America/Los_Angeles",
|
|
596
|
+
"pause_status": "UNPAUSED",
|
|
597
|
+
})
|
|
598
|
+
```
|
|
599
|
+
|
|
563
600
|
## Import
|
|
564
601
|
|
|
565
602
|
As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -577,7 +614,7 @@ class AlertV2(pulumi.CustomResource):
|
|
|
577
614
|
If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
578
615
|
|
|
579
616
|
```sh
|
|
580
|
-
$ pulumi import databricks:index/alertV2:AlertV2
|
|
617
|
+
$ pulumi import databricks:index/alertV2:AlertV2 this "id"
|
|
581
618
|
```
|
|
582
619
|
|
|
583
620
|
:param str resource_name: The name of the resource.
|
|
@@ -605,7 +642,6 @@ class AlertV2(pulumi.CustomResource):
|
|
|
605
642
|
run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
606
643
|
schedule: Optional[pulumi.Input[Union['AlertV2ScheduleArgs', 'AlertV2ScheduleArgsDict']]] = None,
|
|
607
644
|
warehouse_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
608
|
-
workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
609
645
|
__props__=None):
|
|
610
646
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
611
647
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -617,15 +653,24 @@ class AlertV2(pulumi.CustomResource):
|
|
|
617
653
|
|
|
618
654
|
__props__.__dict__["custom_description"] = custom_description
|
|
619
655
|
__props__.__dict__["custom_summary"] = custom_summary
|
|
656
|
+
if display_name is None and not opts.urn:
|
|
657
|
+
raise TypeError("Missing required property 'display_name'")
|
|
620
658
|
__props__.__dict__["display_name"] = display_name
|
|
659
|
+
if evaluation is None and not opts.urn:
|
|
660
|
+
raise TypeError("Missing required property 'evaluation'")
|
|
621
661
|
__props__.__dict__["evaluation"] = evaluation
|
|
622
662
|
__props__.__dict__["parent_path"] = parent_path
|
|
663
|
+
if query_text is None and not opts.urn:
|
|
664
|
+
raise TypeError("Missing required property 'query_text'")
|
|
623
665
|
__props__.__dict__["query_text"] = query_text
|
|
624
666
|
__props__.__dict__["run_as"] = run_as
|
|
625
667
|
__props__.__dict__["run_as_user_name"] = run_as_user_name
|
|
668
|
+
if schedule is None and not opts.urn:
|
|
669
|
+
raise TypeError("Missing required property 'schedule'")
|
|
626
670
|
__props__.__dict__["schedule"] = schedule
|
|
671
|
+
if warehouse_id is None and not opts.urn:
|
|
672
|
+
raise TypeError("Missing required property 'warehouse_id'")
|
|
627
673
|
__props__.__dict__["warehouse_id"] = warehouse_id
|
|
628
|
-
__props__.__dict__["workspace_id"] = workspace_id
|
|
629
674
|
__props__.__dict__["create_time"] = None
|
|
630
675
|
__props__.__dict__["effective_run_as"] = None
|
|
631
676
|
__props__.__dict__["lifecycle_state"] = None
|
|
@@ -655,8 +700,7 @@ class AlertV2(pulumi.CustomResource):
|
|
|
655
700
|
run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
656
701
|
schedule: Optional[pulumi.Input[Union['AlertV2ScheduleArgs', 'AlertV2ScheduleArgsDict']]] = None,
|
|
657
702
|
update_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
658
|
-
warehouse_id: Optional[pulumi.Input[_builtins.str]] = None
|
|
659
|
-
workspace_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'AlertV2':
|
|
703
|
+
warehouse_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'AlertV2':
|
|
660
704
|
"""
|
|
661
705
|
Get an existing AlertV2 resource's state with the given name, id, and optional extra
|
|
662
706
|
properties used to qualify the lookup.
|
|
@@ -671,7 +715,7 @@ class AlertV2(pulumi.CustomResource):
|
|
|
671
715
|
:param pulumi.Input[Union['AlertV2EffectiveRunAsArgs', 'AlertV2EffectiveRunAsArgsDict']] effective_run_as: (AlertV2RunAs) - The actual identity that will be used to execute the alert.
|
|
672
716
|
This is an output-only field that shows the resolved run-as identity after applying
|
|
673
717
|
permissions and defaults
|
|
674
|
-
:param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `
|
|
718
|
+
:param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
|
|
675
719
|
:param pulumi.Input[_builtins.str] owner_user_name: (string) - The owner's username. This field is set to "Unavailable" if the user has been deleted
|
|
676
720
|
:param pulumi.Input[_builtins.str] parent_path: The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated
|
|
677
721
|
:param pulumi.Input[_builtins.str] query_text: Text of the query to be run
|
|
@@ -685,7 +729,6 @@ class AlertV2(pulumi.CustomResource):
|
|
|
685
729
|
Deprecated: Use `run_as` field instead. This field will be removed in a future release
|
|
686
730
|
:param pulumi.Input[_builtins.str] update_time: (string) - The timestamp indicating when the alert was updated
|
|
687
731
|
:param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
|
|
688
|
-
:param pulumi.Input[_builtins.str] workspace_id: Workspace ID of the resource
|
|
689
732
|
"""
|
|
690
733
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
691
734
|
|
|
@@ -706,7 +749,6 @@ class AlertV2(pulumi.CustomResource):
|
|
|
706
749
|
__props__.__dict__["schedule"] = schedule
|
|
707
750
|
__props__.__dict__["update_time"] = update_time
|
|
708
751
|
__props__.__dict__["warehouse_id"] = warehouse_id
|
|
709
|
-
__props__.__dict__["workspace_id"] = workspace_id
|
|
710
752
|
return AlertV2(resource_name, opts=opts, __props__=__props__)
|
|
711
753
|
|
|
712
754
|
@_builtins.property
|
|
@@ -735,7 +777,7 @@ class AlertV2(pulumi.CustomResource):
|
|
|
735
777
|
|
|
736
778
|
@_builtins.property
|
|
737
779
|
@pulumi.getter(name="displayName")
|
|
738
|
-
def display_name(self) -> pulumi.Output[
|
|
780
|
+
def display_name(self) -> pulumi.Output[_builtins.str]:
|
|
739
781
|
"""
|
|
740
782
|
The display name of the alert
|
|
741
783
|
"""
|
|
@@ -753,14 +795,14 @@ class AlertV2(pulumi.CustomResource):
|
|
|
753
795
|
|
|
754
796
|
@_builtins.property
|
|
755
797
|
@pulumi.getter
|
|
756
|
-
def evaluation(self) -> pulumi.Output[
|
|
798
|
+
def evaluation(self) -> pulumi.Output['outputs.AlertV2Evaluation']:
|
|
757
799
|
return pulumi.get(self, "evaluation")
|
|
758
800
|
|
|
759
801
|
@_builtins.property
|
|
760
802
|
@pulumi.getter(name="lifecycleState")
|
|
761
803
|
def lifecycle_state(self) -> pulumi.Output[_builtins.str]:
|
|
762
804
|
"""
|
|
763
|
-
(string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `
|
|
805
|
+
(string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
|
|
764
806
|
"""
|
|
765
807
|
return pulumi.get(self, "lifecycle_state")
|
|
766
808
|
|
|
@@ -782,7 +824,7 @@ class AlertV2(pulumi.CustomResource):
|
|
|
782
824
|
|
|
783
825
|
@_builtins.property
|
|
784
826
|
@pulumi.getter(name="queryText")
|
|
785
|
-
def query_text(self) -> pulumi.Output[
|
|
827
|
+
def query_text(self) -> pulumi.Output[_builtins.str]:
|
|
786
828
|
"""
|
|
787
829
|
Text of the query to be run
|
|
788
830
|
"""
|
|
@@ -812,7 +854,7 @@ class AlertV2(pulumi.CustomResource):
|
|
|
812
854
|
|
|
813
855
|
@_builtins.property
|
|
814
856
|
@pulumi.getter
|
|
815
|
-
def schedule(self) -> pulumi.Output[
|
|
857
|
+
def schedule(self) -> pulumi.Output['outputs.AlertV2Schedule']:
|
|
816
858
|
return pulumi.get(self, "schedule")
|
|
817
859
|
|
|
818
860
|
@_builtins.property
|
|
@@ -825,17 +867,9 @@ class AlertV2(pulumi.CustomResource):
|
|
|
825
867
|
|
|
826
868
|
@_builtins.property
|
|
827
869
|
@pulumi.getter(name="warehouseId")
|
|
828
|
-
def warehouse_id(self) -> pulumi.Output[
|
|
870
|
+
def warehouse_id(self) -> pulumi.Output[_builtins.str]:
|
|
829
871
|
"""
|
|
830
872
|
ID of the SQL warehouse attached to the alert
|
|
831
873
|
"""
|
|
832
874
|
return pulumi.get(self, "warehouse_id")
|
|
833
875
|
|
|
834
|
-
@_builtins.property
|
|
835
|
-
@pulumi.getter(name="workspaceId")
|
|
836
|
-
def workspace_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
837
|
-
"""
|
|
838
|
-
Workspace ID of the resource
|
|
839
|
-
"""
|
|
840
|
-
return pulumi.get(self, "workspace_id")
|
|
841
|
-
|