@aws-cdk_aws-sagemaker-alpha.ContainerDefinition

interface ContainerDefinition ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.Alpha.ContainerDefinition
Gogithub.com/aws/aws-cdk-go/awscdksagemakeralpha/v2#ContainerDefinition
Javasoftware.amazon.awscdk.services.sagemaker.alpha.ContainerDefinition
Pythonaws_cdk.aws_sagemaker_alpha.ContainerDefinition
TypeScript (source)@aws-cdk/aws-sagemaker-alpha ยป ContainerDefinition

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 * 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

NameTypeDescription
image๐Ÿ”นContainerImageThe image used to start a container.
containerHostname?๐Ÿ”นstringHostname of the container within an inference pipeline.
environment?๐Ÿ”น{ [string]: string }A map of environment variables to pass into the container.
modelData?๐Ÿ”นModelDataS3 path to the model artifacts.

image๐Ÿ”น

Type: ContainerImage

The image used to start a container.


containerHostname?๐Ÿ”น

Type: string (optional, default: Amazon SageMaker will automatically assign a unique name based on the position of this ContainerDefinition in an inference pipeline.)

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.

See also: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-containerhostname


environment?๐Ÿ”น

Type: { [string]: string } (optional, default: none)

A map of environment variables to pass into the container.


modelData?๐Ÿ”น

Type: ModelData (optional, default: none)

S3 path to the model artifacts.