# AlgorithmReference

A reference to a Algorithm resource.

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 2026

## 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 interfaces_sagemaker } from 'aws-cdk-lib/interfaces';
const algorithmReference: interfaces_sagemaker.AlgorithmReference = {
  algorithmArn: 'algorithmArn',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_sagemaker as interfaces_sagemaker

algorithm_reference = interfaces_sagemaker.AlgorithmReference(
    algorithm_arn="algorithmArn"
)
```

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.interfaces.sagemaker.*;

AlgorithmReference algorithmReference = AlgorithmReference.builder()
        .algorithmArn("algorithmArn")
        .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.Interfaces.Sagemaker;

var algorithmReference = new AlgorithmReference {
    AlgorithmArn = "algorithmArn"
};
```

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"

algorithmReference := &AlgorithmReference{
	AlgorithmArn: jsii.String("algorithmArn"),
}
```

## Properties

- `algorithmArn`: string (required) — The AlgorithmArn of the Algorithm resource.
