Skip to content

TagPolicy

laktory.models.resources.databricks.TagPolicy ¤

Bases: TagPolicyBase

Databricks Tag Policy

Defines a governed tag: a tag key, with an optional list of allowed values, that can be assigned to Unity Catalog and workspace entities and used in attribute-based access control (ABAC) policies.

Examples:

import io

from laktory import models

tag_policy_yaml = '''
tag_key: data_classification
description: Sensitivity level of the data
values:
- name: public
- name: confidential
- name: pii
'''
tag_policy = models.resources.databricks.TagPolicy.model_validate_yaml(
    io.StringIO(tag_policy_yaml)
)
References
BASE DESCRIPTION
description

TYPE: str | None | VariableType DEFAULT: None

provider_config

Configure the provider for management through account provider

TYPE: TagPolicyProviderConfig | None | VariableType DEFAULT: None

tag_key

TYPE: str | VariableType

values

TYPE: list[TagPolicyValues] | None | VariableType DEFAULT: None


laktory.models.resources.databricks.tagpolicy.TagPolicyProviderConfig ¤

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


laktory.models.resources.databricks.tagpolicy.TagPolicyValues ¤

Bases: BaseModel

PARAMETER DESCRIPTION
name

TYPE: str | VariableType