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,7 +14,6 @@ else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from . import _utilities
16
16
  from . import outputs
17
- from ._inputs import *
18
17
 
19
18
  __all__ = [
20
19
  'GetAlertV2Result',
@@ -28,7 +27,7 @@ class GetAlertV2Result:
28
27
  """
29
28
  A collection of values returned by getAlertV2.
30
29
  """
31
- def __init__(__self__, create_time=None, custom_description=None, custom_summary=None, display_name=None, evaluation=None, id=None, lifecycle_state=None, owner_user_name=None, parent_path=None, query_text=None, run_as_user_name=None, schedule=None, update_time=None, warehouse_id=None):
30
+ def __init__(__self__, create_time=None, custom_description=None, custom_summary=None, display_name=None, effective_run_as=None, evaluation=None, id=None, lifecycle_state=None, owner_user_name=None, parent_path=None, query_text=None, run_as=None, run_as_user_name=None, schedule=None, update_time=None, warehouse_id=None):
32
31
  if create_time and not isinstance(create_time, str):
33
32
  raise TypeError("Expected argument 'create_time' to be a str")
34
33
  pulumi.set(__self__, "create_time", create_time)
@@ -41,6 +40,9 @@ class GetAlertV2Result:
41
40
  if display_name and not isinstance(display_name, str):
42
41
  raise TypeError("Expected argument 'display_name' to be a str")
43
42
  pulumi.set(__self__, "display_name", display_name)
43
+ if effective_run_as and not isinstance(effective_run_as, dict):
44
+ raise TypeError("Expected argument 'effective_run_as' to be a dict")
45
+ pulumi.set(__self__, "effective_run_as", effective_run_as)
44
46
  if evaluation and not isinstance(evaluation, dict):
45
47
  raise TypeError("Expected argument 'evaluation' to be a dict")
46
48
  pulumi.set(__self__, "evaluation", evaluation)
@@ -59,6 +61,9 @@ class GetAlertV2Result:
59
61
  if query_text and not isinstance(query_text, str):
60
62
  raise TypeError("Expected argument 'query_text' to be a str")
61
63
  pulumi.set(__self__, "query_text", query_text)
64
+ if run_as and not isinstance(run_as, dict):
65
+ raise TypeError("Expected argument 'run_as' to be a dict")
66
+ pulumi.set(__self__, "run_as", run_as)
62
67
  if run_as_user_name and not isinstance(run_as_user_name, str):
63
68
  raise TypeError("Expected argument 'run_as_user_name' to be a str")
64
69
  pulumi.set(__self__, "run_as_user_name", run_as_user_name)
@@ -82,7 +87,7 @@ class GetAlertV2Result:
82
87
 
83
88
  @_builtins.property
84
89
  @pulumi.getter(name="customDescription")
85
- def custom_description(self) -> Optional[_builtins.str]:
90
+ def custom_description(self) -> _builtins.str:
86
91
  """
87
92
  (string) - Custom description for the alert. support mustache template
88
93
  """
@@ -90,7 +95,7 @@ class GetAlertV2Result:
90
95
 
91
96
  @_builtins.property
92
97
  @pulumi.getter(name="customSummary")
93
- def custom_summary(self) -> Optional[_builtins.str]:
98
+ def custom_summary(self) -> _builtins.str:
94
99
  """
95
100
  (string) - Custom summary for the alert. support mustache template
96
101
  """
@@ -98,15 +103,25 @@ class GetAlertV2Result:
98
103
 
99
104
  @_builtins.property
100
105
  @pulumi.getter(name="displayName")
101
- def display_name(self) -> Optional[_builtins.str]:
106
+ def display_name(self) -> _builtins.str:
102
107
  """
103
108
  (string) - The display name of the alert
104
109
  """
105
110
  return pulumi.get(self, "display_name")
106
111
 
112
+ @_builtins.property
113
+ @pulumi.getter(name="effectiveRunAs")
114
+ def effective_run_as(self) -> 'outputs.GetAlertV2EffectiveRunAsResult':
115
+ """
116
+ (AlertV2RunAs) - The actual identity that will be used to execute the alert.
117
+ This is an output-only field that shows the resolved run-as identity after applying
118
+ permissions and defaults
119
+ """
120
+ return pulumi.get(self, "effective_run_as")
121
+
107
122
  @_builtins.property
108
123
  @pulumi.getter
109
- def evaluation(self) -> Optional['outputs.GetAlertV2EvaluationResult']:
124
+ def evaluation(self) -> 'outputs.GetAlertV2EvaluationResult':
110
125
  """
111
126
  (AlertV2Evaluation)
112
127
  """
@@ -124,7 +139,7 @@ class GetAlertV2Result:
124
139
  @pulumi.getter(name="lifecycleState")
125
140
  def lifecycle_state(self) -> _builtins.str:
126
141
  """
127
- (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `TRASHED`
142
+ (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
128
143
  """
129
144
  return pulumi.get(self, "lifecycle_state")
130
145
 
@@ -138,7 +153,7 @@ class GetAlertV2Result:
138
153
 
139
154
  @_builtins.property
140
155
  @pulumi.getter(name="parentPath")
141
- def parent_path(self) -> Optional[_builtins.str]:
156
+ def parent_path(self) -> _builtins.str:
142
157
  """
143
158
  (string) - The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated
144
159
  """
@@ -146,24 +161,37 @@ class GetAlertV2Result:
146
161
 
147
162
  @_builtins.property
148
163
  @pulumi.getter(name="queryText")
149
- def query_text(self) -> Optional[_builtins.str]:
164
+ def query_text(self) -> _builtins.str:
150
165
  """
151
166
  (string) - Text of the query to be run
152
167
  """
153
168
  return pulumi.get(self, "query_text")
154
169
 
170
+ @_builtins.property
171
+ @pulumi.getter(name="runAs")
172
+ def run_as(self) -> 'outputs.GetAlertV2RunAsResult':
173
+ """
174
+ (AlertV2RunAs) - Specifies the identity that will be used to run the alert.
175
+ This field allows you to configure alerts to run as a specific user or service principal.
176
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
177
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
178
+ If not specified, the alert will run as the request user
179
+ """
180
+ return pulumi.get(self, "run_as")
181
+
155
182
  @_builtins.property
156
183
  @pulumi.getter(name="runAsUserName")
157
- def run_as_user_name(self) -> Optional[_builtins.str]:
184
+ def run_as_user_name(self) -> _builtins.str:
158
185
  """
159
- (string) - The run as username or application ID of service principal.
160
- 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
186
+ (string, deprecated) - The run as username or application ID of service principal.
187
+ 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.
188
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
161
189
  """
162
190
  return pulumi.get(self, "run_as_user_name")
163
191
 
164
192
  @_builtins.property
165
193
  @pulumi.getter
166
- def schedule(self) -> Optional['outputs.GetAlertV2ScheduleResult']:
194
+ def schedule(self) -> 'outputs.GetAlertV2ScheduleResult':
167
195
  """
168
196
  (CronSchedule)
169
197
  """
@@ -179,7 +207,7 @@ class GetAlertV2Result:
179
207
 
180
208
  @_builtins.property
181
209
  @pulumi.getter(name="warehouseId")
182
- def warehouse_id(self) -> Optional[_builtins.str]:
210
+ def warehouse_id(self) -> _builtins.str:
183
211
  """
184
212
  (string) - ID of the SQL warehouse attached to the alert
185
213
  """
@@ -196,29 +224,25 @@ class AwaitableGetAlertV2Result(GetAlertV2Result):
196
224
  custom_description=self.custom_description,
197
225
  custom_summary=self.custom_summary,
198
226
  display_name=self.display_name,
227
+ effective_run_as=self.effective_run_as,
199
228
  evaluation=self.evaluation,
200
229
  id=self.id,
201
230
  lifecycle_state=self.lifecycle_state,
202
231
  owner_user_name=self.owner_user_name,
203
232
  parent_path=self.parent_path,
204
233
  query_text=self.query_text,
234
+ run_as=self.run_as,
205
235
  run_as_user_name=self.run_as_user_name,
206
236
  schedule=self.schedule,
207
237
  update_time=self.update_time,
208
238
  warehouse_id=self.warehouse_id)
