aws_sdk_wisdom/client/
start_import_job.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartImportJob`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.</p> <ul>  <li>   <p>For importing Wisdom quick responses, this should be a <code>QUICK_RESPONSES</code> type knowledge base.</p></li> </ul><br>
    ///   - [`import_job_type(ImportJobType)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::import_job_type) / [`set_import_job_type(Option<ImportJobType>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::set_import_job_type):<br>required: **true**<br><p>The type of the import job.</p> <ul>  <li>   <p>For importing quick response resource, set the value to <code>QUICK_RESPONSES</code>.</p></li> </ul><br>
    ///   - [`upload_id(impl Into<String>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::upload_id) / [`set_upload_id(Option<String>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::set_upload_id):<br>required: **true**<br><p>A pointer to the uploaded asset. This value is returned by <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a>.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::set_client_token):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource.</p><br>
    ///   - [`metadata(impl Into<String>, impl Into<String>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::metadata) / [`set_metadata(Option<HashMap::<String, String>>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::set_metadata):<br>required: **false**<br><p>The metadata fields of the imported Wisdom resources.</p><br>
    ///   - [`external_source_configuration(ExternalSourceConfiguration)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::external_source_configuration) / [`set_external_source_configuration(Option<ExternalSourceConfiguration>)`](crate::operation::start_import_job::builders::StartImportJobFluentBuilder::set_external_source_configuration):<br>required: **false**<br><p>The configuration information of the external source that the resource data are imported from.</p><br>
    /// - On success, responds with [`StartImportJobOutput`](crate::operation::start_import_job::StartImportJobOutput) with field(s):
    ///   - [`import_job(Option<ImportJobData>)`](crate::operation::start_import_job::StartImportJobOutput::import_job): <p>The import job.</p>
    /// - On failure, responds with [`SdkError<StartImportJobError>`](crate::operation::start_import_job::StartImportJobError)
    pub fn start_import_job(&self) -> crate::operation::start_import_job::builders::StartImportJobFluentBuilder {
        crate::operation::start_import_job::builders::StartImportJobFluentBuilder::new(self.handle.clone())
    }
}