Skip to content

AccessControl

laktory.models.resources.databricks.AccessControl ยค

Bases: BaseModel

Databricks Access Control

Access Control generally applicable to objects like cluster, notebook, pipeline, etc. For providing access to securable data, refer to models.Grant instead.

Examples:

import io

from laktory import models

ac_yaml = '''
group_name: role-engineers
permission_level: CAN_READ
'''
ac = models.resources.databricks.AccessControl.model_validate_yaml(
    io.StringIO(ac_yaml)
)
PARAMETER DESCRIPTION
group_name

Name of the group to assign the permission to.

TYPE: str | VariableType DEFAULT: None

permission_level

Name of the permission to assign

TYPE: str | VariableType

service_principal_name

Name of the service principal to assign the permission to.

TYPE: str | VariableType DEFAULT: None

user_name

Name of the user to assign the permission to.

TYPE: str | VariableType DEFAULT: None