aws_sdk_personalize/client/
update_solution.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateSolution`](crate::operation::update_solution::builders::UpdateSolutionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`solution_arn(impl Into<String>)`](crate::operation::update_solution::builders::UpdateSolutionFluentBuilder::solution_arn) / [`set_solution_arn(Option<String>)`](crate::operation::update_solution::builders::UpdateSolutionFluentBuilder::set_solution_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the solution to update.</p><br>
7    ///   - [`perform_auto_training(bool)`](crate::operation::update_solution::builders::UpdateSolutionFluentBuilder::perform_auto_training) / [`set_perform_auto_training(Option<bool>)`](crate::operation::update_solution::builders::UpdateSolutionFluentBuilder::set_perform_auto_training):<br>required: **false**<br><p>Whether the solution uses automatic training to create new solution versions (trained models). You can change the training frequency by specifying a <code>schedulingExpression</code> in the <code>AutoTrainingConfig</code> as part of solution configuration.</p> <p>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 <a href="https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html">Configuring automatic training</a>.</p> <p>After training starts, you can get the solution version's Amazon Resource Name (ARN) with the <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html">ListSolutionVersions</a> API operation. To get its status, use the <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html">DescribeSolutionVersion</a>.</p><br>
8    ///   - [`solution_update_config(SolutionUpdateConfig)`](crate::operation::update_solution::builders::UpdateSolutionFluentBuilder::solution_update_config) / [`set_solution_update_config(Option<SolutionUpdateConfig>)`](crate::operation::update_solution::builders::UpdateSolutionFluentBuilder::set_solution_update_config):<br>required: **false**<br><p>The new configuration details of the solution.</p><br>
9    /// - On success, responds with [`UpdateSolutionOutput`](crate::operation::update_solution::UpdateSolutionOutput) with field(s):
10    ///   - [`solution_arn(Option<String>)`](crate::operation::update_solution::UpdateSolutionOutput::solution_arn): <p>The same solution Amazon Resource Name (ARN) as given in the request.</p>
11    /// - On failure, responds with [`SdkError<UpdateSolutionError>`](crate::operation::update_solution::UpdateSolutionError)
12    pub fn update_solution(&self) -> crate::operation::update_solution::builders::UpdateSolutionFluentBuilder {
13        crate::operation::update_solution::builders::UpdateSolutionFluentBuilder::new(self.handle.clone())
14    }
15}