AWS::SageMaker::ModelPackage SourceAlgorithm - AWS CloudFormation

AWS::SageMaker::ModelPackage SourceAlgorithm

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.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "AlgorithmName" : String, "ModelDataUrl" : String }

YAML

AlgorithmName: String ModelDataUrl: String

Properties

AlgorithmName

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.

Required: Yes

Type: String

Pattern: (arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:[a-z\-]*\/)?([a-zA-Z0-9]([a-zA-Z0-9-]){0,62})(?<!-)$

Minimum: 1

Maximum: 170

Update requires: Replacement

ModelDataUrl

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).

Note

The model artifacts must be in an S3 bucket that is in the same AWS region as the algorithm.

Required: No

Type: String

Pattern: ^(https|s3)://([^/]+)/?(.*)$

Maximum: 1024

Update requires: Replacement