aws_sdk_rekognition/client/start_project_version.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 [`StartProjectVersion`](crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`StartProjectVersionOutput`](crate::operation::start_project_version::StartProjectVersionOutput) with field(s):
10 /// - [`status(Option<ProjectVersionStatus>)`](crate::operation::start_project_version::StartProjectVersionOutput::status): <p>The current running status of the model.</p>
11 /// - On failure, responds with [`SdkError<StartProjectVersionError>`](crate::operation::start_project_version::StartProjectVersionError)
12 pub fn start_project_version(&self) -> crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder {
13 crate::operation::start_project_version::builders::StartProjectVersionFluentBuilder::new(self.handle.clone())
14 }
15}