@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-27T20:28:49.187Z") @Stability(value=Stable) public interface ContainerDefinitionOptions extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ContainerDefinitionOptions.Builder
A builder for
ContainerDefinitionOptions |
static class |
ContainerDefinitionOptions.Jsii$Proxy
An implementation for
ContainerDefinitionOptions |
| Modifier and Type | Method and Description |
|---|---|
static ContainerDefinitionOptions.Builder |
builder() |
default String |
getContainerHostName()
This parameter is ignored for models that contain only a PrimaryContainer.
|
default TaskInput |
getEnvironmentVariables()
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 |
getModelPackageName()
The name or Amazon Resource Name (ARN) of the model package to use to create the model.
|
default S3Location |
getModelS3Location()
The S3 path where the model artifacts, which result from model training, are stored.
|
@Stability(value=Stable) @Nullable default String getContainerHostName()
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
@Stability(value=Stable) @Nullable default TaskInput getEnvironmentVariables()
Default: - No variables
@Stability(value=Stable) @Nullable default DockerImage getImage()
Default: - None
@Stability(value=Stable) @Nullable default Mode getMode()
Default: - Mode.SINGLE_MODEL
@Stability(value=Stable) @Nullable default String getModelPackageName()
Default: - None
@Stability(value=Stable) @Nullable default S3Location getModelS3Location()
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
@Stability(value=Stable) static ContainerDefinitionOptions.Builder builder()
ContainerDefinitionOptions.Builder of ContainerDefinitionOptionsCopyright © 2022. All rights reserved.