Skip to content
v2.274.0

CfnSolutionProps Struct ​

Properties for defining a CfnSolution.

Example ​

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

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,
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

datasetGroupArnstringdataset_group_arnstrdatasetGroupArnStringDatasetGroupArnstringDatasetGroupArn*stringrequired#
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
eventTypestringevent_typestreventTypeStringEventTypestringEventType*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.

namestringnamestrnameStringNamestringName*stringrequired#
The name of the solution.
performAutoMlboolean | IResolvableperform_auto_mltyping.Union[bool, IResolvable]performAutoMlBooleanPerformAutoMlboolPerformAutoMlinterface{}#
> We don't recommend enabling automated machine learning.
notes

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.

performHpoboolean | IResolvableperform_hpotyping.Union[bool, IResolvable]performHpoBooleanPerformHpoboolPerformHpointerface{}#
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.

The default is false .

recipeArnstringrecipe_arnstrrecipeArnStringRecipeArnstringRecipeArn*string#
The ARN of the recipe used to create the solution.

This is required when performAutoML is false.

solutionConfigIResolvable | CfnSolution.SolutionConfigPropertysolution_configtyping.Union[IResolvable, SolutionConfigProperty]solutionConfigIResolvableSolutionConfigIResolvableSolutionConfiginterface{}#
Describes the configuration properties for the solution.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags used to organize, track, or control access for this resource.