Skip to content

SqlGlobalConfig

laktory.models.resources.databricks.SqlGlobalConfig ¤

Bases: SqlGlobalConfigBase

Databricks SQL global configuration

Workspace-wide configuration of SQL warehouses: data access properties, security policy, instance profile and SQL configuration parameters. Workspace singleton; changes restart running SQL warehouses.

Examples:

import io

from laktory import models

config_yaml = '''
security_policy: DATA_ACCESS_CONTROL
sql_config_params:
  ANSI_MODE: 'true'
'''
config = models.resources.databricks.SqlGlobalConfig.model_validate_yaml(
    io.StringIO(config_yaml)
)
References
BASE DESCRIPTION
data_access_config

Data access configuration for databricks_sql_endpoint, such as configuration for an external Hive metastore, Hadoop Filesystem configuration, etc. Please note that the list of supported configuration properties is limited, so refer to the documentation for a full list. Apply will fail if you're specifying not permitted configuration

TYPE: dict[str, str] | None | VariableType DEFAULT: None

enable_serverless_compute

TYPE: bool | None | VariableType DEFAULT: None

google_service_account

used to access GCP services, such as Cloud Storage, from databricks_sql_endpoint. Please note that this parameter is only for GCP, and will generate an error if used on other clouds

TYPE: str | None | VariableType DEFAULT: None

instance_profile_arn

databricks_instance_profile used to access storage from databricks_sql_endpoint. Please note that this parameter is only for AWS, and will generate an error if used on other clouds

TYPE: str | None | VariableType DEFAULT: None

security_policy

The policy for controlling access to datasets. Default value: DATA_ACCESS_CONTROL, consult documentation for list of possible values

TYPE: str | None | VariableType DEFAULT: None

sql_config_params

SQL Configuration Parameters let you override the default behavior for all sessions with all endpoints

TYPE: dict[str, str] | None | VariableType DEFAULT: None

ATTRIBUTE DESCRIPTION
resource_key

Singleton: named after the resource type

TYPE: str

resource_key property ¤

Singleton: named after the resource type