1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartProjectVersion`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project_version_arn(impl Into<String>)`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::project_version_arn) / [`set_project_version_arn(Option<String>)`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::set_project_version_arn):<br>required: **true**<br><p>The Amazon Resource Name(ARN) of the model version that you want to start.</p><br>
    ///   - [`min_inference_units(i32)`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::min_inference_units) / [`set_min_inference_units(Option<i32>)`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::set_min_inference_units):<br>required: **true**<br><p>The minimum number of inference units to use. A single inference unit represents 1 hour of processing. </p>  <p>Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use. </p><br>
    ///   - [`max_inference_units(i32)`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::max_inference_units) / [`set_max_inference_units(Option<i32>)`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::set_max_inference_units):<br>required: **false**<br><p>The maximum number of inference units to use for auto-scaling the model. If you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale the model.</p><br>
    /// - On success, responds with [`StartProjectVersionOutput`](crate::operation::start_project_version::StartProjectVersionOutput) with field(s):
    ///   - [`status(Option<ProjectVersionStatus>)`](crate::operation::start_project_version::StartProjectVersionOutput::status): <p>The current running status of the model. </p>
    /// - On failure, responds with [`SdkError<StartProjectVersionError>`](crate::operation::start_project_version::StartProjectVersionError)
    pub fn start_project_version(&self) -> crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder {
        crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::new(self.handle.clone())
    }
}