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:
|
connection_type
|
TYPE:
|
name
|
TYPE:
|
options
|
TYPE:
|
owner
|
TYPE:
|
properties
|
TYPE:
|
read_only
|
TYPE:
|
| 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
TYPE:
|
grants
|
Grants operating on the Connection and authoritative for all principals. Replaces any existing grants
defined inside or outside of Laktory. Mutually exclusive with
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
additional_core_resources |
TYPE:
|
additional_core_resources
property
¤
- connection grants