aws_sdk_lexmodelbuilding/client/
get_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 [`GetImport`](crate::operation::get_import::builders::GetImportFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`import_id(impl Into<String>)`](crate::operation::get_import::builders::GetImportFluentBuilder::import_id) / [`set_import_id(Option<String>)`](crate::operation::get_import::builders::GetImportFluentBuilder::set_import_id):<br>required: **true**<br><p>The identifier of the import job information to return.</p><br>
7    /// - On success, responds with [`GetImportOutput`](crate::operation::get_import::GetImportOutput) with field(s):
8    ///   - [`name(Option<String>)`](crate::operation::get_import::GetImportOutput::name): <p>The name given to the import job.</p>
9    ///   - [`resource_type(Option<ResourceType>)`](crate::operation::get_import::GetImportOutput::resource_type): <p>The type of resource imported.</p>
10    ///   - [`merge_strategy(Option<MergeStrategy>)`](crate::operation::get_import::GetImportOutput::merge_strategy): <p>The action taken when there was a conflict between an existing resource and a resource in the import file.</p>
11    ///   - [`import_id(Option<String>)`](crate::operation::get_import::GetImportOutput::import_id): <p>The identifier for the specific import job.</p>
12    ///   - [`import_status(Option<ImportStatus>)`](crate::operation::get_import::GetImportOutput::import_status): <p>The status of the import job. If the status is <code>FAILED</code>, you can get the reason for the failure from the <code>failureReason</code> field.</p>
13    ///   - [`failure_reason(Option<Vec::<String>>)`](crate::operation::get_import::GetImportOutput::failure_reason): <p>A string that describes why an import job failed to complete.</p>
14    ///   - [`created_date(Option<DateTime>)`](crate::operation::get_import::GetImportOutput::created_date): <p>A timestamp for the date and time that the import job was created.</p>
15    /// - On failure, responds with [`SdkError<GetImportError>`](crate::operation::get_import::GetImportError)
16    pub fn get_import(&self) -> crate::operation::get_import::builders::GetImportFluentBuilder {
17        crate::operation::get_import::builders::GetImportFluentBuilder::new(self.handle.clone())
18    }
19}