Interface ContainerDefinitionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerDefinitionOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:17.680Z")
@Stability(Stable)
public interface ContainerDefinitionOptions
extends software.amazon.jsii.JsiiSerializable
Properties to define a ContainerDefinition.
Example:
SageMakerCreateModel.Builder.create(this, "Sagemaker") .modelName("MyModel") .primaryContainer(ContainerDefinition.Builder.create() .image(DockerImage.fromJsonExpression(JsonPath.stringAt("$.Model.imageName"))) .mode(Mode.SINGLE_MODEL) .modelS3Location(S3Location.fromJsonExpression("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forContainerDefinitionOptions
static final class
An implementation forContainerDefinitionOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
This parameter is ignored for models that contain only a PrimaryContainer.default TaskInput
The environment variables to set in the Docker container.default DockerImage
getImage()
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.default Mode
getMode()
Defines how many models the container hosts.default String
The name or Amazon Resource Name (ARN) of the model package to use to create the model.default S3Location
The S3 path where the model artifacts, which result from model training, are stored.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerHostName
This parameter is ignored for models that contain only a PrimaryContainer.When a ContainerDefinition is part of an inference pipeline, the value of the parameter uniquely identifies the container for the purposes of logging and metrics.
Default: - None
-
getEnvironmentVariables
The environment variables to set in the Docker container.Default: - No variables
-
getImage
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.Default: - None
-
getMode
Defines how many models the container hosts.Default: - Mode.SINGLE_MODEL
-
getModelPackageName
The name or Amazon Resource Name (ARN) of the model package to use to create the model.Default: - None
-
getModelS3Location
The S3 path where the model artifacts, which result from model training, are stored.This path must point to a single gzip compressed tar archive (.tar.gz suffix). The S3 path is required for Amazon SageMaker built-in algorithms, but not if you use your own algorithms.
Default: - None
-
builder
- Returns:
- a
ContainerDefinitionOptions.Builder
ofContainerDefinitionOptions
-