Skip to content
v2.277.0

SourceAlgorithmSpecificationProperty Struct ​

A list of algorithms that were used to create a model package.

Example ​

ts
// 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 sourceAlgorithmSpecificationProperty: sagemaker.CfnModelPackage.SourceAlgorithmSpecificationProperty = {
  sourceAlgorithms: [{
    algorithmName: 'algorithmName',

    // the properties below are optional
    modelDataUrl: 'modelDataUrl',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

source_algorithm_specification_property = sagemaker.CfnModelPackage.SourceAlgorithmSpecificationProperty(
    source_algorithms=[sagemaker.CfnModelPackage.SourceAlgorithmProperty(
        algorithm_name="algorithmName",

        # the properties below are optional
        model_data_url="modelDataUrl"
    )]
)
java
// 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.*;

SourceAlgorithmSpecificationProperty sourceAlgorithmSpecificationProperty = SourceAlgorithmSpecificationProperty.builder()
        .sourceAlgorithms(List.of(SourceAlgorithmProperty.builder()
                .algorithmName("algorithmName")

                // the properties below are optional
                .modelDataUrl("modelDataUrl")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var sourceAlgorithmSpecificationProperty = new SourceAlgorithmSpecificationProperty {
    SourceAlgorithms = new [] { new SourceAlgorithmProperty {
        AlgorithmName = "algorithmName",

        // the properties below are optional
        ModelDataUrl = "modelDataUrl"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sourceAlgorithmSpecificationProperty := &SourceAlgorithmSpecificationProperty{
	SourceAlgorithms: []interface{}{
		&SourceAlgorithmProperty{
			AlgorithmName: jsii.String("algorithmName"),

			// the properties below are optional
			ModelDataUrl: jsii.String("modelDataUrl"),
		},
	},
}

Properties ​

sourceAlgorithmsIResolvable | IResolvable | CfnModelPackage.SourceAlgorithmProperty[]source_algorithmstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SourceAlgorithmProperty]]]sourceAlgorithmsIResolvableSourceAlgorithmsIResolvableSourceAlgorithmsinterface{} required #
A list of the algorithms that were used to create a model package.