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
@@ -21,44 +21,102 @@ __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
- run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
31
- schedule: Optional[pulumi.Input['AlertV2ScheduleArgs']] = None,
32
- warehouse_id: Optional[pulumi.Input[_builtins.str]] = None):
32
+ run_as: Optional[pulumi.Input['AlertV2RunAsArgs']] = None,
33
+ run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None):
33
34
  """
34
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
35
39
  :param pulumi.Input[_builtins.str] custom_description: Custom description for the alert. support mustache template
36
40
  :param pulumi.Input[_builtins.str] custom_summary: Custom summary for the alert. support mustache template
37
- :param pulumi.Input[_builtins.str] display_name: The display name of the alert
38
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
39
- :param pulumi.Input[_builtins.str] query_text: Text of the query to be run
42
+ :param pulumi.Input['AlertV2RunAsArgs'] run_as: Specifies the identity that will be used to run the alert.
43
+ This field allows you to configure alerts to run as a specific user or service principal.
44
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
45
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
46
+ If not specified, the alert will run as the request user
40
47
  :param pulumi.Input[_builtins.str] run_as_user_name: The run as username or application ID of service principal.
41
- 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
42
- :param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
43
- """
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
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
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)
44
56
  if custom_description is not None:
45
57
  pulumi.set(__self__, "custom_description", custom_description)
46
58
  if custom_summary is not None:
47
59
  pulumi.set(__self__, "custom_summary", custom_summary)
48
- if display_name is not None:
49
- pulumi.set(__self__, "display_name", display_name)
50
- if evaluation is not None:
51
- pulumi.set(__self__, "evaluation", evaluation)
52
60
  if parent_path is not None:
53
61
  pulumi.set(__self__, "parent_path", parent_path)
54
- if query_text is not None:
55
- pulumi.set(__self__, "query_text", query_text)
62
+ if run_as is not None:
63
+ pulumi.set(__self__, "run_as", run_as)
56
64
  if run_as_user_name is not None:
57
65
  pulumi.set(__self__, "run_as_user_name", run_as_user_name)
58
- if schedule is not None:
59
- pulumi.set(__self__, "schedule", schedule)
60
- if warehouse_id is not None:
61
- pulumi.set(__self__, "warehouse_id", warehouse_id)
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)
62
120
 
63
121
  @_builtins.property
64
122
  @pulumi.getter(name="customDescription")
@@ -84,27 +142,6 @@ class AlertV2Args:
84
142
  def custom_summary(self, value: Optional[pulumi.Input[_builtins.str]]):
85
143
  pulumi.set(self, "custom_summary", value)
86
144
 
87
- @_builtins.property
88
- @pulumi.getter(name="displayName")
89
- def display_name(self) -> Optional[pulumi.Input[_builtins.str]]:
90
- """
91
- The display name of the alert
92
- """
93
- return pulumi.get(self, "display_name")
94
-
95
- @display_name.setter
96
- def display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
97
- pulumi.set(self, "display_name", value)
98
-
99
- @_builtins.property
100
- @pulumi.getter
101
- def evaluation(self) -> Optional[pulumi.Input['AlertV2EvaluationArgs']]:
102
- return pulumi.get(self, "evaluation")
103
-
104
- @evaluation.setter
105
- def evaluation(self, value: Optional[pulumi.Input['AlertV2EvaluationArgs']]):
106
- pulumi.set(self, "evaluation", value)
107
-
108
145
  @_builtins.property
109
146
  @pulumi.getter(name="parentPath")
110
147
  def parent_path(self) -> Optional[pulumi.Input[_builtins.str]]:
@@ -118,23 +155,28 @@ class AlertV2Args:
118
155
  pulumi.set(self, "parent_path", value)
119
156
 
120
157
  @_builtins.property
