Catalogs¶
Package: databricks.bundles.catalogs
Classes¶
- class AzureEncryptionSettings¶
- class Catalog¶
- name: str¶
The name of the catalog is stored in lowercase, can be at most 255 characters long, and cannot contain periods, spaces, forward slashes, or control characters.
- connection_name: str | None = None¶
Naming a connection to an external data source creates a foreign catalog that mirrors a database in that source, which requires ownership of or the CREATE FOREIGN CATALOG privilege on the connection. Connection-specific settings, such as the database to mirror, go in options. The connection cannot be changed after creation.
- custom_max_retention_hours: int | None = None¶
[Public Preview] Dropped objects in the catalog remain recoverable for this number of hours before they are permanently purged. The value applies to standard catalogs only, must be 0 or within the range allowed for the metastore, and is inherited by schemas and tables that do not set their own value.
- grants: list[PrivilegeAssignment]¶
The Unity Catalog privileges to grant to principals on this securable.
- isolation_mode: CatalogIsolationMode | None = None¶
Whether the catalog is accessible from all workspaces (OPEN) or only from the workspaces it is bound to (ISOLATED). Workspace bindings are not managed by the bundle. When omitted, the catalog keeps its current isolation mode.
- lifecycle: Lifecycle | None = None¶
Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.
- managed_encryption_settings: EncryptionSettings | None = None¶
Customer-managed key (CMK) settings control the encryption at rest of the catalog’s managed data.
- provider_name: str | None = None¶
The Delta Sharing provider that owns the share must be named here, together with share_name, to create a Delta Sharing catalog that exposes the data of the share on a remote sharing server. The provider cannot be changed after creation.
The share under the Delta Sharing provider must be named here, together with provider_name, to create a Delta Sharing catalog. The share cannot be changed after creation.
- storage_root: str | None = None¶
Managed tables and volumes in the catalog are stored under this storage root URL. The path must be inside an external location on which the caller has the CREATE MANAGED STORAGE privilege. If omitted, managed data is stored under the metastore’s root storage location, which must then be configured. Delta Sharing catalogs cannot have a storage root.
- CatalogGrant¶
alias of
PrivilegeAssignment
- class DependsOn¶
- class EncryptionSettings¶
Encryption Settings are used to carry metadata for securable encryption at rest. Currently used for catalogs, we can use the information supplied here to interact with a CMK.
- azure_encryption_settings: AzureEncryptionSettings | None = None¶
optional Azure settings - only required if an Azure CMK is used.
- class Lifecycle¶
- depends_on: list[DependsOn]¶
Resources that must be deployed before this resource and deleted after it. Unlike variable references, this only affects ordering.
- class Privilege¶
- SELECT = 'SELECT'¶
- READ_PRIVATE_FILES = 'READ_PRIVATE_FILES'¶
- WRITE_PRIVATE_FILES = 'WRITE_PRIVATE_FILES'¶
- CREATE = 'CREATE'¶
- USAGE = 'USAGE'¶
- USE_CATALOG = 'USE_CATALOG'¶
- USE_SCHEMA = 'USE_SCHEMA'¶
- CREATE_SCHEMA = 'CREATE_SCHEMA'¶
- CREATE_VIEW = 'CREATE_VIEW'¶
- CREATE_EXTERNAL_TABLE = 'CREATE_EXTERNAL_TABLE'¶
- CREATE_MATERIALIZED_VIEW = 'CREATE_MATERIALIZED_VIEW'¶
- CREATE_FUNCTION = 'CREATE_FUNCTION'¶
- CREATE_MODEL = 'CREATE_MODEL'¶
- CREATE_CATALOG = 'CREATE_CATALOG'¶
- CREATE_MANAGED_STORAGE = 'CREATE_MANAGED_STORAGE'¶
- CREATE_EXTERNAL_LOCATION = 'CREATE_EXTERNAL_LOCATION'¶
- CREATE_STORAGE_CREDENTIAL = 'CREATE_STORAGE_CREDENTIAL'¶
- CREATE_SERVICE_CREDENTIAL = 'CREATE_SERVICE_CREDENTIAL'¶
- ACCESS = 'ACCESS'¶
- CREATE_SHARE = 'CREATE_SHARE'¶
- CREATE_RECIPIENT = 'CREATE_RECIPIENT'¶
- CREATE_PROVIDER = 'CREATE_PROVIDER'¶
- USE_SHARE = 'USE_SHARE'¶
- USE_RECIPIENT = 'USE_RECIPIENT'¶
- USE_PROVIDER = 'USE_PROVIDER'¶
- USE_MARKETPLACE_ASSETS = 'USE_MARKETPLACE_ASSETS'¶
- SET_SHARE_PERMISSION = 'SET_SHARE_PERMISSION'¶
- MODIFY = 'MODIFY'¶
- REFRESH = 'REFRESH'¶
- EXECUTE = 'EXECUTE'¶
- READ_FILES = 'READ_FILES'¶
- WRITE_FILES = 'WRITE_FILES'¶
- CREATE_TABLE = 'CREATE_TABLE'¶
- ALL_PRIVILEGES = 'ALL_PRIVILEGES'¶
- CREATE_CONNECTION = 'CREATE_CONNECTION'¶
- USE_CONNECTION = 'USE_CONNECTION'¶
- APPLY_TAG = 'APPLY_TAG'¶
- CREATE_FOREIGN_CATALOG = 'CREATE_FOREIGN_CATALOG'¶
- CREATE_FOREIGN_SECURABLE = 'CREATE_FOREIGN_SECURABLE'¶
- MANAGE_ALLOWLIST = 'MANAGE_ALLOWLIST'¶
- CREATE_VOLUME = 'CREATE_VOLUME'¶
- CREATE_EXTERNAL_VOLUME = 'CREATE_EXTERNAL_VOLUME'¶
- READ_VOLUME = 'READ_VOLUME'¶
- WRITE_VOLUME = 'WRITE_VOLUME'¶
- MANAGE = 'MANAGE'¶
- BROWSE = 'BROWSE'¶
- CREATE_CLEAN_ROOM = 'CREATE_CLEAN_ROOM'¶
- MODIFY_CLEAN_ROOM = 'MODIFY_CLEAN_ROOM'¶
- EXECUTE_CLEAN_ROOM_TASK = 'EXECUTE_CLEAN_ROOM_TASK'¶
- EXTERNAL_USE_SCHEMA = 'EXTERNAL_USE_SCHEMA'¶
- READ_METADATA = 'READ_METADATA'¶
- CREATE_FEATURE = 'CREATE_FEATURE'¶
- READ_FEATURE = 'READ_FEATURE'¶
- EXTERNAL_USE_LOCATION = 'EXTERNAL_USE_LOCATION'¶