Mode¶
-
class
aws_cdk.aws_stepfunctions_tasks.
Mode
(value)¶ Bases:
enum.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.
-
SINGLE_MODEL
¶ Container hosts a single model.