Mode

class aws_cdk.aws_stepfunctions_tasks.Mode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Specifies how many models the container hosts.

ExampleMetadata:

infused

Example:

tasks.SageMakerCreateModel(self, "Sagemaker",
    model_name="MyModel",
    primary_container=tasks.ContainerDefinition(
        image=tasks.DockerImage.from_json_expression(sfn.JsonPath.string_at("$.Model.imageName")),
        mode=tasks.Mode.SINGLE_MODEL,
        model_s3_location=tasks.S3Location.from_json_expression("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")
    )
)

Attributes

MULTI_MODEL

Container hosts multiple models.

See:

https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html

SINGLE_MODEL

Container hosts a single model.