aws-cdk-lib.aws_personalize.CfnSolutionProps

interface CfnSolutionProps

LanguageType name
.NETAmazon.CDK.AWS.Personalize.CfnSolutionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awspersonalize#CfnSolutionProps
Javasoftware.amazon.awscdk.services.personalize.CfnSolutionProps
Pythonaws_cdk.aws_personalize.CfnSolutionProps
TypeScript aws-cdk-lib » aws_personalize » CfnSolutionProps

Properties for defining a CfnSolution.

Example

// 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';

declare const autoMlConfig: any;
declare const hpoConfig: any;
const cfnSolutionProps: personalize.CfnSolutionProps = {
  datasetGroupArn: 'datasetGroupArn',
  name: 'name',

  // the properties below are optional
  eventType: 'eventType',
  performAutoMl: false,
  performHpo: false,
  recipeArn: 'recipeArn',
  solutionConfig: {
    algorithmHyperParameters: {
      algorithmHyperParametersKey: 'algorithmHyperParameters',
    },
    autoMlConfig: autoMlConfig,
    eventValueThreshold: 'eventValueThreshold',
    featureTransformationParameters: {
      featureTransformationParametersKey: 'featureTransformationParameters',
    },
    hpoConfig: hpoConfig,
  },
};

Properties

NameTypeDescription
datasetGroupArnstringThe Amazon Resource Name (ARN) of the dataset group that provides the training data.
namestringThe name of the solution.
eventType?stringThe event type (for example, 'click' or 'like') that is used for training the model.
performAutoMl?boolean | IResolvable> We don't recommend enabling automated machine learning.
performHpo?boolean | IResolvableWhether to perform hyperparameter optimization (HPO) on the chosen recipe.
recipeArn?stringThe ARN of the recipe used to create the solution.
solutionConfig?IResolvable | SolutionConfigPropertyDescribes the configuration properties for the solution.

datasetGroupArn

Type: string

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


name

Type: string

The name of the solution.


eventType?

Type: string (optional)

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.


performAutoMl?

Type: boolean | IResolvable (optional)

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.

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.


performHpo?

Type: boolean | IResolvable (optional)

Whether to perform hyperparameter optimization (HPO) on the chosen recipe.

The default is false .


recipeArn?

Type: string (optional)

The ARN of the recipe used to create the solution.

This is required when performAutoML is false.


solutionConfig?

Type: IResolvable | SolutionConfigProperty (optional)

Describes the configuration properties for the solution.