aws_sdk_lookoutvision/client/create_model.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 [`CreateModel`](crate::operation::create_model::builders::CreateModelFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`project_name(impl Into<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the project in which you want to create a model version.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::set_description):<br>required: **false**<br><p>A description for the version of the model.</p><br>
8 /// - [`client_token(impl Into<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::set_client_token):<br>required: **false**<br><p>ClientToken is an idempotency token that ensures a call to <code>CreateModel</code> completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from <code>CreateModel</code>. In this case, safely retry your call to <code>CreateModel</code> by using the same <code>ClientToken</code> parameter value.</p> <p>If you don't supply a value for <code>ClientToken</code>, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from starting multiple training jobs. You'll need to provide your own value for other use cases.</p> <p>An error occurs if the other input parameters are not the same as in the first request. Using a different value for <code>ClientToken</code> is considered a new call to <code>CreateModel</code>. An idempotency token is active for 8 hours.</p><br>
9 /// - [`output_config(OutputConfig)`](crate::operation::create_model::builders::CreateModelFluentBuilder::output_config) / [`set_output_config(Option<OutputConfig>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::set_output_config):<br>required: **true**<br><p>The location where Amazon Lookout for Vision saves the training results.</p><br>
10 /// - [`kms_key_id(impl Into<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>The identifier for your AWS KMS key. The key is used to encrypt training and test images copied into the service for model training. Your source images are unaffected. If this parameter is not specified, the copied images are encrypted by a key that AWS owns and manages.</p><br>
11 /// - [`tags(Tag)`](crate::operation::create_model::builders::CreateModelFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_model::builders::CreateModelFluentBuilder::set_tags):<br>required: **false**<br><p>A set of tags (key-value pairs) that you want to attach to the model.</p><br>
12 /// - On success, responds with [`CreateModelOutput`](crate::operation::create_model::CreateModelOutput) with field(s):
13 /// - [`model_metadata(Option<ModelMetadata>)`](crate::operation::create_model::CreateModelOutput::model_metadata): <p>The response from a call to <code>CreateModel</code>.</p>
14 /// - On failure, responds with [`SdkError<CreateModelError>`](crate::operation::create_model::CreateModelError)
15 pub fn create_model(&self) -> crate::operation::create_model::builders::CreateModelFluentBuilder {
16 crate::operation::create_model::builders::CreateModelFluentBuilder::new(self.handle.clone())
17 }
18}