diff --git a/clients/client-personalize/README.md b/clients/client-personalize/README.md index 3da815443b3f..43844902b1ee 100644 --- a/clients/client-personalize/README.md +++ b/clients/client-personalize/README.md @@ -764,3 +764,11 @@ UpdateRecommender [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/UpdateRecommenderCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateRecommenderCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateRecommenderCommandOutput/) +
+ +UpdateSolution + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/UpdateSolutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateSolutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateSolutionCommandOutput/) + +
diff --git a/clients/client-personalize/src/Personalize.ts b/clients/client-personalize/src/Personalize.ts index cba94a8a3799..c5a5269334c1 100644 --- a/clients/client-personalize/src/Personalize.ts +++ b/clients/client-personalize/src/Personalize.ts @@ -336,6 +336,11 @@ import { UpdateRecommenderCommandInput, UpdateRecommenderCommandOutput, } from "./commands/UpdateRecommenderCommand"; +import { + UpdateSolutionCommand, + UpdateSolutionCommandInput, + UpdateSolutionCommandOutput, +} from "./commands/UpdateSolutionCommand"; import { PersonalizeClient, PersonalizeClientConfig } from "./PersonalizeClient"; const commands = { @@ -409,6 +414,7 @@ const commands = { UpdateDatasetCommand, UpdateMetricAttributionCommand, UpdateRecommenderCommand, + UpdateSolutionCommand, }; export interface Personalize { @@ -1499,6 +1505,20 @@ export interface Personalize { options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRecommenderCommandOutput) => void ): void; + + /** + * @see {@link UpdateSolutionCommand} + */ + updateSolution( + args: UpdateSolutionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateSolution(args: UpdateSolutionCommandInput, cb: (err: any, data?: UpdateSolutionCommandOutput) => void): void; + updateSolution( + args: UpdateSolutionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateSolutionCommandOutput) => void + ): void; } /** diff --git a/clients/client-personalize/src/PersonalizeClient.ts b/clients/client-personalize/src/PersonalizeClient.ts index 813f4d56890d..d3a84e616f79 100644 --- a/clients/client-personalize/src/PersonalizeClient.ts +++ b/clients/client-personalize/src/PersonalizeClient.ts @@ -213,6 +213,7 @@ import { UpdateMetricAttributionCommandOutput, } from "./commands/UpdateMetricAttributionCommand"; import { UpdateRecommenderCommandInput, UpdateRecommenderCommandOutput } from "./commands/UpdateRecommenderCommand"; +import { UpdateSolutionCommandInput, UpdateSolutionCommandOutput } from "./commands/UpdateSolutionCommand"; import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, @@ -297,7 +298,8 @@ export type ServiceInputTypes = | UpdateCampaignCommandInput | UpdateDatasetCommandInput | UpdateMetricAttributionCommandInput - | UpdateRecommenderCommandInput; + | UpdateRecommenderCommandInput + | UpdateSolutionCommandInput; /** * @public @@ -372,7 +374,8 @@ export type ServiceOutputTypes = | UpdateCampaignCommandOutput | UpdateDatasetCommandOutput | UpdateMetricAttributionCommandOutput - | UpdateRecommenderCommandOutput; + | UpdateRecommenderCommandOutput + | UpdateSolutionCommandOutput; /** * @public diff --git a/clients/client-personalize/src/commands/CreateSolutionCommand.ts b/clients/client-personalize/src/commands/CreateSolutionCommand.ts index 6e841d4b3dd9..cad0d61cdd48 100644 --- a/clients/client-personalize/src/commands/CreateSolutionCommand.ts +++ b/clients/client-personalize/src/commands/CreateSolutionCommand.ts @@ -29,8 +29,10 @@ export interface CreateSolutionCommandOutput extends CreateSolutionResponse, __M /** * - *

After you create a solution, you can’t change its configuration. By default, all new solutions use automatic training. With automatic training, you incur training costs while - * your solution is active. You can't stop automatic training for a solution. To avoid unnecessary costs, make sure to delete the solution when you are finished. For information about training + *

By default, all new solutions use automatic training. With automatic training, you incur training costs while + * your solution is active. To avoid unnecessary costs, when you are finished you can + * update the solution to turn off automatic training. + * For information about training * costs, see Amazon Personalize pricing.

*
*

Creates the configuration for training a model (creating a solution version). This configuration @@ -39,7 +41,7 @@ export interface CreateSolutionCommandOutput extends CreateSolutionResponse, __M *

*

* By default, new solutions use automatic training to create solution versions every 7 days. You can change the training frequency. - * Automatic solution version creation starts one hour after the solution is ACTIVE. If you manually create a solution version within + * Automatic solution version creation starts within one hour after the solution is ACTIVE. If you manually create a solution version within * the hour, the solution skips the first automatic training. For more information, * see Configuring automatic training.

*

@@ -78,6 +80,11 @@ export interface CreateSolutionCommandOutput extends CreateSolutionResponse, __M *