121
- @pulumi.getter(name="queryText")
122
- def query_text(self) -> Optional[pulumi.Input[_builtins.str]]:
158
+ @pulumi.getter(name="runAs")
159
+ def run_as(self) -> Optional[pulumi.Input['AlertV2RunAsArgs']]:
123
160
  """
124
- Text of the query to be run
161
+ Specifies the identity that will be used to run the alert.
162
+ This field allows you to configure alerts to run as a specific user or service principal.
163
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
164
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
165
+ If not specified, the alert will run as the request user
125
166
  """
126
- return pulumi.get(self, "query_text")
167
+ return pulumi.get(self, "run_as")
127
168
 
128
- @query_text.setter
129
- def query_text(self, value: Optional[pulumi.Input[_builtins.str]]):
130
- pulumi.set(self, "query_text", value)
169
+ @run_as.setter
170
+ def run_as(self, value: Optional[pulumi.Input['AlertV2RunAsArgs']]):
171
+ pulumi.set(self, "run_as", value)
131
172
 
132
173
  @_builtins.property
133
174
  @pulumi.getter(name="runAsUserName")
134
175
  def run_as_user_name(self) -> Optional[pulumi.Input[_builtins.str]]:
135
176
  """
136
177
  The run as username or application ID of service principal.
137
- 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
178
+ 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.
179
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
138
180
  """
139
181
  return pulumi.get(self, "run_as_user_name")
140
182
 
@@ -142,27 +184,6 @@ class AlertV2Args:
142
184
  def run_as_user_name(self, value: Optional[pulumi.Input[_builtins.str]]):
143
185
  pulumi.set(self, "run_as_user_name", value)
144
186
 
145
- @_builtins.property
146
- @pulumi.getter
147
- def schedule(self) -> Optional[pulumi.Input['AlertV2ScheduleArgs']]:
148
- return pulumi.get(self, "schedule")
149
-
150
- @schedule.setter
151
- def schedule(self, value: Optional[pulumi.Input['AlertV2ScheduleArgs']]):
152
- pulumi.set(self, "schedule", value)
153
-
154
- @_builtins.property
155
- @pulumi.getter(name="warehouseId")
156
- def warehouse_id(self) -> Optional[pulumi.Input[_builtins.str]]:
157
- """
158
- ID of the SQL warehouse attached to the alert
159
- """
160
- return pulumi.get(self, "warehouse_id")
161
-
162
- @warehouse_id.setter
163
- def warehouse_id(self, value: Optional[pulumi.Input[_builtins.str]]):
164
- pulumi.set(self, "warehouse_id", value)
165
-
166
187
 
167
188
  @pulumi.input_type
168
189
  class _AlertV2State:
@@ -171,11 +192,13 @@ class _AlertV2State:
171
192
  custom_description: Optional[pulumi.Input[_builtins.str]] = None,
172
193
  custom_summary: Optional[pulumi.Input[_builtins.str]] = None,
173
194
  display_name: Optional[pulumi.Input[_builtins.str]] = None,
195
+ effective_run_as: Optional[pulumi.Input['AlertV2EffectiveRunAsArgs']] = None,
174
196
  evaluation: Optional[pulumi.Input['AlertV2EvaluationArgs']] = None,
175
197
  lifecycle_state: Optional[pulumi.Input[_builtins.str]] = None,
176
198
  owner_user_name: Optional[pulumi.Input[_builtins.str]] = None,
177
199
  parent_path: Optional[pulumi.Input[_builtins.str]] = None,
178
200
  query_text: Optional[pulumi.Input[_builtins.str]] = None,
201
+ run_as: Optional[pulumi.Input['AlertV2RunAsArgs']] = None,
179
202
  run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
180
203
  schedule: Optional[pulumi.Input['AlertV2ScheduleArgs']] = None,
181
204
  update_time: Optional[pulumi.Input[_builtins.str]] = None,
@@ -186,12 +209,21 @@ class _AlertV2State:
186
209
  :param pulumi.Input[_builtins.str] custom_description: Custom description for the alert. support mustache template
187
210
  :param pulumi.Input[_builtins.str] custom_summary: Custom summary for the alert. support mustache template
188
211
  :param pulumi.Input[_builtins.str] display_name: The display name of the alert
189
- :param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `TRASHED`
212
+ :param pulumi.Input['AlertV2EffectiveRunAsArgs'] effective_run_as: (AlertV2RunAs) - The actual identity that will be used to execute the alert.
213
+ This is an output-only field that shows the resolved run-as identity after applying
214
+ permissions and defaults
215
+ :param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
190
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
191
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
192
218
  :param pulumi.Input[_builtins.str] query_text: Text of the query to be run
219
+ :param pulumi.Input['AlertV2RunAsArgs'] run_as: Specifies the identity that will be used to run the alert.
220
+ This field allows you to configure alerts to run as a specific user or service principal.
221
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
222
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
223
+ If not specified, the alert will run as the request user
193
224
  :param pulumi.Input[_builtins.str] run_as_user_name: The run as username or application ID of service principal.
194
- 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
225
+ 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.
226
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
195
227
  :param pulumi.Input[_builtins.str] update_time: (string) - The timestamp indicating when the alert was updated
196
228
  :param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
197
229
  """
@@ -203,6 +235,8 @@ class _AlertV2State:
203
235
  pulumi.set(__self__, "custom_summary", custom_summary)
204
236
  if display_name is not None:
205
237
  pulumi.set(__self__, "display_name", display_name)
238
+ if effective_run_as is not None:
239
+ pulumi.set(__self__, "effective_run_as", effective_run_as)
206
240
  if evaluation is not None:
207
241
  pulumi.set(__self__, "evaluation", evaluation)
208
242
  if lifecycle_state is not None:
@@ -213,6 +247,8 @@ class _AlertV2State:
213
247
  pulumi.set(__self__, "parent_path", parent_path)
214
248
  if query_text is not None:
215
249
  pulumi.set(__self__, "query_text", query_text)
250
+ if run_as is not None:
251
+ pulumi.set(__self__, "run_as", run_as)
216
252
  if run_as_user_name is not None:
217
253
  pulumi.set(__self__, "run_as_user_name", run_as_user_name)
218
254
  if schedule is not None:
@@ -270,6 +306,20 @@ class _AlertV2State:
270
306
  def display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
271
307
  pulumi.set(self, "display_name", value)
272
308
 
309
+ @_builtins.property
310
+ @pulumi.getter(name="effectiveRunAs")
311
+ def effective_run_as(self) -> Optional[pulumi.Input['AlertV2EffectiveRunAsArgs']]:
312
+ """
313
+ (AlertV2RunAs) - The actual identity that will be used to execute the alert.
314
+ This is an output-only field that shows the resolved run-as identity after applying
315
+ permissions and defaults
316
+ """
317
+ return pulumi.get(self, "effective_run_as")
318
+
319
+ @effective_run_as.setter
320
+ def effective_run_as(self, value: Optional[pulumi.Input['AlertV2EffectiveRunAsArgs']]):
321
+ pulumi.set(self, "effective_run_as", value)
322
+
273
323
  @_builtins.property
274
324
  @pulumi.getter
275
325
  def evaluation(self) -> Optional[pulumi.Input['AlertV2EvaluationArgs']]:
@@ -283,7 +333,7 @@ class _AlertV2State:
283
333
  @pulumi.getter(name="lifecycleState")
284
334
  def lifecycle_state(self) -> Optional[pulumi.Input[_builtins.str]]:
285
335
  """
