Skip to main content

solutions

Creates, updates, deletes or gets a solution resource or lists solutions in a region

Overview

Namesolutions
TypeResource
DescriptionResource schema for AWS::Personalize::Solution.
Idaws.personalize.solutions

Fields

NameDatatypeDescription
namestringThe name for the solution
solution_arnstringThe ARN of the solution
event_typestringWhen your have multiple event types (using an EVENT_TYPE schema field), this parameter specifies which event type (for example, 'click' or 'like') is used for training the model. If you do not provide an eventType, Amazon Personalize will use all interactions for training with equal weight regardless of type.
dataset_group_arnstringThe ARN of the dataset group that provides the training data.
perform_auto_mlbooleanWhether to perform automated machine learning (AutoML). The default is false. For this case, you must specify recipeArn.
perform_hpobooleanWhether to perform hyperparameter optimization (HPO) on the specified or selected recipe. The default is false. When performing AutoML, this parameter is always true and you should not set it to false.
recipe_arnstringThe ARN of the recipe to use for model training. Only specified when performAutoML is false.
solution_configobjectThe configuration to use with the solution. When performAutoML is set to true, Amazon Personalize only evaluates the autoMLConfig section of the solution configuration.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, DatasetGroupArn, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all solutions in a region.

SELECT
region,
name,
solution_arn,
event_type,
dataset_group_arn,
perform_auto_ml,
perform_hpo,
recipe_arn,
solution_config
FROM aws.personalize.solutions
WHERE region = 'us-east-1';

Gets all properties from an individual solution.

SELECT
region,
name,
solution_arn,
event_type,
dataset_group_arn,
perform_auto_ml,
perform_hpo,
recipe_arn,
solution_config
FROM aws.personalize.solutions
WHERE region = 'us-east-1' AND data__Identifier = '<SolutionArn>';

INSERT example

Use the following StackQL query and manifest file to create a new solution resource, using stack-deploy.

/*+ create */
INSERT INTO aws.personalize.solutions (
Name,
DatasetGroupArn,
region
)
SELECT
'{{ Name }}',
'{{ DatasetGroupArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.personalize.solutions
WHERE data__Identifier = '<SolutionArn>'
AND region = 'us-east-1';

Permissions

To operate on the solutions resource, the following permissions are required:

Create

personalize:CreateSolution,
personalize:DescribeSolution

Read

personalize:DescribeSolution

Delete

personalize:DeleteSolution,
personalize:DescribeSolution

List

personalize:ListSolutions