aws_sdk_rekognition/client/
delete_collection.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 [`DeleteCollection`](crate::operation::delete_collection::builders::DeleteCollectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`collection_id(impl Into<String>)`](crate::operation::delete_collection::builders::DeleteCollectionFluentBuilder::collection_id) / [`set_collection_id(Option<String>)`](crate::operation::delete_collection::builders::DeleteCollectionFluentBuilder::set_collection_id):<br>required: **true**<br><p>ID of the collection to delete.</p><br>
7    /// - On success, responds with [`DeleteCollectionOutput`](crate::operation::delete_collection::DeleteCollectionOutput) with field(s):
8    ///   - [`status_code(Option<i32>)`](crate::operation::delete_collection::DeleteCollectionOutput::status_code): <p>HTTP status code that indicates the result of the operation.</p>
9    /// - On failure, responds with [`SdkError<DeleteCollectionError>`](crate::operation::delete_collection::DeleteCollectionError)
10    pub fn delete_collection(&self) -> crate::operation::delete_collection::builders::DeleteCollectionFluentBuilder {
11        crate::operation::delete_collection::builders::DeleteCollectionFluentBuilder::new(self.handle.clone())
12    }
13}