Source code for steamship.data.plugin.hosting
from enum import Enum
[docs]
class HostingType(str, Enum):
"""The type of hosting provider to deploy to."""
LAMBDA = "lambda"
ECS = "ecs"
[docs]
class HostingEnvironment(str, Enum):
"""The software environment required for deployment."""
PYTHON38 = "python38"
STEAMSHIP_PYTORCH_CPU = "inferenceCpu"
[docs]
class HostingMemory(str, Enum):
"""The amount of memory required for deployment.
This is mapped to a value dependent on the HostingType it is combined with.
"""
MIN = "min"
XXS = "xxs"
XS = "xs"
SM = "sm"
MD = "md"
LG = "lg"
XL = "xl"
XXL = "xxl"
MAX = "max"
[docs]
class HostingCpu(str, Enum):
"""The amount of CPU required for deployment.
This is mapped to a value dependent on the HostingType it is combined with.
"""
MIN = "min"
XXS = "xxs"
XS = "xs"
SM = "sm"
MD = "md"
LG = "lg"
XL = "xl"
XXL = "xxl"
MAX = "max"
[docs]
class HostingTimeout(str, Enum):
"""The request timeout required for deployment.
This is mapped to a value dependent on the HostingType it is combined with.
"""
MIN = "min"
XXS = "xxs"
XS = "xs"
SM = "sm"
MD = "md"
LG = "lg"
XL = "xl"
XXL = "xxl"
MAX = "max"