aws_sdk_lookoutvision/client/create_project.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateProject`](crate::operation::create_project::builders::CreateProjectFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`project_name(impl Into<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_project_name):<br>required: **true**<br><p>The name for the project.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_client_token):<br>required: **false**<br><p>ClientToken is an idempotency token that ensures a call to <code>CreateProject</code> completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from <code>CreateProject</code>. In this case, safely retry your call to <code>CreateProject</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 making multiple project creation requests. 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>CreateProject</code>. An idempotency token is active for 8 hours.</p><br>
/// - On success, responds with [`CreateProjectOutput`](crate::operation::create_project::CreateProjectOutput) with field(s):
/// - [`project_metadata(Option<ProjectMetadata>)`](crate::operation::create_project::CreateProjectOutput::project_metadata): <p>Information about the project.</p>
/// - On failure, responds with [`SdkError<CreateProjectError>`](crate::operation::create_project::CreateProjectError)
pub fn create_project(&self) -> crate::operation::create_project::builders::CreateProjectFluentBuilder {
crate::operation::create_project::builders::CreateProjectFluentBuilder::new(self.handle.clone())
}
}