alterWarehouseState

Last updated: January 27, 2026

Suspends or resumes a Snowflake warehouse. Suspended warehouses do not consume credits but queries cannot be executed against them.

Note: This change type does not support automatic rollback or database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).

Available attributes

Attribute

Type

Description

Required

warehouseName

String

Name of the warehouse to modify

Yes

state

String

Target state: suspend, resume, or resumeIfSuspended

Yes

ifExists

Boolean

If true, do not throw an error if the warehouse does not exist

No

State values

Value

Description

suspend

Suspends the warehouse, stopping all queries

resume

Resumes a suspended warehouse

resumeIfSuspended

Resumes only if currently suspended (idempotent)

loading

loading

loading

loading