1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartTableDataImportJob`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workbook_id(impl Into<String>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::workbook_id) / [`set_workbook_id(Option<String>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::set_workbook_id):<br>required: **true**<br><p>The ID of the workbook where the rows are being imported.</p> <p>If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.</p><br>
    ///   - [`data_source(ImportDataSource)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::data_source) / [`set_data_source(Option<ImportDataSource>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::set_data_source):<br>required: **true**<br><p>The source of the data that is being imported. The size of source must be no larger than 100 MB. Source must have no more than 100,000 cells and no more than 1,000 rows.</p><br>
    ///   - [`data_format(ImportSourceDataFormat)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::data_format) / [`set_data_format(Option<ImportSourceDataFormat>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::set_data_format):<br>required: **true**<br><p>The format of the data that is being imported. Currently the only option supported is "DELIMITED_TEXT".</p><br>
    ///   - [`destination_table_id(impl Into<String>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::destination_table_id) / [`set_destination_table_id(Option<String>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::set_destination_table_id):<br>required: **true**<br><p>The ID of the table where the rows are being imported.</p> <p>If a table with the specified id could not be found, this API throws ResourceNotFoundException.</p><br>
    ///   - [`import_options(ImportOptions)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::import_options) / [`set_import_options(Option<ImportOptions>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::set_import_options):<br>required: **true**<br><p>The options for customizing this import request.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::set_client_request_token):<br>required: **true**<br><p>The request token for performing the update action. Request tokens help to identify duplicate requests. If a call times out or fails due to a transient error like a failed network connection, you can retry the call with the same request token. The service ensures that if the first call using that request token is successfully performed, the second call will not perform the action again.</p> <p>Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.</p><br>
    /// - On success, responds with [`StartTableDataImportJobOutput`](crate::operation::start_table_data_import_job::StartTableDataImportJobOutput) with field(s):
    ///   - [`job_id(String)`](crate::operation::start_table_data_import_job::StartTableDataImportJobOutput::job_id): <p>The id that is assigned to this import job. Future requests to find out the status of this import job need to send this id in the appropriate parameter in the request.</p>
    ///   - [`job_status(TableDataImportJobStatus)`](crate::operation::start_table_data_import_job::StartTableDataImportJobOutput::job_status): <p>The status of the import job immediately after submitting the request.</p>
    /// - On failure, responds with [`SdkError<StartTableDataImportJobError>`](crate::operation::start_table_data_import_job::StartTableDataImportJobError)
    pub fn start_table_data_import_job(&self) -> crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder {
        crate::operation::start_table_data_import_job::builders::StartTableDataImportJobFluentBuilder::new(self.handle.clone())
    }
}