Metastore
laktory.models.resources.databricks.Metastore
¤
Bases: MetastoreBase
Databricks Metastore
Examples:
import io
from laktory import models
metastore_yaml = '''
name: prod
region: eastus
grants:
- principal: account users
privileges:
- CREATE_CATALOG
workspace_assignments:
- workspace_id: 1234567890
default_catalog_name: dev
'''
metastore = models.resources.databricks.Metastore.model_validate_yaml(
io.StringIO(metastore_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
api
|
Specifies whether to use account-level or workspace-level API. Valid values are
TYPE:
|
default_data_access_config_id
|
Unique identifier of the metastore's (Default) Data Access Configuration.
TYPE:
|
delta_sharing_organization_name
|
The organization name of a Delta Sharing entity, to be used in Databricks-to-Databricks Delta Sharing as the official name.
TYPE:
|
delta_sharing_recipient_token_lifetime_in_seconds
|
The lifetime of delta sharing recipient token in seconds.
TYPE:
|
delta_sharing_scope
|
The scope of Delta Sharing enabled for the metastore.
TYPE:
|
external_access_enabled
|
Whether to allow non-DBR clients to directly access entities under the metastore.
TYPE:
|
force_destroy
|
TYPE:
|
name
|
The user-specified name of the metastore.
TYPE:
|
owner
|
The owner of the metastore.
TYPE:
|
privilege_model_version
|
Privilege model version of the metastore, of the form
TYPE:
|
region
|
Cloud region which the metastore serves (e.g.,
TYPE:
|
storage_root
|
The storage root URL for metastore
TYPE:
|
storage_root_credential_id
|
UUID of storage credential to access the metastore storage_root.
TYPE:
|
storage_root_credential_name
|
Name of the storage credential to access the metastore storage_root.
TYPE:
|
| LAKTORY | DESCRIPTION |
|---|---|
grant
|
Grant(s) operating on the Metastore and authoritative for a specific principal. Other principals within the grants
are preserved. Mutually exclusive with
TYPE:
|
grants
|
Grants operating on the Metastore and authoritative for all principals. Replaces any existing grants defined inside
or outside of Laktory. Mutually exclusive with
TYPE:
|
grants_provider
|
Provider used for deploying grants
TYPE:
|
workspace_assignments
|
List of workspace to which metastore is assigned to
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
additional_core_resources |
TYPE:
|
resource_key |
Resource key used to build default resource name. Equivalent to
TYPE:
|
laktory.models.resources.databricks.metastore.MetastoreLookup
¤
Bases: ResourceLookup
| PARAMETER | DESCRIPTION |
|---|---|
metastore_id
|
ID of the metastore
TYPE:
|