Interface CfnModelPackage.ModelPackageContainerDefinitionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnModelPackage.ModelPackageContainerDefinitionProperty extends
Describes the Docker container for the model package.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Object modelInput;
 ModelPackageContainerDefinitionProperty modelPackageContainerDefinitionProperty = ModelPackageContainerDefinitionProperty.builder()
         // the properties below are optional
                 "environmentKey", "environment"))
  • Method Details

    • getImage

      @Stability(Stable) @NotNull String getImage()
      The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.

      If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker .

    • getContainerHostname

      @Stability(Stable) @Nullable default String getContainerHostname()
      The DNS host name for the Docker container.
    • getEnvironment

      @Stability(Stable) @Nullable default Object getEnvironment()
      The environment variables to set in the Docker container.

      Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

    • getFramework

      @Stability(Stable) @Nullable default String getFramework()
      The machine learning framework of the model package container image.
    • getFrameworkVersion

      @Stability(Stable) @Nullable default String getFrameworkVersion()
      The framework version of the Model Package Container Image.
    • getImageDigest

      @Stability(Stable) @Nullable default String getImageDigest()
      An MD5 hash of the training algorithm that identifies the Docker image used for training.
    • getModelDataUrl

      @Stability(Stable) @Nullable default String getModelDataUrl()
      The Amazon 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 model artifacts must be in an S3 bucket that is in the same region as the model package.

    • getModelInput

      @Stability(Stable) @Nullable default Object getModelInput()
      A structure with Model Input details.
    • getNearestModelName

      @Stability(Stable) @Nullable default String getNearestModelName()
      The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.

      You can find a list of benchmarked models by calling ListModelMetadata .

    • getProductId

      @Stability(Stable) @Nullable default String getProductId()
      The AWS Marketplace product ID of the model package.
    • builder

      a CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder of CfnModelPackage.ModelPackageContainerDefinitionProperty