Skip to content

OboToken

laktory.models.resources.databricks.OboToken ยค

Bases: OboTokenBase

Databricks On-Behalf-Of (OBO) Token

Examples:

import io

from laktory import models

token_yaml = '''
application_id: baf147d1-a856-4de0-a570-8a56dbd7e234
comment: Token for neptune service principal
lifetime_seconds: 3600
'''
token = models.resources.databricks.OboToken.model_validate_yaml(
    io.StringIO(token_yaml)
)
References
BASE DESCRIPTION
application_id

Application ID of databricks_service_principal to create a PAT token for

TYPE: str | VariableType

comment

(String, Optional) Comment that describes the purpose of the token

TYPE: str | None | VariableType DEFAULT: None

lifetime_seconds

(Integer, Optional) The number of seconds before the token expires. Token resource is re-created when it expires. If no lifetime is specified, the token remains valid indefinitely

TYPE: int | None | VariableType DEFAULT: None