aws_sdk_lookoutvision/client/
delete_project.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteProject`](crate::operation::delete_project::builders::DeleteProjectFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project_name(impl Into<String>)`](crate::operation::delete_project::builders::DeleteProjectFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::delete_project::builders::DeleteProjectFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the project to delete.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_project::builders::DeleteProjectFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_project::builders::DeleteProjectFluentBuilder::set_client_token):<br>required: **false**<br><p>ClientToken is an idempotency token that ensures a call to <code>DeleteProject</code> completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from <code>DeleteProject</code>. In this case, safely retry your call to <code>DeleteProject</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 deletion 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>DeleteProject</code>. An idempotency token is active for 8 hours.</p><br>
    /// - On success, responds with [`DeleteProjectOutput`](crate::operation::delete_project::DeleteProjectOutput) with field(s):
    ///   - [`project_arn(Option<String>)`](crate::operation::delete_project::DeleteProjectOutput::project_arn): <p>The Amazon Resource Name (ARN) of the project that was deleted.</p>
    /// - On failure, responds with [`SdkError<DeleteProjectError>`](crate::operation::delete_project::DeleteProjectError)
    pub fn delete_project(&self) -> crate::operation::delete_project::builders::DeleteProjectFluentBuilder {
        crate::operation::delete_project::builders::DeleteProjectFluentBuilder::new(self.handle.clone())
    }
}