Class CfnSolution
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Personalize::Solution
.
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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Example:static interface
Example:static final class
A fluent builder forCfnSolution
.static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Describes the configuration properties for the solution.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnSolution
(Construct scope, String id, CfnSolutionProps props) Create a newAWS::Personalize::Solution
.protected
CfnSolution
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnSolution
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the solution.The Amazon Resource Name (ARN) of the dataset group that provides the training data.The event type (for example, 'click' or 'like') that is used for training the model.getName()
The name of the solution.Whether to perform hyperparameter optimization (HPO) on the chosen recipe.The ARN of the recipe used to create the solution.Describes the configuration properties for the solution.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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
The name of the solution.void
setPerformAutoMl
(Boolean value) void
setPerformAutoMl
(IResolvable value) 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
(IResolvable value) Describes the configuration properties for the solution.void
Describes the configuration properties for the solution.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSolution
protected CfnSolution(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSolution
protected CfnSolution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSolution
@Stability(Stable) public CfnSolution(@NotNull Construct scope, @NotNull String id, @NotNull CfnSolutionProps props) Create a newAWS::Personalize::Solution
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrSolutionArn
The Amazon Resource Name (ARN) of the solution. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getDatasetGroupArn
The Amazon Resource Name (ARN) of the dataset group that provides the training data. -
setDatasetGroupArn
The Amazon Resource Name (ARN) of the dataset group that provides the training data. -
getName
The name of the solution. -
setName
The name of the solution. -
getEventType
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. -
setEventType
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. -
getPerformAutoMl
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 usesrecipeArn
for training. -
setPerformAutoMl
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 usesrecipeArn
for training. -
setPerformAutoMl
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 usesrecipeArn
for training. -
getPerformHpo
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.The default is
false
. -
setPerformHpo
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.The default is
false
. -
setPerformHpo
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.The default is
false
. -
getRecipeArn
The ARN of the recipe used to create the solution. -
setRecipeArn
The ARN of the recipe used to create the solution. -
getSolutionConfig
Describes the configuration properties for the solution. -
setSolutionConfig
Describes the configuration properties for the solution. -
setSolutionConfig
@Stability(Stable) public void setSolutionConfig(@Nullable CfnSolution.SolutionConfigProperty value) Describes the configuration properties for the solution.
-