-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathannotations.yml
More file actions
2218 lines (2169 loc) · 90.7 KB
/
Copy pathannotations.yml
File metadata and controls
2218 lines (2169 loc) · 90.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file contains the documentation the CLI owns for the bundle
# configuration JSON schema: docs for fields that do not exist in the upstream
# API spec (.codegen/cli.json), and overrides of upstream docs. Documentation
# for everything else is inherited from cli.json at generation time and must
# not be duplicated here.
#
# The structure mirrors the bundle configuration tree. The "$type" and
# "$fields" keys are structural; every other key is a config field name.
# - A node documents one field: its inline keys (description,
# markdown_description, ...) apply to the field itself.
# - "$type" documents the type the field's value resolves to — for map and
# sequence fields, each entry. These docs are shared by every occurrence
# of the type; enum values also live here.
# - "$fields" holds the nodes of that type's fields (map and sequence levels
# are unwrapped implicitly).
# - Each type is expanded exactly once, at its first occurrence; fields of
# types that occur again later (for example everything under "targets")
# are documented at that first occurrence.
# - "description: PLACEHOLDER" marks fields that have no documentation yet.
#
# Running "task generate-schema" keeps this file in sync with the
# configuration structure: it adds placeholders for new undocumented fields
# and drops entries for fields that no longer exist.
artifacts:
"description": |-
Defines the attributes to build an artifact
"markdown_description": |-
Defines the attributes to build artifacts, where each key is the name of the artifact, and the value is a Map that defines the artifact build settings. For information about the `artifacts` mapping, see [\_](/dev-tools/bundles/settings.md#artifacts).
Artifact settings defined in the top level of the bundle configuration can be overridden in the `targets` mapping. See [\_](/dev-tools/bundles/artifact-overrides.md).
"markdown_examples": |-
```yaml
artifacts:
default:
type: whl
build: poetry build
path: .
```
"$fields":
"build":
"description": |-
An optional set of build commands to run locally before deployment.
"dynamic_version":
"description": |-
Whether to patch the wheel version dynamically based on the timestamp of the whl file. If this is set to `true`, new code can be deployed without having to update the version in `setup.py` or `pyproject.toml`. This setting is only valid when `type` is set to `whl`. See [\_](/dev-tools/bundles/settings.md#bundle-syntax-mappings-artifacts).
"executable":
"description": |-
The executable type. Valid values are `bash`, `sh`, and `cmd`.
"files":
"description": |-
The relative or absolute path to the built artifact files.
"$fields":
"source":
"description": |-
Required. The artifact source file.
"path":
"description": |-
The local path of the directory for the artifact.
"type":
"description": |-
Required if the artifact is a Python wheel. The type of the artifact. Valid values are `whl` and `jar`.
"markdown_description": |-
Required if the artifact is a Python wheel. The type of the artifact. Valid values are `whl` and `jar`.
bundle:
"description": |-
The bundle attributes when deploying to this target.
"markdown_description": |-
The bundle attributes when deploying to this target,
"$fields":
"cluster_id":
"description": |-
The ID of a cluster to use to run the bundle.
"markdown_description": |-
The ID of a cluster to use to run the bundle. See [\_](/dev-tools/bundles/settings.md#cluster_id).
"compute_id":
"description": |-
Deprecated. The ID of the compute to use to run the bundle.
"databricks_cli_version":
"description": |-
The Databricks CLI version to use for the bundle.
"markdown_description": |-
The Databricks CLI version to use for the bundle. See [\_](/dev-tools/bundles/settings.md#databricks_cli_version).
"deployment":
"description": |-
The definition of the bundle deployment
"markdown_description": |-
The definition of the bundle deployment. For supported attributes see [\_](/dev-tools/bundles/deployment-modes.md).
"$fields":
"fail_on_active_runs":
"description": |-
Whether to fail on active runs. If this is set to true a deployment that is running can be interrupted.
"lock":
"description": |-
The deployment lock attributes.
"$fields":
"enabled":
"description": |-
Whether this lock is enabled.
"force":
"description": |-
Whether to force this lock if it is enabled.
"engine":
"description": |-
The deployment engine to use. Valid values are `terraform` and `direct`. Takes priority over `DATABRICKS_BUNDLE_ENGINE` environment variable. Default is "terraform".
"$type":
"enum":
- |-
terraform
- |-
direct
"git":
"description": |-
The Git version control details that are associated with your bundle.
"markdown_description": |-
The Git version control details that are associated with your bundle. For supported attributes see [\_](/dev-tools/bundles/settings.md#git).
"$fields":
"branch":
"description": |-
The Git branch name.
"markdown_description": |-
The Git branch name. See [\_](/dev-tools/bundles/settings.md#git).
"origin_url":
"description": |-
The origin URL of the repository.
"markdown_description": |-
The origin URL of the repository. See [\_](/dev-tools/bundles/settings.md#git).
"name":
"description": |-
The name of the bundle.
"uuid":
"description": |-
Reserved. A Universally Unique Identifier (UUID) for the bundle that uniquely identifies the bundle in internal Databricks systems. This is generated when a bundle project is initialized using a Databricks template (using the `databricks bundle init` command).
environments:
"description": |-
PLACEHOLDER
"deprecation_message": |-
Deprecated: please use targets instead
experimental:
"description": |-
Defines attributes for experimental features.
"$fields":
"immutable_folder":
"description": |-
Whether to deploy bundle files and artifacts as a single immutable snapshot. When true, all files are packaged into a content-addressed archive and workspace.file_path and workspace.artifact_path are set to the resulting location.
"pydabs":
"description": |-
The PyDABs configuration.
"deprecation_message": |-
Deprecated: please use python instead
"$fields":
"enabled":
"description": |-
Whether or not PyDABs (Private Preview) is enabled
"python":
"description": |-
Configures loading of Python code defined with 'databricks-bundles' package.
"$fields":
"mutators":
"description": |-
Mutators contains a list of fully qualified function paths to mutator functions.
Example: ["my_project.mutators:add_default_cluster"]
"resources":
"description": |-
Resources contains a list of fully qualified function paths to load resources
defined in Python code.
Example: ["my_project.resources:load_resources"]
"venv_path":
"description": |-
VEnvPath is path to the virtual environment.
If enabled, Python code will execute within this environment. If disabled,
it defaults to using the Python interpreter available in the current shell.
"python_wheel_wrapper":
"description": |-
Whether to use a Python wheel wrapper.
"record_deployment_history":
"description": |-
Whether to record deployment history using the deployment metadata service (DMS), which tracks what changed across deployments.
"scripts":
"description": |-
The commands to run.
"skip_artifact_cleanup":
"description": |-
Determines whether to skip cleaning up the .internal folder
"skip_name_prefix_for_schema":
"description": |-
Skip adding the prefix that is either set in `presets.name_prefix` or computed when `mode: development`
is set, to the names of UC schemas defined in the bundle.
"use_legacy_run_as":
"description": |-
Whether to use the legacy run_as behavior.
include:
"description": |-
Specifies a list of path globs that contain configuration files to include within the bundle.
"markdown_description": |-
Specifies a list of path globs that contain configuration files to include within the bundle. See [\_](/dev-tools/bundles/settings.md#include).
permissions:
"description": |-
Defines a permission for a specific entity.
"markdown_description": |-
A Sequence that defines the permissions to apply to experiments, jobs, pipelines, and models defined in the bundle, where each item in the sequence is a permission for a specific entity.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
presets:
"description": |-
Defines bundle deployment presets.
"markdown_description": |-
Defines bundle deployment presets. See [\_](/dev-tools/bundles/deployment-modes.md#presets).
python:
"description": |-
PLACEHOLDER
resources:
"description": |-
A Map that defines the resources for the bundle, where each key is the name of the resource, and the value is a Map that defines the resource.
"markdown_description": |-
A Map that defines the resources for the bundle, where each key is the name of the resource, and the value is a Map that defines the resource. For more information about Declarative Automation Bundles supported resources, and resource definition reference, see [\_](/dev-tools/bundles/resources.md).
```yaml
resources:
<resource-type>:
<resource-name>:
<resource-field-name>: <resource-field-value>
```
"$fields":
"alerts":
"description": |-
PLACEHOLDER
"$fields":
"evaluation":
"description": |-
PLACEHOLDER
"$fields":
"notification":
"$fields":
"subscriptions":
"description": |-
PLACEHOLDER
"$fields":
"destination_id":
"description": |-
PLACEHOLDER
"user_email":
"description": |-
PLACEHOLDER
"source":
"$fields":
"display":
"description": |-
PLACEHOLDER
"name":
"description": |-
PLACEHOLDER
"threshold":
"$fields":
"column":
"description": |-
PLACEHOLDER
"value":
"description": |-
PLACEHOLDER
"$fields":
"bool_value":
"description": |-
PLACEHOLDER
"double_value":
"description": |-
PLACEHOLDER
"string_value":
"description": |-
PLACEHOLDER
"file_path":
"description": |-
PLACEHOLDER
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
"schedule":
"description": |-
PLACEHOLDER
"apps":
"description": |-
The app resource defines a Databricks app.
"markdown_description": |-
The app resource defines a [Databricks app](/api/workspace/apps/create). For information about Databricks Apps, see [\_](/dev-tools/databricks-apps/index.md).
"$fields":
"app_status":
"description": |-
PLACEHOLDER
"budget_policy_id":
"description": |-
PLACEHOLDER
"compute_size":
"description": |-
PLACEHOLDER
"compute_status":
"description": |-
PLACEHOLDER
"config":
"description": |-
PLACEHOLDER
"$fields":
"command":
"description": |-
PLACEHOLDER
"env":
"description": |-
PLACEHOLDER
"$fields":
"name":
"description": |-
PLACEHOLDER
"value":
"description": |-
PLACEHOLDER
"value_from":
"description": |-
PLACEHOLDER
"effective_budget_policy_id":
"description": |-
PLACEHOLDER
"effective_usage_policy_id":
"description": |-
PLACEHOLDER
"git_source":
"description": |-
Git source configuration for app deployments. Specifies which git reference (branch, tag, or commit)
to use when deploying the app. Used in conjunction with git_repository to deploy code directly from git.
The source_code_path within git_source specifies the relative path to the app code within the repository.
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"oauth2_app_client_id":
"description": |-
PLACEHOLDER
"oauth2_app_integration_id":
"description": |-
PLACEHOLDER
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
"$fields":
"group_name":
"description": |-
The name of the group granted the permission level.
"level":
"description": |-
The permission level to apply. The allowed levels depend on the resource type.
"service_principal_name":
"description": |-
The name of the service principal granted the permission level.
"user_name":
"description": |-
The name of the user granted the permission level.
"resources":
"$fields":
"app":
"description": |-
PLACEHOLDER
"$fields":
"name":
"description": |-
PLACEHOLDER
"permission":
"description": |-
PLACEHOLDER
"database":
"description": |-
PLACEHOLDER
"$fields":
"database_name":
"description": |-
PLACEHOLDER
"instance_name":
"description": |-
PLACEHOLDER
"permission":
"description": |-
PLACEHOLDER
"experiment":
"description": |-
PLACEHOLDER
"$fields":
"experiment_id":
"description": |-
PLACEHOLDER
"permission":
"description": |-
PLACEHOLDER
"genie_space":
"description": |-
PLACEHOLDER
"$fields":
"name":
"description": |-
PLACEHOLDER
"permission":
"description": |-
PLACEHOLDER
"space_id":
"description": |-
PLACEHOLDER
"job":
"description": |-
PLACEHOLDER
"postgres":
"description": |-
PLACEHOLDER
"$fields":
"branch":
"description": |-
PLACEHOLDER
"database":
"description": |-
PLACEHOLDER
"permission":
"description": |-
PLACEHOLDER
"secret":
"description": |-
PLACEHOLDER
"serving_endpoint":
"description": |-
PLACEHOLDER
"sql_warehouse":
"description": |-
PLACEHOLDER
"uc_securable":
"description": |-
PLACEHOLDER
"$fields":
"permission":
"description": |-
PLACEHOLDER
"securable_full_name":
"description": |-
PLACEHOLDER
"securable_type":
"description": |-
PLACEHOLDER
"service_principal_client_id":
"description": |-
PLACEHOLDER
"service_principal_id":
"description": |-
PLACEHOLDER
"service_principal_name":
"description": |-
PLACEHOLDER
"source_code_path":
"description": |-
PLACEHOLDER
"telemetry_export_destinations":
"description": |-
PLACEHOLDER
"usage_policy_id":
"description": |-
PLACEHOLDER
"user_api_scopes":
"description": |-
PLACEHOLDER
"catalogs":
"description": |-
PLACEHOLDER
"$fields":
"grants":
"description": |-
The Unity Catalog privileges to grant to principals on this securable.
"markdown_description": |-
A Sequence of Unity Catalog privilege grants on this securable, where each item grants a set of `privileges` to a `principal` (a user, group, or service principal).
See [\_](/data-governance/unity-catalog/manage-privileges/index.md).
"markdown_examples": |-
```yaml
grants:
- principal: account users
privileges:
- SELECT
- principal: data-engineers
privileges:
- ALL_PRIVILEGES
```
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"managed_encryption_settings":
"$fields":
"azure_encryption_settings":
"$fields":
"azure_cmk_access_connector_id":
"description": |-
PLACEHOLDER
"azure_cmk_managed_identity_id":
"description": |-
PLACEHOLDER
"azure_tenant_id":
"description": |-
PLACEHOLDER
"clusters":
"description": |-
The cluster definitions for the bundle, where each key is the name of a cluster.
"markdown_description": |-
The cluster definitions for the bundle, where each key is the name of a cluster. See [\_](/dev-tools/bundles/resources.md#clusters).
"$type":
"markdown_description": |-
The cluster resource defines an [all-purpose cluster](/api/workspace/clusters/create).
"markdown_examples": |-
The following example creates a cluster named `my_cluster` and sets that as the cluster to use to run the notebook in `my_job`:
```yaml
bundle:
name: clusters
resources:
clusters:
my_cluster:
num_workers: 2
node_type_id: "i3.xlarge"
autoscale:
min_workers: 2
max_workers: 7
spark_version: "13.3.x-scala2.12"
spark_conf:
"spark.executor.memory": "2g"
jobs:
my_job:
tasks:
- task_key: test_task
notebook_task:
notebook_path: "./src/my_notebook.py"
```
"$fields":
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"$fields":
"prevent_destroy":
"description": |-
Lifecycle setting to prevent the resource from being destroyed.
"started":
"description": |-
Lifecycle setting to deploy the resource in started mode. Only supported for apps, clusters, and sql_warehouses in direct deployment mode.
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
"$fields":
"group_name":
"description": |-
The name of the group granted the permission level.
"level":
"description": |-
The permission level to apply. The allowed levels depend on the resource type.
"service_principal_name":
"description": |-
The name of the service principal granted the permission level.
"user_name":
"description": |-
The name of the user granted the permission level.
"dashboards":
"description": |-
The dashboard definitions for the bundle, where each key is the name of the dashboard.
"markdown_description": |-
The dashboard definitions for the bundle, where each key is the name of the dashboard. See [\_](/dev-tools/bundles/resources.md#dashboards).
"$type":
"markdown_description": |-
The dashboard resource allows you to manage [AI/BI dashboards](/api/workspace/lakeview/create) in a bundle. For information about AI/BI dashboards, see [_](/dashboards/index.md).
"markdown_examples": |-
The following example includes and deploys the sample __NYC Taxi Trip Analysis__ dashboard to the Databricks workspace.
``` yaml
resources:
dashboards:
nyc_taxi_trip_analysis:
display_name: "NYC Taxi Trip Analysis"
file_path: ../src/nyc_taxi_trip_analysis.lvdash.json
warehouse_id: ${var.warehouse_id}
```
If you use the UI to modify the dashboard, modifications made through the UI are not applied to the dashboard JSON file in the local bundle unless you explicitly update it using `bundle generate`. You can use the `--watch` option to continuously poll and retrieve changes to the dashboard. See [_](/dev-tools/cli/bundle-commands.md#generate).
In addition, if you attempt to deploy a bundle that contains a dashboard JSON file that is different than the one in the remote workspace, an error will occur. To force the deploy and overwrite the dashboard in the remote workspace with the local one, use the `--force` option. See [_](/dev-tools/cli/bundle-commands.md#deploy).
"$fields":
"create_time":
"description": |-
The timestamp of when the dashboard was created.
"dashboard_id":
"description": |-
UUID identifying the dashboard.
"dataset_catalog":
"description": |-
Sets the default catalog for all datasets in this dashboard. When set, this overrides the catalog specified in individual dataset definitions.
"dataset_schema":
"description": |-
Sets the default schema for all datasets in this dashboard. When set, this overrides the schema specified in individual dataset definitions.
"display_name":
"description": |-
The display name of the dashboard.
"embed_credentials":
"description": |-
PLACEHOLDER
"etag":
"description": |-
The etag for the dashboard. Can be optionally provided on updates to ensure that the dashboard
has not been modified since the last read.
This field is excluded in List Dashboards responses.
"file_path":
"description": |-
PLACEHOLDER
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"lifecycle_state":
"description": |-
The state of the dashboard resource. Used for tracking trashed status.
"parent_path":
"description": |-
The workspace path of the folder containing the dashboard. Includes leading slash and no
trailing slash.
This field is excluded in List Dashboards responses.
"path":
"description": |-
The workspace path of the dashboard asset, including the file name.
Exported dashboards always have the file extension `.lvdash.json`.
This field is excluded in List Dashboards responses.
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
"$fields":
"group_name":
"description": |-
The name of the group granted the permission level.
"level":
"description": |-
The permission level to apply. The allowed levels depend on the resource type.
"service_principal_name":
"description": |-
The name of the service principal granted the permission level.
"user_name":
"description": |-
The name of the user granted the permission level.
"serialized_dashboard":
"description": |-
The contents of the dashboard in serialized string form.
This field is excluded in List Dashboards responses.
Use the [get dashboard API](https://docs.databricks.com/api/workspace/lakeview/get)
to retrieve an example response, which includes the `serialized_dashboard` field.
This field provides the structure of the JSON string that represents the dashboard's
layout and components.
"update_time":
"description": |-
The timestamp of when the dashboard was last updated by the user.
This field is excluded in List Dashboards responses.
"warehouse_id":
"description": |-
The warehouse ID used to run the dashboard.
"database_catalogs":
"description": |-
PLACEHOLDER
"$fields":
"create_database_if_not_exists":
"description": |-
PLACEHOLDER
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"uid":
"description": |-
PLACEHOLDER
"database_instances":
"description": |-
PLACEHOLDER
"$fields":
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
"experiments":
"description": |-
The experiment definitions for the bundle, where each key is the name of the experiment.
"markdown_description": |-
The experiment definitions for the bundle, where each key is the name of the experiment. See [\_](/dev-tools/bundles/resources.md#experiments).
"$type":
"markdown_description": |-
The experiment resource allows you to define [MLflow experiments](/api/workspace/experiments/createexperiment) in a bundle. For information about MLflow experiments, see [_](/mlflow/experiments.md).
"markdown_examples": |-
The following example defines an experiment that all users can view:
```yaml
resources:
experiments:
experiment:
name: my_ml_experiment
permissions:
- level: CAN_READ
group_name: users
description: MLflow experiment used to track runs
```
"$fields":
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
"$fields":
"group_name":
"description": |-
The name of the group granted the permission level.
"level":
"description": |-
The permission level to apply. The allowed levels depend on the resource type.
"service_principal_name":
"description": |-
The name of the service principal granted the permission level.
"user_name":
"description": |-
The name of the user granted the permission level.
"external_locations":
"description": |-
PLACEHOLDER
"$fields":
"effective_file_event_queue":
"$fields":
"managed_aqs":
"description": |-
PLACEHOLDER
"managed_pubsub":
"description": |-
PLACEHOLDER
"managed_sqs":
"description": |-
PLACEHOLDER
"provided_aqs":
"description": |-
PLACEHOLDER
"provided_pubsub":
"description": |-
PLACEHOLDER
"provided_sqs":
"description": |-
PLACEHOLDER
"encryption_details":
"$fields":
"sse_encryption_details":
"$fields":
"algorithm":
"$type":
"description": |-
SSE algorithm to use for encrypting S3 objects
"enum":
- |-
AWS_SSE_KMS
- |-
AWS_SSE_S3
"grants":
"description": |-
The Unity Catalog privileges to grant to principals on this securable.
"markdown_description": |-
A Sequence of Unity Catalog privilege grants on this securable, where each item grants a set of `privileges` to a `principal` (a user, group, or service principal).
See [\_](/data-governance/unity-catalog/manage-privileges/index.md).
"markdown_examples": |-
```yaml
grants:
- principal: account users
privileges:
- SELECT
- principal: data-engineers
privileges:
- ALL_PRIVILEGES
```
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"genie_spaces":
"description": |-
PLACEHOLDER
"$fields":
"description":
"description": |-
Description of the Genie space shown alongside the title in the Databricks UI.
"etag":
"description": |-
PLACEHOLDER
"file_path":
"description": |-
Local path to a `.geniespace.json` file holding the serialized Genie space definition. The contents are inlined into `serialized_space` at deploy time. Mutually exclusive with an inline `serialized_space`.
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"parent_path":
"description": |-
Workspace folder under which to create the Genie space. Immutable: changing this field recreates the resource.
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com
- level: CAN_RUN
service_principal_name: 123456-abcdef
```
"serialized_space":
"description": |-
Serialized Genie space body. May be provided inline as a JSON string (or YAML that will be marshalled to JSON) or referenced via `file_path`. To round-trip an existing space into a bundle, use `databricks bundle generate genie-space`.
"title":
"description": |-
Title of the Genie space shown in the Databricks UI.
"warehouse_id":
"description": |-
ID of the SQL warehouse used to run queries for this Genie space.
"jobs":
"description": |-
The job definitions for the bundle, where each key is the name of the job.
"markdown_description": |-
The job definitions for the bundle, where each key is the name of the job. See [\_](/dev-tools/bundles/resources.md#jobs).
"$type":
"markdown_description": |-
The job resource allows you to define [jobs and their corresponding tasks](/api/workspace/jobs/create) in your bundle. For information about jobs, see [_](/jobs/index.md). For a tutorial that uses a Declarative Automation Bundles template to create a job, see [_](/dev-tools/bundles/jobs-tutorial.md).
"markdown_examples": |-
The following example defines a job with the resource key `hello-job` with one notebook task:
```yaml
resources:
jobs:
hello-job:
name: hello-job
tasks:
- task_key: hello-task
notebook_task:
notebook_path: ./hello.py
```
For information about defining job tasks and overriding job settings, see [_](/dev-tools/bundles/job-task-types.md), [_](/dev-tools/bundles/job-task-override.md), and [_](/dev-tools/bundles/cluster-override.md).
"$fields":
"environments":
"$fields":
"spec":
"$fields":
"dependencies":
"description": |-
List of pip dependencies, as supported by the version of pip in this environment.
"git_source":
"$fields":
"sparse_checkout":
"description": |-
PLACEHOLDER
"health":
"$fields":
"rules":
"description": |-
PLACEHOLDER
"job_clusters":
"$fields":
"new_cluster":
"$fields":
"azure_attributes":
"$fields":
"log_analytics_info":
"$fields":
"log_analytics_primary_key":
"description": |-
The primary key for the Azure Log Analytics agent configuration
"log_analytics_workspace_id":
"description": |-
The workspace ID for the Azure Log Analytics agent configuration
"init_scripts":
"$fields":
"abfss":
"description": |-
Contains the Azure Data Lake Storage destination path
"lifecycle":
"description": |-
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
"$fields":
"prevent_destroy":
"description": |-
Lifecycle setting to prevent the resource from being destroyed.
"permissions":
"description": |-
The permissions to apply to this resource.
"markdown_description": |-
A Sequence of permissions to apply to this resource, where each item grants a permission `level` to a single `user_name`, `group_name`, or `service_principal_name`. A principal cannot be set in both a resource's `permissions` and the top-level `permissions` mapping.
See [\_](/dev-tools/bundles/settings.md#permissions) and [\_](/dev-tools/bundles/permissions.md).
"markdown_examples": |-
```yaml
permissions:
- level: CAN_VIEW
group_name: test-group
- level: CAN_MANAGE
user_name: someone@example.com