Skip to content

Warehouse

laktory.models.resources.databricks.Warehouse ¤

Bases: BaseModel, PulumiResource, TerraformResource

Databricks Warehouse

ATTRIBUTE DESCRIPTION
access_controls

Warehouse access controls

TYPE: list[AccessControl]

auto_stop_mins

Time in minutes until an idle SQL warehouse terminates all clusters and stops.

TYPE: int

channel_name

Channel specifications

TYPE: Union[Literal['CHANNEL_NAME_CURRENT', 'CHANNEL_NAME_PREVIEW'], str]

cluster_size

The size of the clusters allocated to the endpoint

TYPE: Literal['2X-Small', 'X-Small', 'Small', 'Medium', 'Large', 'X-Large', '2X-Large', '3X-Large', '4X-Large']

enable_photon

If True, photon is enabled

TYPE: bool

enable_serverless_compute

If True, warehouse is serverless. See details here

TYPE: bool

instance_profile_arn

TODO

TYPE: str

jdbc_url

JDBC connection string.

TYPE: str

lookup_existing

Specifications for looking up existing resource. Other attributes will be ignored.

TYPE: WarehouseLookup

max_num_clusters

Maximum number of clusters available when a SQL warehouse is running.

TYPE: int

min_num_clusters

Minimum number of clusters available when a SQL warehouse is running.

TYPE: int

name

Warehouse name

TYPE: str

num_clusters

Fixed number of clusters when autoscaling is not enabled.

TYPE: int

spot_instance_policy

The spot policy to use for allocating instances to clusters.

TYPE: Union[Literal['COST_OPTIMIZED', 'RELIABILITY_OPTIMIZED'], str]

tags

Databricks tags all endpoint resources with these tags.

TYPE: WarehouseTags

warehouse_type

SQL warehouse type.

TYPE: Union[Literal['CLASSIC', 'PRO'], str]

Examples:

from laktory import models

warehouse = models.resources.databricks.Warehouse(
    name="default",
    cluster_size="2X-Small",
    auto_stop_mins=30,
    channel_name="CHANNEL_NAME_PREVIEW",
    enable_photon=True,
    enable_serverless_compute=True,
    access_controls=[{"group_name": "account users", "permission_level": "CAN_USE"}],
)

Attributes¤

additional_core_resources property ¤

additional_core_resources
  • warehouse permissions

laktory.models.resources.databricks.warehouse.WarehouseTags ¤

Bases: BaseModel

Warehouse Tags specifications

ATTRIBUTE DESCRIPTION
custom_tags

Tags specifications

TYPE: list[WarehouseCustomTag]


laktory.models.resources.databricks.warehouse.WarehouseCustomTag ¤

Bases: BaseModel

Warehouse Custom Tag specifications

ATTRIBUTE DESCRIPTION
key

Tag key

TYPE: str

value

Tag value

TYPE: str

--

laktory.models.resources.databricks.warehouse.WarehouseLookup ¤

Bases: ResourceLookup

ATTRIBUTE DESCRIPTION
id

The ID of the SQL warehouse.

TYPE: str