Skip to content

MetastoreAssignment

laktory.models.resources.databricks.MetastoreAssignment ยค

Bases: MetastoreAssignmentBase

Databricks Metastore Assignment

Examples:

import io

from laktory import models

assignment_yaml = '''
metastore_id: ${resources.metastore-prod.metastore_id}
workspace_id: 1234567890
default_catalog_name: dev
'''
assignment = models.resources.databricks.MetastoreAssignment.model_validate_yaml(
    io.StringIO(assignment_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

default_catalog_name

(Deprecated) Default catalog used for this assignment. Please use databricks_default_namespace_setting instead

TYPE: str | None | VariableType DEFAULT: None

metastore_id

ID of the metastore

TYPE: int | str | None | VariableType DEFAULT: None

workspace_id

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

TYPE: int | VariableType