Skip to content
v2.275.0

Mode Enum ​

Specifies how many models the container hosts.

Example ​

ts
new tasks.SageMakerCreateModel(this, 'Sagemaker', {
  modelName: 'MyModel',
  primaryContainer: new tasks.ContainerDefinition({
    image: tasks.DockerImage.fromJsonExpression(sfn.JsonPath.stringAt('$.Model.imageName')),
    mode: tasks.Mode.SINGLE_MODEL,
    modelS3Location: tasks.S3Location.fromJsonExpression('$.TrainingJob.ModelArtifacts.S3ModelArtifacts'),
  }),
});

Members ​

MemberDescription
SINGLE_MODELContainer hosts a single model.
MULTI_MODELContainer hosts multiple models.

Referenced by ​