Skip to main content

warehouse_config

Operations on a warehouse_config resource.

Overview

Namewarehouse_config
TypeResource
Iddatabricks_workspace.dbsql.warehouse_config

Fields

NameDatatype
channelobject
config_paramobject
data_access_configarray
enabled_warehouse_typesarray
global_paramobject
google_service_accountstring
instance_profile_arnstring
security_policystring
sql_configuration_parametersobject

Methods

NameAccessible byRequired ParamsDescription
getworkspacewarehouseconfigSELECTdeployment_nameGets the workspace level configuration that is shared by all SQL warehouses in a workspace.
setworkspacewarehouseconfigREPLACEdeployment_nameSets the workspace level configuration that is shared by all SQL warehouses in a workspace.

SELECT examples

SELECT
channel,
config_param,
data_access_config,
enabled_warehouse_types,
global_param,
google_service_account,
instance_profile_arn,
security_policy,
sql_configuration_parameters
FROM databricks_workspace.dbsql.warehouse_config
WHERE deployment_name = '{{ deployment_name }}';

REPLACE example

Replaces a warehouse_config resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_workspace.dbsql.warehouse_config
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE deployment_name = '{{ deployment_name }}';