AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Personalize::Solution

CfnSolution

> By default, all new solutions use automatic training. With automatic training, you incur training costs while your solution is active. To avoid unnecessary costs, when you are finished you can [update the solution](https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html) to turn off automatic training. For information about training costs, see [Amazon Personalize pricing](https://docs.aws.amazon.com/https://aws.amazon.com/personalize/pricing/) . An object that provides information about a solution. A solution includes the custom recipe, customized parameters, and trained models (Solution Versions) that Amazon Personalize uses to generate recommendations. After you create a solution, you can’t change its configuration. If you need to make changes, you can [clone the solution](https://docs.aws.amazon.com/personalize/latest/dg/cloning-solution.html) with the Amazon Personalize console or create a new one.

Import

import { CfnSolution } from 'aws-cdk-lib/aws-personalize';

Or use the module namespace:

import * as personalize from 'aws-cdk-lib/aws-personalize';
// personalize.CfnSolution

Properties

Configuration passed to the constructor as CfnSolutionProps.

datasetGroupArnRequired
string

The Amazon Resource Name (ARN) of the dataset group that provides the training data.

nameRequired
string

The name of the solution.

eventTypeOptional
string

The event type (for example, 'click' or 'like') that is used for training the model. If no `eventType` is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.

performAutoMlOptional
boolean | IResolvable

> We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see [Determining your use case.](https://docs.aws.amazon.com/personalize/latest/dg/determining-use-case.html) When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified in the solution configuration ( `recipeArn` must not be specified). When false (the default), Amazon Personalize uses `recipeArn` for training.

performHpoOptional
boolean | IResolvable

Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is `false` .

recipeArnOptional
string

The ARN of the recipe used to create the solution. This is required when `performAutoML` is false.

solutionConfigOptional
IResolvable | SolutionConfigProperty

Describes the configuration properties for the solution.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-personalize
CFN TypeAWS::Personalize::Solution
Properties7

Related Constructs

External Links