CfnSolutionProps Struct
Properties for defining a CfnSolution.
| Source | |
|---|---|
| Type last changed |
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',
}],
};
python
from aws_cdk import CfnTag
# 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: Any
# hpo_config: Any
cfn_solution_props = personalize.CfnSolutionProps(
dataset_group_arn="datasetGroupArn",
name="name",
# the properties below are optional
event_type="eventType",
perform_auto_ml=False,
perform_hpo=False,
recipe_arn="recipeArn",
solution_config=personalize.CfnSolution.SolutionConfigProperty(
algorithm_hyper_parameters={
"algorithm_hyper_parameters_key": "algorithmHyperParameters"
},
auto_ml_config=auto_ml_config,
event_value_threshold="eventValueThreshold",
feature_transformation_parameters={
"feature_transformation_parameters_key": "featureTransformationParameters"
},
hpo_config=hpo_config
),
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
Object autoMlConfig;
Object hpoConfig;
CfnSolutionProps cfnSolutionProps = CfnSolutionProps.builder()
.datasetGroupArn("datasetGroupArn")
.name("name")
// the properties below are optional
.eventType("eventType")
.performAutoMl(false)
.performHpo(false)
.recipeArn("recipeArn")
.solutionConfig(SolutionConfigProperty.builder()
.algorithmHyperParameters(Map.of(
"algorithmHyperParametersKey", "algorithmHyperParameters"))
.autoMlConfig(autoMlConfig)
.eventValueThreshold("eventValueThreshold")
.featureTransformationParameters(Map.of(
"featureTransformationParametersKey", "featureTransformationParameters"))
.hpoConfig(hpoConfig)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
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 autoMlConfig;
var hpoConfig;
var cfnSolutionProps = new CfnSolutionProps {
DatasetGroupArn = "datasetGroupArn",
Name = "name",
// the properties below are optional
EventType = "eventType",
PerformAutoMl = false,
PerformHpo = false,
RecipeArn = "recipeArn",
SolutionConfig = new SolutionConfigProperty {
AlgorithmHyperParameters = new Dictionary<string, string> {
{ "algorithmHyperParametersKey", "algorithmHyperParameters" }
},
AutoMlConfig = autoMlConfig,
EventValueThreshold = "eventValueThreshold",
FeatureTransformationParameters = new Dictionary<string, string> {
{ "featureTransformationParametersKey", "featureTransformationParameters" }
},
HpoConfig = hpoConfig
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
var autoMlConfig interface{}
var hpoConfig interface{}
cfnSolutionProps := &CfnSolutionProps{
DatasetGroupArn: jsii.String("datasetGroupArn"),
Name: jsii.String("name"),
// the properties below are optional
EventType: jsii.String("eventType"),
PerformAutoMl: jsii.Boolean(false),
PerformHpo: jsii.Boolean(false),
RecipeArn: jsii.String("recipeArn"),
SolutionConfig: &SolutionConfigProperty{
AlgorithmHyperParameters: map[string]*string{
"algorithmHyperParametersKey": jsii.String("algorithmHyperParameters"),
},
AutoMlConfig: autoMlConfig,
EventValueThreshold: jsii.String("eventValueThreshold"),
FeatureTransformationParameters: map[string]*string{
"featureTransformationParametersKey": jsii.String("featureTransformationParameters"),
},
HpoConfig: hpoConfig,
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
datasetGroupArnstringdataset_group_arnstrdatasetGroupArnStringDatasetGroupArnstringDatasetGroupArn*string required #The Amazon Resource Name (ARN) of the dataset group that provides the training data.
eventTypeoptionalstringevent_typeoptionalstreventTypeoptionalStringEventTypeoptionalstringEventTypeoptional*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.
The name of the solution.
performAutoMloptionalboolean | IResolvableperform_auto_mloptionaltyping.Union[bool, IResolvable]performAutoMloptionalBooleanPerformAutoMloptionalboolPerformAutoMloptionalinterface{} #> 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.
performHpooptionalboolean | IResolvableperform_hpooptionaltyping.Union[bool, IResolvable]performHpooptionalBooleanPerformHpooptionalboolPerformHpooptionalinterface{} #Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
The default is false .
recipeArnoptionalstringrecipe_arnoptionalstrrecipeArnoptionalStringRecipeArnoptionalstringRecipeArnoptional*string #The ARN of the recipe used to create the solution.
This is required when performAutoML is false.
solutionConfigoptionalIResolvable | CfnSolution.solution_configoptionaltyping.Union[IResolvable, SolutionConfigProperty]solutionConfigoptionalIResolvableSolutionConfigoptionalIResolvableSolutionConfigoptionalinterface{} #Describes the configuration properties for the solution.