AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

SourceAlgorithm

import "github.com/aws/aws-sdk-go/service/sagemaker"

type SourceAlgorithm struct { AlgorithmName *string `min:"1" type:"string" required:"true"` ModelDataUrl *string `type:"string"` }

Specifies an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.

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 Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.

AlgorithmName is a required field

ModelDataUrl

Type: *string

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

Method

GoString

func (s SourceAlgorithm) GoString() string

GoString returns the string representation

SetAlgorithmName

func (s *SourceAlgorithm) SetAlgorithmName(v string) *SourceAlgorithm

SetAlgorithmName sets the AlgorithmName field's value.

SetModelDataUrl

func (s *SourceAlgorithm) SetModelDataUrl(v string) *SourceAlgorithm

SetModelDataUrl sets the ModelDataUrl field's value.

String

func (s SourceAlgorithm) String() string

String returns the string representation

Validate

func (s *SourceAlgorithm) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: