Skip to content

GlobalInitScript

laktory.models.resources.databricks.GlobalInitScript ¤

Bases: GlobalInitScriptBase

Databricks Global Init Script

Examples:

import io

from laktory import models

script_yaml = '''
name: my-init-script
content_base64: ZWNobyAiaGVsbG8gd29ybGQi
enabled: true
'''
script = models.resources.databricks.GlobalInitScript.model_validate_yaml(
    io.StringIO(script_yaml)
)
References
BASE DESCRIPTION
content_base64

The base64-encoded source code global init script. Conflicts with source. Use of content_base64 is discouraged, as it's increasing memory footprint of Terraform state and should only be used in exceptional circumstances

TYPE: str | None | VariableType DEFAULT: None

enabled

specifies if the script is enabled for execution, or not

TYPE: bool | None | VariableType DEFAULT: None

md5

TYPE: str | None | VariableType DEFAULT: None

name

the name of the script. It should be unique

TYPE: str | VariableType

position

the position of a global init script, where 0 represents the first global init script to run, 1 is the second global init script to run, and so on. When omitted, the script gets the last position

TYPE: int | None | VariableType DEFAULT: None

source

Path to script's source code on local filesystem. Conflicts with content_base64

TYPE: str | None | VariableType DEFAULT: None

timeouts

TYPE: GlobalInitScriptTimeouts | None | VariableType DEFAULT: None


laktory.models.resources.databricks.globalinitscript.GlobalInitScriptTimeouts ¤

Bases: BaseModel