Entitlements
laktory.models.resources.databricks.Entitlements
ยค
Bases: EntitlementsBase
Databricks Entitlements
This resource allows you to set entitlements to existing users, groups or
service principals. You must define entitlements of a principal using either
Entitlements or directly within one of User, Group or
ServicePrincipal. Having entitlements defined in both resources will
result in non-deterministic behaviour.
Examples:
import io
from laktory import models
entitlements_yaml = '''
user_id: ${resources.user-john.id}
allow_cluster_create: true
allow_instance_pool_create: true
databricks_sql_access: true
workspace_access: true
'''
entitlements = models.resources.databricks.Entitlements.model_validate_yaml(
io.StringIO(entitlements_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
allow_cluster_create
|
Allow the principal to have cluster create privileges. Defaults to false. More fine grained permissions could be assigned with databricks_permissions and
TYPE:
|
allow_instance_pool_create
|
Allow the principal to have instance pool create privileges. Defaults to false. More fine grained permissions could be assigned with databricks_permissions and instance_pool_id argument
TYPE:
|
databricks_sql_access
|
This is a field to allow the principal to have access to Databricks SQL UI, Databricks One and through databricks_sql_endpoint
TYPE:
|
group_id
|
Canonical unique identifier for the group
TYPE:
|
service_principal_id
|
Canonical unique identifier for the service principal
TYPE:
|
user_id
|
Canonical unique identifier for the user
TYPE:
|
workspace_access
|
This is a field to allow the principal to have access to a Databricks Workspace UI and Databricks One
TYPE:
|
workspace_consume
|
This is a field to allow the principal to have access only to Databricks One. Couldn't be used with
TYPE:
|