This documentation is for an older version (1.4.7) of Dagster. You can view the version of this page from our latest release below.
from dagster import Enum, EnumValue
SparkDeployModeCluster = EnumValue("cluster")
SparkDeployModeClient = EnumValue("client")
SparkDeployMode = Enum(
name="SparkDeployMode", enum_values=[SparkDeployModeCluster, SparkDeployModeClient]
)