Skip to content

Permissions

laktory.models.resources.databricks.Permissions ¤

Bases: PermissionsBase

Databricks Permissions

This resource is typically auto-generated by Laktory when you set access_controls on resources like Cluster, Job, Notebook, etc. It can also be configured manually when fine-grained control is needed.

Examples:

import io

from laktory import models

perms_yaml = '''
cluster_id: ${resources.cluster-default.id}
access_controls:
- group_name: role-engineers
  permission_level: CAN_RESTART
- group_name: account users
  permission_level: CAN_ATTACH_TO
'''
perms = models.resources.databricks.Permissions.model_validate_yaml(
    io.StringIO(perms_yaml)
)
References
BASE DESCRIPTION
access_control

Access controls list

TYPE: list[AccessControl | VariableType] | VariableType

alert_v2_id

TYPE: str | None | VariableType DEFAULT: None

app_name

TYPE: str | None | VariableType DEFAULT: None

authorization

TYPE: str | None | VariableType DEFAULT: None

cluster_id

TYPE: str | None | VariableType DEFAULT: None

cluster_policy_id

TYPE: str | None | VariableType DEFAULT: None

dashboard_id

TYPE: str | None | VariableType DEFAULT: None

database_instance_name

TYPE: str | None | VariableType DEFAULT: None

database_project_name

TYPE: str | None | VariableType DEFAULT: None

directory_id

TYPE: str | None | VariableType DEFAULT: None

directory_path

TYPE: str | None | VariableType DEFAULT: None

experiment_id

TYPE: str | None | VariableType DEFAULT: None

instance_pool_id

TYPE: str | None | VariableType DEFAULT: None

job_id

TYPE: str | None | VariableType DEFAULT: None

notebook_id

TYPE: str | None | VariableType DEFAULT: None

notebook_path

TYPE: str | None | VariableType DEFAULT: None

object_type

TYPE: str | None | VariableType DEFAULT: None

pipeline_id

TYPE: str | None | VariableType DEFAULT: None

registered_model_id

TYPE: str | None | VariableType DEFAULT: None

repo_id

TYPE: str | None | VariableType DEFAULT: None

repo_path

TYPE: str | None | VariableType DEFAULT: None

serving_endpoint_id

TYPE: str | None | VariableType DEFAULT: None

sql_alert_id

TYPE: str | None | VariableType DEFAULT: None

sql_dashboard_id

TYPE: str | None | VariableType DEFAULT: None

sql_endpoint_id

TYPE: str | None | VariableType DEFAULT: None

sql_query_id

TYPE: str | None | VariableType DEFAULT: None

vector_search_endpoint_id

TYPE: str | None | VariableType DEFAULT: None

workspace_file_id

TYPE: str | None | VariableType DEFAULT: None

workspace_file_path

TYPE: str | None | VariableType DEFAULT: None


laktory.models.resources.databricks.permissions.PermissionsAccessControl ¤

Bases: BaseModel

PARAMETER DESCRIPTION
group_name

TYPE: str | None | VariableType DEFAULT: None

permission_level

TYPE: str | None | VariableType DEFAULT: None

service_principal_name

TYPE: str | None | VariableType DEFAULT: None

user_name

TYPE: str | None | VariableType DEFAULT: None