Skip to content

WorkspaceBinding

laktory.models.resources.databricks.WorkspaceBinding ยค

Bases: WorkspaceBindingBase

Databricks Workspace Binding

A binding of a workspace to some Databricks resource, such as catalog.

Examples:

import io

from laktory import models

binding_yaml = '''
workspace_id: 1234567890
securable_name: dev
securable_type: catalog
binding_type: BINDING_TYPE_READ_WRITE
'''
binding = models.resources.databricks.WorkspaceBinding.model_validate_yaml(
    io.StringIO(binding_yaml)
)
References
BASE DESCRIPTION
binding_type

Binding mode. Default to BINDING_TYPE_READ_WRITE. Possible values are BINDING_TYPE_READ_ONLY, BINDING_TYPE_READ_WRITE

TYPE: str | None | VariableType DEFAULT: None

catalog_name

TYPE: str | None | VariableType DEFAULT: None

securable_name

Name of securable. Change forces creation of a new resource

TYPE: str | None | VariableType DEFAULT: None

securable_type

Type of securable. Can be catalog, external_location, storage_credential or credential. Default to catalog. Change forces creation of a new resource

TYPE: 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