UpdateSolution
Updates an Amazon Personalize solution to use a different automatic training configuration. When you update a solution, you can change whether the solution uses automatic training, and you can change the training frequency. For more information about updating a solution, see Updating a solution.
A solution update can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
To get the status of a solution update, call the
DescribeSolution API operation and find the status
in the latestSolutionUpdate
.
Request Syntax
{
"performAutoTraining": boolean
,
"solutionArn": "string
",
"solutionUpdateConfig": {
"autoTrainingConfig": {
"schedulingExpression": "string
"
}
}
}
Request Parameters
The request accepts the following data in JSON format.
- performAutoTraining
-
Whether the solution uses automatic training to create new solution versions (trained models). You can change the training frequency by specifying a
schedulingExpression
in theAutoTrainingConfig
as part of solution configuration.If you turn on automatic training, the first automatic training starts within one hour after the solution update completes. If you manually create a solution version within the hour, the solution skips the first automatic training. For more information about automatic training, see Configuring automatic training.
After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.
Type: Boolean
Required: No
- solutionArn
-
The Amazon Resource Name (ARN) of the solution to update.
Type: String
Length Constraints: Maximum length of 256.
Pattern:
arn:([a-z\d-]+):personalize:.*:.*:.+
Required: Yes
- solutionUpdateConfig
-
The new configuration details of the solution.
Type: SolutionUpdateConfig object
Required: No
Response Syntax
{
"solutionArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- solutionArn
-
The same solution Amazon Resource Name (ARN) as given in the request.
Type: String
Length Constraints: Maximum length of 256.
Pattern:
arn:([a-z\d-]+):personalize:.*:.*:.+
Errors
- InvalidInputException
-
Provide a valid value for the field or parameter.
HTTP Status Code: 400
- LimitExceededException
-
The limit on the number of requests per second has been exceeded.
HTTP Status Code: 400
- ResourceInUseException
-
The specified resource is in use.
HTTP Status Code: 400
- ResourceInUseException
-
The specified resource is in use.
HTTP Status Code: 400
- ResourceNotFoundException
-
Could not find the specified resource.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: