Interface CfnModelPackage.SourceAlgorithmProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnModelPackage.SourceAlgorithmProperty.Jsii$Proxy
Enclosing class:
CfnModelPackage

@Stability(Stable) public static interface CfnModelPackage.SourceAlgorithmProperty extends software.amazon.jsii.JsiiSerializable
Specifies an algorithm that was used to create the model package.

The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.

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.*;
 SourceAlgorithmProperty sourceAlgorithmProperty = SourceAlgorithmProperty.builder()
         .algorithmName("algorithmName")
         // the properties below are optional
         .modelDataUrl("modelDataUrl")
         .build();
 
  • Method Details

    • getAlgorithmName

      @Stability(Stable) @NotNull String getAlgorithmName()
      The name of an algorithm that was used to create the model package.

      The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.

    • 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 AWS region as the algorithm.

    • builder

      @Stability(Stable) static CfnModelPackage.SourceAlgorithmProperty.Builder builder()
      Returns:
      a CfnModelPackage.SourceAlgorithmProperty.Builder of CfnModelPackage.SourceAlgorithmProperty