Skip to content

SecretUc

laktory.models.resources.databricks.SecretUc ¤

Bases: SecretUcBase

Databricks Unity Catalog Secret

Secret stored in a Unity Catalog schema.

Examples:

import io

from laktory import models

secret_yaml = '''
catalog_name: dev
schema_name: secrets
name: api-key
value: ${vars.api_key}
'''
secret = models.resources.databricks.SecretUc.model_validate_yaml(
    io.StringIO(secret_yaml)
)
References
BASE DESCRIPTION
catalog_name

The name of the catalog where the schema and the secret reside

TYPE: str | VariableType

comment

User-provided free-form text description of the secret

TYPE: str | None | VariableType DEFAULT: None

expire_time

User-provided expiration time of the secret. This field indicates when the secret should no longer be used and may be displayed as a warning in the UI. It is purely informational and does not trigger any automatic actions or affect the secret's lifecycle

TYPE: str | None | VariableType DEFAULT: None

name

The name of the secret, relative to its parent schema

TYPE: str | VariableType

owner

The owner of the secret. Defaults to the creating principal on creation. Can be updated to transfer ownership of the secret to another principal

TYPE: str | None | VariableType DEFAULT: None

provider_config

Configure the provider for management through account provider

TYPE: SecretUcProviderConfig | None | VariableType DEFAULT: None

schema_name

The name of the schema where the secret resides

TYPE: str | VariableType

value

The secret value to store. This field is input-only and is not returned in responses — use the effective_value field (via GetSecret with include_value set to true) to read the secret value. The maximum size is 60 KiB (pre-encryption). Accepted content includes passwords, tokens, keys, and other sensitive credential data

TYPE: str | VariableType


laktory.models.resources.databricks.secretuc.SecretUcProviderConfig ¤

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