Class ContainerDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerDefinition>
- Enclosing class:
- ContainerDefinition
@Stability(Stable)
public static final class ContainerDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<ContainerDefinition>
A fluent builder for
ContainerDefinition
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
containerHostName
(String containerHostName) This parameter is ignored for models that contain only a PrimaryContainer.static ContainerDefinition.Builder
create()
environmentVariables
(TaskInput environmentVariables) The environment variables to set in the Docker container.image
(DockerImage image) The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.Defines how many models the container hosts.modelPackageName
(String modelPackageName) The name or Amazon Resource Name (ARN) of the model package to use to create the model.modelS3Location
(S3Location modelS3Location) The S3 path where the model artifacts, which result from model training, are stored.
-
Method Details
-
create
- Returns:
- a new instance of
ContainerDefinition.Builder
.
-
containerHostName
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
- Parameters:
containerHostName
- This parameter is ignored for models that contain only a PrimaryContainer. This parameter is required.- Returns:
this
-
environmentVariables
@Stability(Stable) public ContainerDefinition.Builder environmentVariables(TaskInput environmentVariables) The environment variables to set in the Docker container.Default: - No variables
- Parameters:
environmentVariables
- The environment variables to set in the Docker container. This parameter is required.- Returns:
this
-
image
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.Default: - None
- Parameters:
image
- The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. This parameter is required.- Returns:
this
-
mode
Defines how many models the container hosts.Default: - Mode.SINGLE_MODEL
- Parameters:
mode
- Defines how many models the container hosts. This parameter is required.- Returns:
this
-
modelPackageName
The name or Amazon Resource Name (ARN) of the model package to use to create the model.Default: - None
- Parameters:
modelPackageName
- The name or Amazon Resource Name (ARN) of the model package to use to create the model. This parameter is required.- Returns:
this
-
modelS3Location
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
- Parameters:
modelS3Location
- The S3 path where the model artifacts, which result from model training, are stored. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ContainerDefinition>
- Returns:
- a newly built instance of
ContainerDefinition
.
-