aws-cdk-lib.aws_sagemaker.CfnModelPackage.SourceAlgorithmProperty

interface SourceAlgorithmProperty

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnModelPackage.SourceAlgorithmProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnModelPackage_SourceAlgorithmProperty
Javasoftware.amazon.awscdk.services.sagemaker.CfnModelPackage.SourceAlgorithmProperty
Pythonaws_cdk.aws_sagemaker.CfnModelPackage.SourceAlgorithmProperty
TypeScript aws-cdk-lib » aws_sagemaker » CfnModelPackage » SourceAlgorithmProperty

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 { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const sourceAlgorithmProperty: sagemaker.CfnModelPackage.SourceAlgorithmProperty = {
  algorithmName: 'algorithmName',

  // the properties below are optional
  modelDataUrl: 'modelDataUrl',
};

Properties

NameTypeDescription
algorithmNamestringThe name of an algorithm that was used to create the model package.
modelDataUrl?stringThe Amazon S3 path where the model artifacts, which result from model training, are stored.

algorithmName

Type: string

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.


modelDataUrl?

Type: string (optional)

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.