Grant
laktory.models.resources.databricks.Grant
¤
Bases: GrantBase
Databricks Grant
Non-destructive per-principal grant. Updates privileges for a single principal without affecting any other principals' grants on the same securable.
Use this standalone resource when you need to manage grants on a securable that Laktory
does not create (e.g., a pre-existing catalog or an externally managed table). For resources
that Laktory creates, prefer the embedded grant field on the resource itself (e.g.,
Catalog.grant, Schema.grant) — it generates the same Terraform resource but keeps the
grant definition co-located with the resource.
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:
|
credential
|
TYPE:
|
external_location
|
TYPE:
|
foreign_connection
|
TYPE:
|
function
|
TYPE:
|
metastore
|
TYPE:
|
model
|
TYPE:
|
pipeline
|
TYPE:
|
principal
|
TYPE:
|
privileges
|
TYPE:
|
recipient
|
TYPE:
|
schema_
|
TYPE:
|
share
|
TYPE:
|
storage_credential
|
TYPE:
|
table
|
TYPE:
|
volume
|
TYPE:
|