Skip to content

ServicePrincipalRole

laktory.models.resources.databricks.ServicePrincipalRole ยค

Bases: ServicePrincipalRoleBase

Databricks Service Principal Role

Examples:

import io

from laktory import models

role_yaml = '''
service_principal_id: ${resources.sp-neptune.id}
role: account_admin
'''
role = models.resources.databricks.ServicePrincipalRole.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

This is the role name, role id, or instance profile resource

TYPE: str | VariableType

service_principal_id

This is the id of the service principal resource

TYPE: str | VariableType