Skip to content

Grant

laktory.models.resources.databricks.Grant ยค

Bases: GrantBase

Databricks Grant

Authoritative for a specific principal. Updates the grants of a securable to a single principal. Other principals within the grants for the securables are preserved.

Examples:

import io

from laktory import models

grant_yaml = '''
catalog: dev
principal: metastore-admins
privileges:
- CREATE_SCHEMA
'''
grant = models.resources.databricks.Grant.model_validate_yaml(
    io.StringIO(grant_yaml)
)
References
BASE DESCRIPTION
catalog

TYPE: str | None | VariableType DEFAULT: None

credential

TYPE: str | None | VariableType DEFAULT: None

external_location

TYPE: str | None | VariableType DEFAULT: None

foreign_connection

TYPE: str | None | VariableType DEFAULT: None

function

TYPE: str | None | VariableType DEFAULT: None

metastore

TYPE: str | None | VariableType DEFAULT: None

model

TYPE: str | None | VariableType DEFAULT: None

pipeline

TYPE: str | None | VariableType DEFAULT: None

principal

TYPE: str | VariableType

privileges

TYPE: list[str] | VariableType

recipient

TYPE: str | None | VariableType DEFAULT: None

schema_

TYPE: str | None | VariableType DEFAULT: None

share

TYPE: str | None | VariableType DEFAULT: None

storage_credential

TYPE: str | None | VariableType DEFAULT: None

table

TYPE: str | None | VariableType DEFAULT: None

volume

TYPE: str | None | VariableType DEFAULT: None