Skip to content

Connection

laktory.models.resources.databricks.Connection ¤

Bases: ConnectionBase

Databricks Connection

Examples:

import io

from laktory import models

connection_yaml = '''
name: my-mysql-connection
connection_type: MYSQL
comment: Connection to MySQL database
options:
  host: mysql.example.com
  port: "3306"
  user: admin
grants:
- principal: account users
  privileges:
  - USE_CONNECTION
'''
connection = models.resources.databricks.Connection.model_validate_yaml(
    io.StringIO(connection_yaml)
)
References
BASE DESCRIPTION
comment

TYPE: str | None | VariableType DEFAULT: None

connection_type

TYPE: str | None | VariableType DEFAULT: None

name

TYPE: str | None | VariableType DEFAULT: None

options

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

owner

TYPE: str | None | VariableType DEFAULT: None

properties

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

read_only

TYPE: bool | None | VariableType DEFAULT: None

LAKTORY DESCRIPTION
grant

Grant(s) operating on the Connection and authoritative for a specific principal. Other principals within the grants are preserved. Mutually exclusive with grants.

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

grants

Grants operating on the Connection and authoritative for all principals. Replaces any existing grants defined inside or outside of Laktory. Mutually exclusive with grant.

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

ATTRIBUTE DESCRIPTION
additional_core_resources
  • connection grants

TYPE: list

additional_core_resources property ¤

  • connection grants