Skip to content

Grants

laktory.models.resources.databricks.Grants ¤

Bases: GrantsBase

Databricks Grants

Authoritative for all principals. Sets the grants of a securable and replaces any existing grants defined inside or outside of Laktory.

Examples:

import io

from laktory import models

grants_yaml = '''
catalog: dev
grants:
- principal: metastore-admins
  privileges:
  - CREATE_SCHEMA
- principal: account users
  privileges:
  - USE_CATALOG
  - USE_SCHEMA
'''
grants = models.resources.databricks.Grants.model_validate_yaml(
    io.StringIO(grants_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

grant

TYPE: list[GrantsGrant] | 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

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


laktory.models.resources.databricks.grants.GrantsGrant ¤

Bases: BaseModel

PARAMETER DESCRIPTION
principal

TYPE: str | VariableType

privileges

TYPE: list[str] | VariableType