Interface ContainerDefinition
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerDefinition.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.415Z")
@Stability(Experimental)
public interface ContainerDefinition
extends software.amazon.jsii.JsiiSerializable
(experimental) Describes the container, as part of model definition.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.alpha.*;
ContainerImage containerImage;
ModelData modelData;
ContainerDefinition containerDefinition = ContainerDefinition.builder()
.image(containerImage)
// the properties below are optional
.containerHostname("containerHostname")
.environment(Map.of(
"environmentKey", "environment"))
.modelData(modelData)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forContainerDefinitionstatic final classAn implementation forContainerDefinition -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerDefinition.Builderbuilder()default String(experimental) Hostname of the container within an inference pipeline.(experimental) A map of environment variables to pass into the container.getImage()(experimental) The image used to start a container.default ModelData(experimental) S3 path to the model artifacts.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImage
(experimental) The image used to start a container. -
getContainerHostname
(experimental) Hostname of the container within an inference pipeline.For single container models, this field is ignored. When specifying a hostname for one ContainerDefinition in a pipeline, hostnames must be specified for all other ContainerDefinitions in that pipeline.
Default: - Amazon SageMaker will automatically assign a unique name based on the position of this ContainerDefinition in an inference pipeline.
- See Also:
-
getEnvironment
(experimental) A map of environment variables to pass into the container.Default: - none
-
getModelData
(experimental) S3 path to the model artifacts.Default: - none
-
builder
- Returns:
- a
ContainerDefinition.BuilderofContainerDefinition
-