# SourceAlgorithmSpecificationProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `sourceAlgorithms`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelPackage.SourceAlgorithmProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelPackage.SourceAlgorithmProperty.html)[] (required) — A list of the algorithms that were used to create a model package.