209
239
 
210
240
 
211
- def get_alert_v2(custom_description: Optional[_builtins.str] = None,
212
- custom_summary: Optional[_builtins.str] = None,
213
- display_name: Optional[_builtins.str] = None,
214
- evaluation: Optional[Union['GetAlertV2EvaluationArgs', 'GetAlertV2EvaluationArgsDict']] = None,
215
- parent_path: Optional[_builtins.str] = None,
216
- query_text: Optional[_builtins.str] = None,
217
- run_as_user_name: Optional[_builtins.str] = None,
218
- schedule: Optional[Union['GetAlertV2ScheduleArgs', 'GetAlertV2ScheduleArgsDict']] = None,
219
- warehouse_id: Optional[_builtins.str] = None,
241
+ def get_alert_v2(id: Optional[_builtins.str] = None,
220
242
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertV2Result:
221
243
  """
244
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
245
+
222
246
  The SQL Alert v2 data source allows you to retrieve detailed information about a specific alert in Databricks SQL. This data source provides access to all alert properties, including its configuration, evaluation criteria, notification settings, and schedule.
223
247
 
224
248
  You can use this data source to:
@@ -229,28 +253,21 @@ def get_alert_v2(custom_description: Optional[_builtins.str] = None,
229
253
 
230
254
  ## Example Usage
231
255
 
256
+ ### Retrieve Alert by ID
257
+ This example retrieves a specific alert by its ID:
258
+
259
+ ```python
260
+ import pulumi
261
+ import pulumi_databricks as databricks
262
+
263
+ this = databricks.get_alert_v2(id="123")
264
+ ```
265
+
232
266
 
233
- :param _builtins.str custom_description: (string) - Custom description for the alert. support mustache template
234
- :param _builtins.str custom_summary: (string) - Custom summary for the alert. support mustache template
235
- :param _builtins.str display_name: (string) - The display name of the alert
236
- :param Union['GetAlertV2EvaluationArgs', 'GetAlertV2EvaluationArgsDict'] evaluation: (AlertV2Evaluation)
237
- :param _builtins.str parent_path: (string) - The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated
238
- :param _builtins.str query_text: (string) - Text of the query to be run
239
- :param _builtins.str run_as_user_name: (string) - The run as username or application ID of service principal.
240
- 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
241
- :param Union['GetAlertV2ScheduleArgs', 'GetAlertV2ScheduleArgsDict'] schedule: (CronSchedule)
242
- :param _builtins.str warehouse_id: (string) - ID of the SQL warehouse attached to the alert
267
+ :param _builtins.str id: UUID identifying the alert
243
268
  """
244
269
  __args__ = dict()
245
- __args__['customDescription'] = custom_description
246
- __args__['customSummary'] = custom_summary
247
- __args__['displayName'] = display_name
248
- __args__['evaluation'] = evaluation
249
- __args__['parentPath'] = parent_path
250
- __args__['queryText'] = query_text
251
- __args__['runAsUserName'] = run_as_user_name
252
- __args__['schedule'] = schedule
253
- __args__['warehouseId'] = warehouse_id
270
+ __args__['id'] = id
254
271
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
255
272
  __ret__ = pulumi.runtime.invoke('databricks:index/getAlertV2:getAlertV2', __args__, opts=opts, typ=GetAlertV2Result).value
256
273
 
@@ -259,27 +276,23 @@ def get_alert_v2(custom_description: Optional[_builtins.str] = None,
259
276
  custom_description=pulumi.get(__ret__, 'custom_description'),
260
277
  custom_summary=pulumi.get(__ret__, 'custom_summary'),
261
278
  display_name=pulumi.get(__ret__, 'display_name'),
279
+ effective_run_as=pulumi.get(__ret__, 'effective_run_as'),
262
280
  evaluation=pulumi.get(__ret__, 'evaluation'),
263
281
  id=pulumi.get(__ret__, 'id'),
264
282
  lifecycle_state=pulumi.get(__ret__, 'lifecycle_state'),
265
283
  owner_user_name=pulumi.get(__ret__, 'owner_user_name'),
266
284
  parent_path=pulumi.get(__ret__, 'parent_path'),
267
285
  query_text=pulumi.get(__ret__, 'query_text'),
286
+ run_as=pulumi.get(__ret__, 'run_as'),
268
287
  run_as_user_name=pulumi.get(__ret__, 'run_as_user_name'),
269
288
  schedule=pulumi.get(__ret__, 'schedule'),
270
289
  update_time=pulumi.get(__ret__, 'update_time'),
271
290
  warehouse_id=pulumi.get(__ret__, 'warehouse_id'))
272
- def get_alert_v2_output(custom_description: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
273
- custom_summary: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
274
- display_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
275
- evaluation: Optional[pulumi.Input[Optional[Union['GetAlertV2EvaluationArgs', 'GetAlertV2EvaluationArgsDict']]]] = None,
276
- parent_path: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
277
- query_text: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
278
- run_as_user_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
279
- schedule: Optional[pulumi.Input[Optional[Union['GetAlertV2ScheduleArgs', 'GetAlertV2ScheduleArgsDict']]]] = None,
280
- warehouse_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
291
+ def get_alert_v2_output(id: Optional[pulumi.Input[_builtins.str]] = None,
281
292
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertV2Result]:
282
293
  """
294
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
295
+
283
296
  The SQL Alert v2 data source allows you to retrieve detailed information about a specific alert in Databricks SQL. This data source provides access to all alert properties, including its configuration, evaluation criteria, notification settings, and schedule.
284
297
 
285
298
  You can use this data source to:
@@ -290,28 +303,21 @@ def get_alert_v2_output(custom_description: Optional[pulumi.Input[Optional[_buil
290
303
 
291
304
  ## Example Usage
292
305
 
306
+ ### Retrieve Alert by ID
307
+ This example retrieves a specific alert by its ID:
308
+
309
+ ```python
310
+ import pulumi
311
+ import pulumi_databricks as databricks
312
+
313
+ this = databricks.get_alert_v2(id="123")
314
+ ```
315
+
293
316
 
294
- :param _builtins.str custom_description: (string) - Custom description for the alert. support mustache template
295
- :param _builtins.str custom_summary: (string) - Custom summary for the alert. support mustache template
296
- :param _builtins.str display_name: (string) - The display name of the alert
297
- :param Union['GetAlertV2EvaluationArgs', 'GetAlertV2EvaluationArgsDict'] evaluation: (AlertV2Evaluation)
298
- :param _builtins.str parent_path: (string) - The workspace path of the folder containing the alert. Can only be set on create, and cannot be updated
299
- :param _builtins.str query_text: (string) - Text of the query to be run
300
- :param _builtins.str run_as_user_name: (string) - The run as username or application ID of service principal.
301
- 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
302
- :param Union['GetAlertV2ScheduleArgs', 'GetAlertV2ScheduleArgsDict'] schedule: (CronSchedule)
303
- :param _builtins.str warehouse_id: (string) - ID of the SQL warehouse attached to the alert
317
+ :param _builtins.str id: UUID identifying the alert
304
318
  """
305
319
  __args__ = dict()
306
- __args__['customDescription'] = custom_description
307
- __args__['customSummary'] = custom_summary
308
- __args__['displayName'] = display_name
309
- __args__['evaluation'] = evaluation
310
- __args__['parentPath'] = parent_path
311
- __args__['queryText'] = query_text
312
- __args__['runAsUserName'] = run_as_user_name
313
- __args__['schedule'] = schedule
314
- __args__['warehouseId'] = warehouse_id
320
+ __args__['id'] = id
315
321
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
316
322
  __ret__ = pulumi.runtime.invoke_output('databricks:index/getAlertV2:getAlertV2', __args__, opts=opts, typ=GetAlertV2Result)
317
323
  return __ret__.apply(lambda __response__: GetAlertV2Result(
@@ -319,12 +325,14 @@ def get_alert_v2_output(custom_description: Optional[pulumi.Input[Optional[_buil
319
325
  custom_description=pulumi.get(__response__, 'custom_description'),
320
326
  custom_summary=pulumi.get(__response__, 'custom_summary'),
321
327
  display_name=pulumi.get(__response__, 'display_name'),
328
+ effective_run_as=pulumi.get(__response__, 'effective_run_as'),
322
329
  evaluation=pulumi.get(__response__, 'evaluation'),
323
330
  id=pulumi.get(__response__, 'id'),
324
331
  lifecycle_state=pulumi.get(__response__, 'lifecycle_state'),
325
332
  owner_user_name=pulumi.get(__response__, 'owner_user_name'),
326
333
  parent_path=pulumi.get(__response__, 'parent_path'),
327
334
  query_text=pulumi.get(__response__, 'query_text'),
335
+ run_as=pulumi.get(__response__, 'run_as'),
328
336
  run_as_user_name=pulumi.get(__response__, 'run_as_user_name'),
329
337
  schedule=pulumi.get(__response__, 'schedule'),
330
338
  update_time=pulumi.get(__response__, 'update_time'),
@@ -27,13 +27,21 @@ class GetAlertsV2Result:
27
27
  """
28
28
  A collection of values returned by getAlertsV2.
29
29
  """
30
- def __init__(__self__, id=None, results=None):
30
+ def __init__(__self__, alerts=None, id=None, page_size=None):
31
+ if alerts and not isinstance(alerts, list):
32
+ raise TypeError("Expected argument 'alerts' to be a list")
33
+ pulumi.set(__self__, "alerts", alerts)
31
34
  if id and not isinstance(id, str):
32
35
  raise TypeError("Expected argument 'id' to be a str")
33
36
  pulumi.set(__self__, "id", id)
34
- if results and not isinstance(results, list):
35
- raise TypeError("Expected argument 'results' to be a list")
36
- pulumi.set(__self__, "results", results)
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 alerts(self) -> Sequence['outputs.GetAlertsV2AlertResult']:
44
+ return pulumi.get(self, "alerts")
37
45
 
38
46
  @_builtins.property
39
47
  @pulumi.getter
@@ -44,9 +52,9 @@ class GetAlertsV2Result:
44
52
  return pulumi.get(self, "id")
45
53
 
46
54
  @_builtins.property
47
- @pulumi.getter
48
- def results(self) -> Sequence['outputs.GetAlertsV2ResultResult']:
49
- return pulumi.get(self, "results")
55
+ @pulumi.getter(name="pageSize")
56
+ def page_size(self) -> Optional[_builtins.int]:
57
+ return pulumi.get(self, "page_size")
50
58
 
51
59
 
52
60
  class AwaitableGetAlertsV2Result(GetAlertsV2Result):
@@ -55,12 +63,16 @@ class AwaitableGetAlertsV2Result(GetAlertsV2Result):
55
63
  if False:
56
64
  yield self
57
65
  return GetAlertsV2Result(
66
+ alerts=self.alerts,
58
67
  id=self.id,
59
- results=self.results)
68
+ page_size=self.page_size)
60
69
 
61
70
 
62
- def get_alerts_v2(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertsV2Result:
71
+ def get_alerts_v2(page_size: Optional[_builtins.int] = None,
72
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertsV2Result:
63
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
+
64
76
  The SQL Alerts v2 data source allows you to retrieve a list of alerts in Databricks SQL that are accessible to the current user. This data source returns alerts ordered by their creation time.
65
77
 
66
78
  You can use this data source to:
@@ -80,14 +92,19 @@ def get_alerts_v2(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAl
80
92
  ```
81
93
  """
82
94
  __args__ = dict()
95
+ __args__['pageSize'] = page_size
83
96
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
84
97
  __ret__ = pulumi.runtime.invoke('databricks:index/getAlertsV2:getAlertsV2', __args__, opts=opts, typ=GetAlertsV2Result).value
85
98
 
86
99
  return AwaitableGetAlertsV2Result(
100
+ alerts=pulumi.get(__ret__, 'alerts'),
87
101
  id=pulumi.get(__ret__, 'id'),
88
- results=pulumi.get(__ret__, 'results'))
89
- def get_alerts_v2_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertsV2Result]:
102
+ page_size=pulumi.get(__ret__, 'page_size'))
103
+ def get_alerts_v2_output(page_size: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
104
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertsV2Result]:
90
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
+
91
108
  The SQL Alerts v2 data source allows you to retrieve a list of alerts in Databricks SQL that are accessible to the current user. This data source returns alerts ordered by their creation time.
92
109
 
93
110
  You can use this data source to:
@@ -107,8 +124,10 @@ def get_alerts_v2_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.Invok
107
124
  ```
108
125
  """
109
126
  __args__ = dict()
127
+ __args__['pageSize'] = page_size
110
128
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
111
129
  __ret__ = pulumi.runtime.invoke_output('databricks:index/getAlertsV2:getAlertsV2', __args__, opts=opts, typ=GetAlertsV2Result)
112
130
  return __ret__.apply(lambda __response__: GetAlertsV2Result(
131
+ alerts=pulumi.get(__response__, 'alerts'),
113
132
  id=pulumi.get(__response__, 'id'),
114
- results=pulumi.get(__response__, 'results')))
133
+ page_size=pulumi.get(__response__, 'page_size')))
@@ -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
  'GetAppResult',
@@ -27,7 +28,7 @@ class GetAppResult:
27
28
  """
28
29
  A collection of values returned by getApp.
29
30
  """
30
- def __init__(__self__, app=None, id=None, name=None):
31
+ def __init__(__self__, app=None, id=None, name=None, provider_config=None):
31
32
  if app and not isinstance(app, dict):
32
33
  raise TypeError("Expected argument 'app' to be a dict")
33
34
  pulumi.set(__self__, "app", app)
@@ -37,6 +38,9 @@ class GetAppResult:
37
38
  if name and not isinstance(name, str):
38
39
  raise TypeError("Expected argument 'name' to be a str")
39
40
  pulumi.set(__self__, "name", name)
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
@@ -58,10 +62,15 @@ class GetAppResult:
58
62
  @pulumi.getter
59
63
  def name(self) -> _builtins.str:
60
64
  """
61
- Name of the serving endpoint to grant permission on.
65
+ The name of Genie Space.
62
66
  """
63
67
  return pulumi.get(self, "name")
64
68
 
69
+ @_builtins.property
70
+ @pulumi.getter(name="providerConfig")
71
+ def provider_config(self) -> Optional['outputs.GetAppProviderConfigResult']:
72
+ return pulumi.get(self, "provider_config")
73
+
65
74
 
66
75
  class AwaitableGetAppResult(GetAppResult):
67
76
  # pylint: disable=using-constant-test
@@ -71,16 +80,16 @@ class AwaitableGetAppResult(GetAppResult):
71
80
  return GetAppResult(
72
81
  app=self.app,
73
82
  id=self.id,
74
- name=self.name)
83
+ name=self.name,
84
+ provider_config=self.provider_config)
75
85
 
76
86
 
77
87
  def get_app(name: Optional[_builtins.str] = None,
88
+ provider_config: Optional[Union['GetAppProviderConfigArgs', 'GetAppProviderConfigArgsDict']] = None,
78
89
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppResult:
79
90
  """
80
91
  > This data source can only be used with a workspace-level provider!
81
92
 
82
- > This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html).
83
-
84
93
  [Databricks Apps](https://docs.databricks.com/en/dev-tools/databricks-apps/index.html) run directly on a customer’s Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on. This resource creates the application but does not handle app deployment, which should be handled separately as part of your CI/CD pipeline.
85
94
 
86
95
  This data source allows you to fetch information about a Databricks App.
@@ -109,20 +118,21 @@ def get_app(name: Optional[_builtins.str] = None,
109
118
  """
110
119
  __args__ = dict()
111
120
  __args__['name'] = name
121
+ __args__['providerConfig'] = provider_config
112
122
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
113
123
  __ret__ = pulumi.runtime.invoke('databricks:index/getApp:getApp', __args__, opts=opts, typ=GetAppResult).value
114
124
 
115
125
  return AwaitableGetAppResult(
116
126
  app=pulumi.get(__ret__, 'app'),
117
127
  id=pulumi.get(__ret__, 'id'),
118
- name=pulumi.get(__ret__, 'name'))
128
+ name=pulumi.get(__ret__, 'name'),
129
+ provider_config=pulumi.get(__ret__, 'provider_config'))
119
130
  def get_app_output(name: Optional[pulumi.Input[_builtins.str]] = None,
131
+ provider_config: Optional[pulumi.Input[Optional[Union['GetAppProviderConfigArgs', 'GetAppProviderConfigArgsDict']]]] = None,
120
132
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAppResult]:
121
133
  """
122
134
  > This data source can only be used with a workspace-level provider!
123
135
 
124
- > This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html).
125
-
126
136
  [Databricks Apps](https://docs.databricks.com/en/dev-tools/databricks-apps/index.html) run directly on a customer’s Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on. This resource creates the application but does not handle app deployment, which should be handled separately as part of your CI/CD pipeline.
127
137
 
128
138
  This data source allows you to fetch information about a Databricks App.
@@ -151,9 +161,11 @@ def get_app_output(name: Optional[pulumi.Input[_builtins.str]] = None,
151
161
  """
152
162
  __args__ = dict()
153
163
  __args__['name'] = name
164
+ __args__['providerConfig'] = provider_config
154
165
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
155
166
  __ret__ = pulumi.runtime.invoke_output('databricks:index/getApp:getApp', __args__, opts=opts, typ=GetAppResult)
156
167
  return __ret__.apply(lambda __response__: GetAppResult(
157
168
  app=pulumi.get(__response__, 'app'),
158
169
  id=pulumi.get(__response__, 'id'),
159
- name=pulumi.get(__response__, 'name')))
170
+ name=pulumi.get(__response__, 'name'),
171
+ 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
  'GetAppsResult',
@@ -27,13 +28,16 @@ class GetAppsResult:
27
28
  """
28
29
  A collection of values returned by getApps.
29
30
  """
30
- def __init__(__self__, apps=None, id=None):
31
+ def __init__(__self__, apps=None, id=None, provider_config=None):
31
32
  if apps and not isinstance(apps, list):
32
33
  raise TypeError("Expected argument 'apps' to be a list")
33
34
  pulumi.set(__self__, "apps", apps)
34
35
  if id and not isinstance(id, str):
35
36
  raise TypeError("Expected argument 'id' to be a str")
36
37
  pulumi.set(__self__, "id", id)
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)
37
41
 
38
42
  @_builtins.property
39
43
  @pulumi.getter
@@ -48,6 +52,11 @@ class GetAppsResult:
48
52
  """
49
53
  return pulumi.get(self, "id")
50
54
 
55
+ @_builtins.property
56
+ @pulumi.getter(name="providerConfig")
57
+ def provider_config(self) -> Optional['outputs.GetAppsProviderConfigResult']:
58
+ return pulumi.get(self, "provider_config")
59
+
51
60
 
52
61
  class AwaitableGetAppsResult(GetAppsResult):
53
62
  # pylint: disable=using-constant-test
@@ -56,15 +65,15 @@ class AwaitableGetAppsResult(GetAppsResult):
56
65
  yield self
57
66
  return GetAppsResult(
58
67
  apps=self.apps,
59
- id=self.id)
68
+ id=self.id,
69
+ provider_config=self.provider_config)
60
70
 
61
71
 
62
- def get_apps(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppsResult:
72
+ def get_apps(provider_config: Optional[Union['GetAppsProviderConfigArgs', 'GetAppsProviderConfigArgsDict']] = None,
73
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppsResult:
63
74
  """
64
75
  > This data source can only be used with a workspace-level provider!
65
76
 
66
- > This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html).
67
-
68
77
  [Databricks Apps](https://docs.databricks.com/en/dev-tools/databricks-apps/index.html) run directly on a customer’s Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on. This resource creates the application but does not handle app deployment, which should be handled separately as part of your CI/CD pipeline.
69
78
 
70
79
  This data source allows you to fetch information about all Databricks Apps within a workspace.
@@ -89,18 +98,19 @@ def get_apps(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppsRes
89
98
  * Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code.
90
99
  """
91
100
  __args__ = dict()
101
+ __args__['providerConfig'] = provider_config
92
102
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
93
103
  __ret__ = pulumi.runtime.invoke('databricks:index/getApps:getApps', __args__, opts=opts, typ=GetAppsResult).value
94
104
 
95
105
  return AwaitableGetAppsResult(
96
106
  apps=pulumi.get(__ret__, 'apps'),
97
- id=pulumi.get(__ret__, 'id'))
98
- def get_apps_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAppsResult]:
107
+ id=pulumi.get(__ret__, 'id'),
108
+ provider_config=pulumi.get(__ret__, 'provider_config'))
109
+ def get_apps_output(provider_config: Optional[pulumi.Input[Optional[Union['GetAppsProviderConfigArgs', 'GetAppsProviderConfigArgsDict']]]] = None,
110
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAppsResult]:
99
111
  """
100
112
  > This data source can only be used with a workspace-level provider!
101
113
 
102
- > This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html).
103
-
104
114
  [Databricks Apps](https://docs.databricks.com/en/dev-tools/databricks-apps/index.html) run directly on a customer’s Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on. This resource creates the application but does not handle app deployment, which should be handled separately as part of your CI/CD pipeline.
105
115
 
106
116
  This data source allows you to fetch information about all Databricks Apps within a workspace.
@@ -125,8 +135,10 @@ def get_apps_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutp
125
135
  * Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code.
126
136
  """
127
137
  __args__ = dict()
138
+ __args__['providerConfig'] = provider_config
128
139
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
129
140
  __ret__ = pulumi.runtime.invoke_output('databricks:index/getApps:getApps', __args__, opts=opts, typ=GetAppsResult)
130
141
  return __ret__.apply(lambda __response__: GetAppsResult(
131
142
  apps=pulumi.get(__response__, 'apps'),
132
- id=pulumi.get(__response__, 'id')))
143
+ id=pulumi.get(__response__, 'id'),
144
+ provider_config=pulumi.get(__response__, 'provider_config')))