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.
Idawscc.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.

For more information, see AWS::Personalize::Solution.

Methods

NameResourceAccessible byRequired Params
create_resourcesolutionsINSERTName, DatasetGroupArn, region
delete_resourcesolutionsDELETEIdentifier, region
list_resourcessolutions_list_onlySELECTregion
get_resourcesolutionsSELECTIdentifier, region

SELECT examples

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 awscc.personalize.solutions
WHERE
region = '{{ region }}' AND
Identifier = '{{ solution_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.personalize.solutions (
Name,
DatasetGroupArn,
region
)
SELECT
'{{ name }}',
'{{ dataset_group_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.personalize.solutions
WHERE
Identifier = '{{ solution_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

personalize:CreateSolution,
personalize:DescribeSolution