ContainerDefinition Struct
Describes the container, as part of model definition.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sagemaker_alpha from '@aws-cdk/aws-sagemaker-alpha';
declare const containerImage: sagemaker_alpha.ContainerImage;
declare const modelData: sagemaker_alpha.ModelData;
const containerDefinition: sagemaker_alpha.ContainerDefinition = {
image: containerImage,
// the properties below are optional
containerHostname: 'containerHostname',
environment: {
environmentKey: 'environment',
},
modelData: modelData,
};
Properties
containerHostnamestringcontainer_hostnamestrcontainerHostnameStringContainerHostnamestringContainerHostname*string= Amazon SageMaker will automatica…#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
Default: Amazon SageMaker will automatically assign a unique name based on the position of this ContainerDefinition in an inference pipeline.
environment{ [key: string]: string }environmenttyping.Mapping[str, str]environmentMap<String, String>EnvironmentIDictionary<string, string>Environment*map[string]*string= none#A map of environment variables to pass into the container.
imageContainerImageimageContainerImageimageContainerImageImageContainerImageImageContainerImagerequired#The image used to start a container.