# AutoMLConfigProperty

When the solution performs AutoML ( `performAutoML` is true in [CreateSolution](https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolution.html) ), Amazon Personalize determines which recipe, from the specified list, optimizes the given metric. Amazon Personalize then uses that recipe for the solution.

- 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_personalize as personalize } from 'aws-cdk-lib';
const autoMLConfigProperty: personalize.CfnSolution.AutoMLConfigProperty = {
  metricName: 'metricName',
  recipeList: ['recipeList'],
};
```

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_personalize as personalize

auto_ml_config_property = personalize.CfnSolution.AutoMLConfigProperty(
    metric_name="metricName",
    recipe_list=["recipeList"]
)
```

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.personalize.*;

AutoMLConfigProperty autoMLConfigProperty = AutoMLConfigProperty.builder()
        .metricName("metricName")
        .recipeList(List.of("recipeList"))
        .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.Personalize;

var autoMLConfigProperty = new AutoMLConfigProperty {
    MetricName = "metricName",
    RecipeList = new [] { "recipeList" }
};
```

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"

autoMLConfigProperty := &AutoMLConfigProperty{
	MetricName: jsii.String("metricName"),
	RecipeList: []*string{
		jsii.String("recipeList"),
	},
}
```

## Properties

- `metricName`: string — The metric to optimize.

- `recipeList`: string[] — The list of candidate recipes.
