Skip to content

ArtifactAllowlist

laktory.models.resources.databricks.ArtifactAllowlist ¤

Bases: ArtifactAllowlistBase

Databricks Artifact Allowlist

Libraries and init scripts allowed on compute with standard (shared) access mode. All the allowed artifacts of a given type must be declared in a single resource.

Examples:

import io

from laktory import models

allowlist_yaml = '''
artifact_type: INIT_SCRIPT
artifact_matchers:
- artifact: /Volumes/dev/sources/init_scripts
  match_type: PREFIX_MATCH
'''
allowlist = models.resources.databricks.ArtifactAllowlist.model_validate_yaml(
    io.StringIO(allowlist_yaml)
)
References
BASE DESCRIPTION
artifact_matcher

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

artifact_type

The artifact type of the allowlist. Change forces creation of a new resource

TYPE: Literal['INIT_SCRIPT', 'LIBRARY_JAR', 'LIBRARY_MAVEN'] | VariableType

created_at

Time at which this artifact allowlist was set

TYPE: int | None | VariableType DEFAULT: None

created_by

Identity that set the artifact allowlist

TYPE: str | None | VariableType DEFAULT: None

metastore_id

ID of the parent metastore

TYPE: str | None | VariableType DEFAULT: None


laktory.models.resources.databricks.artifactallowlist.ArtifactAllowlistArtifactMatcher ¤

Bases: BaseModel

PARAMETER DESCRIPTION
artifact

The artifact path or maven coordinate

TYPE: str | VariableType

match_type

The pattern matching type of the artifact. Only PREFIX_MATCH is supported

TYPE: str | VariableType