Skip to content

WorkspaceEntityTagAssignment

laktory.models.resources.databricks.WorkspaceEntityTagAssignment ¤

Bases: WorkspaceEntityTagAssignmentBase

Databricks Workspace Entity Tag Assignment

Assigns a tag to a workspace entity (app, dashboard, Genie space or notebook). Tags can also be declared directly on App, Dashboard and Notebook with their tags field.

Examples:

import io

from laktory import models

tag_yaml = '''
entity_type: apps
entity_id: stock-prices-app
tag_key: cost_center
tag_value: finance
'''
tag = models.resources.databricks.WorkspaceEntityTagAssignment.model_validate_yaml(
    io.StringIO(tag_yaml)
)
References
BASE DESCRIPTION
entity_id

The identifier of the entity to which the tag is assigned. For apps, the entity_id is the app name

TYPE: str | VariableType

entity_type

The type of entity to which the tag is assigned

TYPE: Literal['apps', 'dashboards', 'geniespaces', 'notebooks'] | VariableType

provider_config

Configure the provider for management through account provider

TYPE: WorkspaceEntityTagAssignmentProviderConfig | None | VariableType DEFAULT: None

tag_key

The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed

TYPE: str | VariableType

tag_value

The value of the tag

TYPE: str | None | VariableType DEFAULT: None


laktory.models.resources.databricks.workspaceentitytagassignment.WorkspaceEntityTagAssignmentProviderConfig ¤

Bases: BaseModel

PARAMETER DESCRIPTION
workspace_id

Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with

TYPE: str | None | VariableType DEFAULT: None