Skip to content

UserRole

laktory.models.resources.databricks.UserRole ยค

Bases: UserRoleBase

Databricks User Role

Examples:

import io

from laktory import models

role_yaml = '''
user_id: ${resources.user-john.id}
role: account_admin
'''
role = models.resources.databricks.UserRole.model_validate_yaml(
    io.StringIO(role_yaml)
)
References
BASE DESCRIPTION
api

Specifies whether to use account-level or workspace-level API. Valid values are account and workspace. When not set, the API level is inferred from the provider host

TYPE: str | None | VariableType DEFAULT: None

role

Either a role name or the ARN/ID of the instance profile resource

TYPE: str | VariableType

user_id

This is the id of the user resource

TYPE: str | VariableType