286
- (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `TRASHED`
336
+ (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
287
337
  """
288
338
  return pulumi.get(self, "lifecycle_state")
289
339
 
@@ -327,12 +377,29 @@ class _AlertV2State:
327
377
  def query_text(self, value: Optional[pulumi.Input[_builtins.str]]):
328
378
  pulumi.set(self, "query_text", value)
329
379
 
380
+ @_builtins.property
381
+ @pulumi.getter(name="runAs")
382
+ def run_as(self) -> Optional[pulumi.Input['AlertV2RunAsArgs']]:
383
+ """
384
+ Specifies the identity that will be used to run the alert.
385
+ This field allows you to configure alerts to run as a specific user or service principal.
386
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
387
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
388
+ If not specified, the alert will run as the request user
389
+ """
390
+ return pulumi.get(self, "run_as")
391
+
392
+ @run_as.setter
393
+ def run_as(self, value: Optional[pulumi.Input['AlertV2RunAsArgs']]):
394
+ pulumi.set(self, "run_as", value)
395
+
330
396
  @_builtins.property
331
397
  @pulumi.getter(name="runAsUserName")
332
398
  def run_as_user_name(self) -> Optional[pulumi.Input[_builtins.str]]:
333
399
  """
334
400
  The run as username or application ID of service principal.
335
- 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
401
+ 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.
402
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
336
403
  """
337
404
  return pulumi.get(self, "run_as_user_name")
338
405
 
@@ -386,17 +453,23 @@ class AlertV2(pulumi.CustomResource):
386
453
  evaluation: Optional[pulumi.Input[Union['AlertV2EvaluationArgs', 'AlertV2EvaluationArgsDict']]] = None,
387
454
  parent_path: Optional[pulumi.Input[_builtins.str]] = None,
388
455
  query_text: Optional[pulumi.Input[_builtins.str]] = None,
456
+ run_as: Optional[pulumi.Input[Union['AlertV2RunAsArgs', 'AlertV2RunAsArgsDict']]] = None,
389
457
  run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
390
458
  schedule: Optional[pulumi.Input[Union['AlertV2ScheduleArgs', 'AlertV2ScheduleArgsDict']]] = None,
391
459
  warehouse_id: Optional[pulumi.Input[_builtins.str]] = None,
392
460
  __props__=None):
393
461
  """
462
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
463
+
394
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.
395
465
 
396
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.
397
467
 
398
468
  ## Example Usage
399
469
 
470
+ ### Basic Alert Example
471
+ This example creates a basic alert that monitors a query and sends notifications to a user when the value exceeds a threshold:
472
+
400
473
  ## Import
401
474
 
402
475
  As of Pulumi v1.5, resources can be imported through configuration.
@@ -405,7 +478,7 @@ class AlertV2(pulumi.CustomResource):
405
478
 
406
479
  import {
407
480
 
408
- id = id
481
+ id = "id"
409
482
 
410
483
  to = databricks_alert_v2.this
411
484
 
@@ -414,7 +487,7 @@ class AlertV2(pulumi.CustomResource):
414
487
  If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
415
488
 
416
489
  ```sh
417
- $ pulumi import databricks:index/alertV2:AlertV2 databricks_alert_v2 id
490
+ $ pulumi import databricks:index/alertV2:AlertV2 this "id"
418
491
  ```
419
492
 
420
493
  :param str resource_name: The name of the resource.
@@ -424,23 +497,34 @@ class AlertV2(pulumi.CustomResource):
424
497
  :param pulumi.Input[_builtins.str] display_name: The display name of the alert
425
498
  :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
426
499
  :param pulumi.Input[_builtins.str] query_text: Text of the query to be run
500
+ :param pulumi.Input[Union['AlertV2RunAsArgs', 'AlertV2RunAsArgsDict']] run_as: Specifies the identity that will be used to run the alert.
501
+ This field allows you to configure alerts to run as a specific user or service principal.
502
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
503
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
504
+ If not specified, the alert will run as the request user
427
505
  :param pulumi.Input[_builtins.str] run_as_user_name: The run as username or application ID of service principal.
428
- 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
506
+ 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.
507
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
429
508
  :param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
430
509
  """
431
510
  ...
432
511
  @overload
433
512
  def __init__(__self__,
434
513
  resource_name: str,
435
- args: Optional[AlertV2Args] = None,
514
+ args: AlertV2Args,
436
515
  opts: Optional[pulumi.ResourceOptions] = None):
437
516
  """
517
+ [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
518
+
438
519
  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.
439
520
 
440
521
  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.
441
522
 
442
523
  ## Example Usage
443
524
 
525
+ ### Basic Alert Example
526
+ This example creates a basic alert that monitors a query and sends notifications to a user when the value exceeds a threshold:
527
+
444
528
  ## Import
445
529
 
446
530
  As of Pulumi v1.5, resources can be imported through configuration.
@@ -449,7 +533,7 @@ class AlertV2(pulumi.CustomResource):
449
533
 
450
534
  import {
451
535
 
452
- id = id
536
+ id = "id"
453
537
 
454
538
  to = databricks_alert_v2.this
455
539
 
@@ -458,7 +542,7 @@ class AlertV2(pulumi.CustomResource):
458
542
  If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
459
543
 
460
544
  ```sh
461
- $ pulumi import databricks:index/alertV2:AlertV2 databricks_alert_v2 id
545
+ $ pulumi import databricks:index/alertV2:AlertV2 this "id"
462
546
  ```
463
547
 
464
548
  :param str resource_name: The name of the resource.
@@ -482,6 +566,7 @@ class AlertV2(pulumi.CustomResource):
482
566
  evaluation: Optional[pulumi.Input[Union['AlertV2EvaluationArgs', 'AlertV2EvaluationArgsDict']]] = None,
483
567
  parent_path: Optional[pulumi.Input[_builtins.str]] = None,
484
568
  query_text: Optional[pulumi.Input[_builtins.str]] = None,
569
+ run_as: Optional[pulumi.Input[Union['AlertV2RunAsArgs', 'AlertV2RunAsArgsDict']]] = None,
485
570
  run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
486
571
  schedule: Optional[pulumi.Input[Union['AlertV2ScheduleArgs', 'AlertV2ScheduleArgsDict']]] = None,
487
572
  warehouse_id: Optional[pulumi.Input[_builtins.str]] = None,
@@ -496,14 +581,26 @@ class AlertV2(pulumi.CustomResource):
496
581
 
497
582
  __props__.__dict__["custom_description"] = custom_description
498
583
  __props__.__dict__["custom_summary"] = custom_summary
584
+ if display_name is None and not opts.urn:
585
+ raise TypeError("Missing required property 'display_name'")
499
586
  __props__.__dict__["display_name"] = display_name
587
+ if evaluation is None and not opts.urn:
588
+ raise TypeError("Missing required property 'evaluation'")
500
589
  __props__.__dict__["evaluation"] = evaluation
501
590
  __props__.__dict__["parent_path"] = parent_path
591
+ if query_text is None and not opts.urn:
592
+ raise TypeError("Missing required property 'query_text'")
502
593
  __props__.__dict__["query_text"] = query_text
594
+ __props__.__dict__["run_as"] = run_as
503
595
  __props__.__dict__["run_as_user_name"] = run_as_user_name
596
+ if schedule is None and not opts.urn:
597
+ raise TypeError("Missing required property 'schedule'")
504
598
  __props__.__dict__["schedule"] = schedule
599
+ if warehouse_id is None and not opts.urn:
600
+ raise TypeError("Missing required property 'warehouse_id'")
505
601
  __props__.__dict__["warehouse_id"] = warehouse_id
506
602
  __props__.__dict__["create_time"] = None
603
+ __props__.__dict__["effective_run_as"] = None
507
604
  __props__.__dict__["lifecycle_state"] = None
508
605
  __props__.__dict__["owner_user_name"] = None
509
606
  __props__.__dict__["update_time"] = None
@@ -521,11 +618,13 @@ class AlertV2(pulumi.CustomResource):
521
618
  custom_description: Optional[pulumi.Input[_builtins.str]] = None,
522
619
  custom_summary: Optional[pulumi.Input[_builtins.str]] = None,
523
620
  display_name: Optional[pulumi.Input[_builtins.str]] = None,
621
+ effective_run_as: Optional[pulumi.Input[Union['AlertV2EffectiveRunAsArgs', 'AlertV2EffectiveRunAsArgsDict']]] = None,
524
622
  evaluation: Optional[pulumi.Input[Union['AlertV2EvaluationArgs', 'AlertV2EvaluationArgsDict']]] = None,
525
623
  lifecycle_state: Optional[pulumi.Input[_builtins.str]] = None,
526
624
  owner_user_name: Optional[pulumi.Input[_builtins.str]] = None,
527
625
  parent_path: Optional[pulumi.Input[_builtins.str]] = None,
528
626
  query_text: Optional[pulumi.Input[_builtins.str]] = None,
627
+ run_as: Optional[pulumi.Input[Union['AlertV2RunAsArgs', 'AlertV2RunAsArgsDict']]] = None,
529
628
  run_as_user_name: Optional[pulumi.Input[_builtins.str]] = None,
530
629
  schedule: Optional[pulumi.Input[Union['AlertV2ScheduleArgs', 'AlertV2ScheduleArgsDict']]] = None,
531
630
  update_time: Optional[pulumi.Input[_builtins.str]] = None,
@@ -541,12 +640,21 @@ class AlertV2(pulumi.CustomResource):
541
640
  :param pulumi.Input[_builtins.str] custom_description: Custom description for the alert. support mustache template
542
641
  :param pulumi.Input[_builtins.str] custom_summary: Custom summary for the alert. support mustache template
543
642
  :param pulumi.Input[_builtins.str] display_name: The display name of the alert
544
- :param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `TRASHED`
643
+ :param pulumi.Input[Union['AlertV2EffectiveRunAsArgs', 'AlertV2EffectiveRunAsArgsDict']] effective_run_as: (AlertV2RunAs) - The actual identity that will be used to execute the alert.
644
+ This is an output-only field that shows the resolved run-as identity after applying
645
+ permissions and defaults
646
+ :param pulumi.Input[_builtins.str] lifecycle_state: (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
545
647
  :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
546
648
  :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
547
649
  :param pulumi.Input[_builtins.str] query_text: Text of the query to be run
650
+ :param pulumi.Input[Union['AlertV2RunAsArgs', 'AlertV2RunAsArgsDict']] run_as: Specifies the identity that will be used to run the alert.
651
+ This field allows you to configure alerts to run as a specific user or service principal.
652
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
653
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
654
+ If not specified, the alert will run as the request user
548
655
  :param pulumi.Input[_builtins.str] run_as_user_name: The run as username or application ID of service principal.
549
- 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
656
+ 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.
657
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
550
658
  :param pulumi.Input[_builtins.str] update_time: (string) - The timestamp indicating when the alert was updated
551
659
  :param pulumi.Input[_builtins.str] warehouse_id: ID of the SQL warehouse attached to the alert
552
660
  """
@@ -558,11 +666,13 @@ class AlertV2(pulumi.CustomResource):
558
666
  __props__.__dict__["custom_description"] = custom_description
559
667
  __props__.__dict__["custom_summary"] = custom_summary
560
668
  __props__.__dict__["display_name"] = display_name
669
+ __props__.__dict__["effective_run_as"] = effective_run_as
561
670
  __props__.__dict__["evaluation"] = evaluation
562
671
  __props__.__dict__["lifecycle_state"] = lifecycle_state
563
672
  __props__.__dict__["owner_user_name"] = owner_user_name
564
673
  __props__.__dict__["parent_path"] = parent_path
565
674
  __props__.__dict__["query_text"] = query_text
675
+ __props__.__dict__["run_as"] = run_as
566
676
  __props__.__dict__["run_as_user_name"] = run_as_user_name
567
677
  __props__.__dict__["schedule"] = schedule
568
678
  __props__.__dict__["update_time"] = update_time
@@ -595,22 +705,32 @@ class AlertV2(pulumi.CustomResource):
595
705
 
596
706
  @_builtins.property
597
707
  @pulumi.getter(name="displayName")
598
- def display_name(self) -> pulumi.Output[Optional[_builtins.str]]:
708
+ def display_name(self) -> pulumi.Output[_builtins.str]:
599
709
  """
600
710
  The display name of the alert
601
711
  """
602
712
  return pulumi.get(self, "display_name")
603
713
 
714
+ @_builtins.property
715
+ @pulumi.getter(name="effectiveRunAs")
716
+ def effective_run_as(self) -> pulumi.Output['outputs.AlertV2EffectiveRunAs']:
717
+ """
718
+ (AlertV2RunAs) - The actual identity that will be used to execute the alert.
719
+ This is an output-only field that shows the resolved run-as identity after applying
720
+ permissions and defaults
721
+ """
722
+ return pulumi.get(self, "effective_run_as")
723
+
604
724
  @_builtins.property
605
725
  @pulumi.getter
606
- def evaluation(self) -> pulumi.Output[Optional['outputs.AlertV2Evaluation']]:
726
+ def evaluation(self) -> pulumi.Output['outputs.AlertV2Evaluation']:
607
727
  return pulumi.get(self, "evaluation")
608
728
 
609
729
  @_builtins.property
610
730
  @pulumi.getter(name="lifecycleState")
611
731
  def lifecycle_state(self) -> pulumi.Output[_builtins.str]:
612
732
  """
613
- (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `TRASHED`
733
+ (string) - Indicates whether the query is trashed. Possible values are: `ACTIVE`, `DELETED`
614
734
  """
615
735
  return pulumi.get(self, "lifecycle_state")
616
736
 
@@ -632,24 +752,37 @@ class AlertV2(pulumi.CustomResource):
632
752
 
633
753
  @_builtins.property
634
754
  @pulumi.getter(name="queryText")
635
- def query_text(self) -> pulumi.Output[Optional[_builtins.str]]:
755
+ def query_text(self) -> pulumi.Output[_builtins.str]:
636
756
  """
637
757
  Text of the query to be run
638
758
  """
639
759
  return pulumi.get(self, "query_text")
640
760
 
761
+ @_builtins.property
762
+ @pulumi.getter(name="runAs")
763
+ def run_as(self) -> pulumi.Output[Optional['outputs.AlertV2RunAs']]:
764
+ """
765
+ Specifies the identity that will be used to run the alert.
766
+ This field allows you to configure alerts to run as a specific user or service principal.
767
+ - For user identity: Set `user_name` to the email of an active workspace user. Users can only set this to their own email.
768
+ - For service principal: Set `service_principal_name` to the application ID. Requires the `servicePrincipal/user` role.
769
+ If not specified, the alert will run as the request user
770
+ """
771
+ return pulumi.get(self, "run_as")
772
+
641
773
  @_builtins.property
642
774
  @pulumi.getter(name="runAsUserName")
643
775
  def run_as_user_name(self) -> pulumi.Output[Optional[_builtins.str]]:
644
776
  """
645
777
  The run as username or application ID of service principal.
646
- 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
778
+ 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.
779
+ Deprecated: Use `run_as` field instead. This field will be removed in a future release
647
780
  """
648
781
  return pulumi.get(self, "run_as_user_name")
649
782
 
650
783
  @_builtins.property
651
784
  @pulumi.getter
652
- def schedule(self) -> pulumi.Output[Optional['outputs.AlertV2Schedule']]:
785
+ def schedule(self) -> pulumi.Output['outputs.AlertV2Schedule']:
653
786
  return pulumi.get(self, "schedule")
654
787
 
655
788
  @_builtins.property
@@ -662,7 +795,7 @@ class AlertV2(pulumi.CustomResource):
662
795
 
663
796
  @_builtins.property
664
797
  @pulumi.getter(name="warehouseId")
665
- def warehouse_id(self) -> pulumi.Output[Optional[_builtins.str]]:
798
+ def warehouse_id(self) -> pulumi.Output[_builtins.str]:
666
799
  """
667
800
  ID of the SQL warehouse attached to the alert
668
801
  """