Class CfnSolution

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:00.711Z") @Stability(Stable) public class CfnSolution extends CfnResource implements IInspectable
A CloudFormation 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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::Personalize::Solution.

      Parameters:
      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.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrSolutionArn

      @Stability(Stable) @NotNull public String getAttrSolutionArn()
      The Amazon Resource Name (ARN) of the solution.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getDatasetGroupArn

      @Stability(Stable) @NotNull public String getDatasetGroupArn()
      The Amazon Resource Name (ARN) of the dataset group that provides the training data.
    • setDatasetGroupArn

      @Stability(Stable) public void setDatasetGroupArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the dataset group that provides the training data.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the solution.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the solution.
    • getEventType

      @Stability(Stable) @Nullable public String 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

      @Stability(Stable) public void setEventType(@Nullable String value)
      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

      @Stability(Stable) @Nullable public Object 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 uses recipeArn for training.

    • setPerformAutoMl

      @Stability(Stable) public void setPerformAutoMl(@Nullable Boolean value)

      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 uses recipeArn for training.

    • setPerformAutoMl

      @Stability(Stable) public void setPerformAutoMl(@Nullable IResolvable value)

      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 uses recipeArn for training.

    • getPerformHpo

      @Stability(Stable) @Nullable public Object getPerformHpo()
      Whether to perform hyperparameter optimization (HPO) on the chosen recipe.

      The default is false .

    • setPerformHpo

      @Stability(Stable) public void setPerformHpo(@Nullable Boolean value)
      Whether to perform hyperparameter optimization (HPO) on the chosen recipe.

      The default is false .

    • setPerformHpo

      @Stability(Stable) public void setPerformHpo(@Nullable IResolvable value)
      Whether to perform hyperparameter optimization (HPO) on the chosen recipe.

      The default is false .

    • getRecipeArn

      @Stability(Stable) @Nullable public String getRecipeArn()
      The ARN of the recipe used to create the solution.
    • setRecipeArn

      @Stability(Stable) public void setRecipeArn(@Nullable String value)
      The ARN of the recipe used to create the solution.
    • getSolutionConfig

      @Stability(Stable) @Nullable public Object getSolutionConfig()
      Describes the configuration properties for the solution.
    • setSolutionConfig

      @Stability(Stable) public void setSolutionConfig(@Nullable IResolvable value)
      Describes the configuration properties for the solution.
    • setSolutionConfig

      @Stability(Stable) public void setSolutionConfig(@Nullable CfnSolution.SolutionConfigProperty value)
      Describes the configuration properties for the solution.