Skip to content

Dashboard

laktory.models.resources.databricks.Dashboard ¤

Bases: BaseModel, PulumiResource, TerraformResource

Databricks Lakeview Dashboard

ATTRIBUTE DESCRIPTION
access_controls

Dashboard access controls

TYPE: list[AccessControl]

embed_credentials

Whether to embed credentials in the dashboard. Default is true.

TYPE: bool

display_name

The display name of the dashboard.

TYPE: str

file_path

The path to the dashboard JSON file. Conflicts with serialized_dashboard.

TYPE: str

parent_path

The workspace path of the folder containing the dashboard. Includes leading slash and no trailing slash. If folder doesn't exist, it will be created.

TYPE: str

serialized_dashboard

The contents of the dashboard in serialized string form. Conflicts with file_path.

TYPE: str

warehouse_id

The warehouse ID used to run the dashboard.

TYPE: str

Examples:

import io
from laktory import models

# Define job
job_yaml = '''
display_name: databricks-costs
file_path: ./dashboards/databricks_costs.json
parent_path: /.laktory/dashboards
warehouse_id: a7d9f2kl8mp3q6rt
access_controls:
    - group_name: account users
      permission_level: CAN_READ
    - group_name: account users
      permission_level: CAN_RUN
'''
dashboard = models.resources.databricks.Dashboard.model_validate_yaml(
    io.StringIO(job_yaml)
)

Attributes¤

additional_core_resources property ¤

additional_core_resources
  • permissions

--