Catalog
laktory.models.resources.databricks.Catalog
¤
Bases: BaseModel
, PulumiResource
, TerraformResource
A catalog is the first layer of Unity Catalog’s three-level namespace. It’s used to organize your data assets.
ATTRIBUTE | DESCRIPTION |
---|---|
comment |
Text description of the catalog |
force_destroy |
If
TYPE:
|
grants |
List of grants operating on the catalog
TYPE:
|
isolation_mode |
Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be ISOLATED or OPEN. Setting the catalog to ISOLATED will automatically allow access from the current workspace. |
lookup_existing |
Specifications for looking up existing resource. Other attributes will be ignored.
TYPE:
|
name |
Name of the catalog
TYPE:
|
owner |
User/group/service principal name of the catalog owner
TYPE:
|
schemas |
List of schemas stored in the catalog |
storage_root |
Managed location of the catalog. Location in cloud storage where data for managed tables will be stored. If not specified, the location will default to the metastore root location.
TYPE:
|
Examples:
from laktory import models
catalog = models.resources.databricks.Catalog(
name="dev",
grants=[
{"principal": "account users", "privileges": ["USE_CATALOG", "USE_SCHEMA"]}
],
schemas=[
{
"name": "engineering",
"grants": [
{"principal": "domain-engineering", "privileges": ["SELECT"]}
],
},
{
"name": "sources",
"volumes": [
{
"name": "landing",
"volume_type": "EXTERNAL",
"grants": [
{
"principal": "account users",
"privileges": ["READ_VOLUME"],
},
{
"principal": "role-metastore-admins",
"privileges": ["WRITE_VOLUME"],
},
],
},
],
},
],
)
ATTRIBUTE | DESCRIPTION |
---|---|
full_name |
Full name of the catalog
TYPE:
|
additional_core_resources |
TYPE:
|
--