@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.176Z") @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 class |
CfnSolution.Builder
A fluent builder for
CfnSolution. |
static interface |
CfnSolution.SolutionConfigProperty
Describes the configuration properties for the solution.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| 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(software.constructs.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()
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).
|
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)
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).
|
void |
setPerformAutoMl(IResolvable value)
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).
|
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, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, 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
software.constructs.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()
When false (the default), Amazon Personalize uses recipeArn for training.
@Stability(value=Stable)
public void setPerformAutoMl(@Nullable
Boolean value)
When false (the default), Amazon Personalize uses recipeArn for training.
@Stability(value=Stable)
public void setPerformAutoMl(@Nullable
IResolvable value)
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
CfnSolution.SolutionConfigProperty value)
@Stability(value=Stable)
public void setSolutionConfig(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.