Interface ContainerDefinition
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerDefinition.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:26.114Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forContainerDefinition
static final class
An implementation forContainerDefinition
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerDefinition.Builder
builder()
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.Builder
ofContainerDefinition
-