Mode

class aws_cdk.aws_stepfunctions_tasks.Mode(value)

Bases: enum.Enum

Specifies how many models the container hosts.

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.