aws_sdk_lexmodelsv2/client/
delete_import.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 [`DeleteImport`](crate::operation::delete_import::builders::DeleteImportFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`import_id(impl Into<String>)`](crate::operation::delete_import::builders::DeleteImportFluentBuilder::import_id) / [`set_import_id(Option<String>)`](crate::operation::delete_import::builders::DeleteImportFluentBuilder::set_import_id):<br>required: **true**<br><p>The unique identifier of the import to delete.</p><br>
7    /// - On success, responds with [`DeleteImportOutput`](crate::operation::delete_import::DeleteImportOutput) with field(s):
8    ///   - [`import_id(Option<String>)`](crate::operation::delete_import::DeleteImportOutput::import_id): <p>The unique identifier of the deleted import.</p>
9    ///   - [`import_status(Option<ImportStatus>)`](crate::operation::delete_import::DeleteImportOutput::import_status): <p>The current status of the deletion. When the deletion is complete, the import will no longer be returned by the <a href="https://docs.aws.amazon.com/lexv2/latest/APIReference/API_ListImports.html">ListImports</a> operation and calls to the <a href="https://docs.aws.amazon.com/lexv2/latest/APIReference/API_DescribeImport.html">DescribeImport</a> operation with the import identifier will fail.</p>
10    /// - On failure, responds with [`SdkError<DeleteImportError>`](crate::operation::delete_import::DeleteImportError)
11    pub fn delete_import(&self) -> crate::operation::delete_import::builders::DeleteImportFluentBuilder {
12        crate::operation::delete_import::builders::DeleteImportFluentBuilder::new(self.handle.clone())
13    }
14}