@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-02T14:17:16.191Z") @Stability(value=Stable) public class CfnSolution extends CfnResource implements IInspectable
An object that provides information about a solution. A solution is a trained model that can be deployed as a campaign.
Example:
// 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;
CfnSolution cfnSolution = CfnSolution.Builder.create(this, "MyCfnSolution")
.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())
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnSolution.AlgorithmHyperParameterRangesProperty
Example:
|
static interface |
CfnSolution.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.
|
static class |
CfnSolution.Builder
A fluent builder for
CfnSolution. |
static interface |
CfnSolution.CategoricalHyperParameterRangeProperty
Provides the name and range of a categorical hyperparameter.
|
static interface |
CfnSolution.ContinuousHyperParameterRangeProperty
Provides the name and range of a continuous hyperparameter.
|
static interface |
CfnSolution.HpoConfigProperty
Describes the properties for hyperparameter optimization (HPO).
|
static interface |
CfnSolution.HpoObjectiveProperty
The metric to optimize during hyperparameter optimization (HPO).
|
static interface |
CfnSolution.HpoResourceConfigProperty
Describes the resource configuration for hyperparameter optimization (HPO).
|
static interface |
CfnSolution.IntegerHyperParameterRangeProperty
Provides the name and range of an integer-valued hyperparameter.
|
static interface |
CfnSolution.SolutionConfigProperty
Describes the configuration properties for the solution.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnSolution(Construct scope,
String id,
CfnSolutionProps props)
Create a new `AWS::Personalize::Solution`.
|
protected |
CfnSolution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSolution(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrSolutionArn()
The Amazon Resource Name (ARN) of the solution.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDatasetGroupArn()
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
|
String |
getEventType()
The event type (for example, 'click' or 'like') that is used for training the model.
|
String |
getName()
The name of the solution.
|
Object |
getPerformAutoMl()
> We don't recommend enabling automated machine learning.
|
Object |
getPerformHpo()
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
|
String |
getRecipeArn()
The ARN of the recipe used to create the solution.
|
Object |
getSolutionConfig()
Describes the configuration properties for the solution.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDatasetGroupArn(String value)
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
|
void |
setEventType(String value)
The event type (for example, 'click' or 'like') that is used for training the model.
|
void |
setName(String value)
The name of the solution.
|
void |
setPerformAutoMl(Boolean value)
> We don't recommend enabling automated machine learning.
|
void |
setPerformAutoMl(IResolvable value)
> We don't recommend enabling automated machine learning.
|
void |
setPerformHpo(Boolean value)
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
|
void |
setPerformHpo(IResolvable value)
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
|
void |
setRecipeArn(String value)
The ARN of the recipe used to create the solution.
|
void |
setSolutionConfig(CfnSolution.SolutionConfigProperty value)
Describes the configuration properties for the solution.
|
void |
setSolutionConfig(IResolvable value)
Describes the configuration properties for the solution.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSolution(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSolution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSolution(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnSolutionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrSolutionArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDatasetGroupArn()
@Stability(value=Stable)
public void setDatasetGroupArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getEventType()
If no eventType is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.
@Stability(value=Stable)
public void setEventType(@Nullable
String value)
If no eventType is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.
@Stability(value=Stable) @Nullable public Object getPerformAutoMl()
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.
@Stability(value=Stable)
public void setPerformAutoMl(@Nullable
Boolean value)
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.
@Stability(value=Stable)
public void setPerformAutoMl(@Nullable
IResolvable value)
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.
@Stability(value=Stable) @Nullable public Object getPerformHpo()
The default is false .
@Stability(value=Stable)
public void setPerformHpo(@Nullable
Boolean value)
The default is false .
@Stability(value=Stable)
public void setPerformHpo(@Nullable
IResolvable value)
The default is false .
@Stability(value=Stable) @Nullable public String getRecipeArn()
@Stability(value=Stable)
public void setRecipeArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getSolutionConfig()
@Stability(value=Stable)
public void setSolutionConfig(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setSolutionConfig(@Nullable
CfnSolution.SolutionConfigProperty value)
Copyright © 2023. All rights reserved.