1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`BatchDeleteTableRows`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workbook_id(impl Into<String>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::workbook_id) / [`set_workbook_id(Option<String>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::set_workbook_id):<br>required: **true**<br><p>The ID of the workbook where the rows are being deleted.</p> <p>If a workbook with the specified id could not be found, this API throws ResourceNotFoundException.</p><br>
    ///   - [`table_id(impl Into<String>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::table_id) / [`set_table_id(Option<String>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::set_table_id):<br>required: **true**<br><p>The ID of the table where the rows are being deleted.</p> <p>If a table with the specified id could not be found, this API throws ResourceNotFoundException.</p><br>
    ///   - [`row_ids(impl Into<String>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::row_ids) / [`set_row_ids(Option<Vec::<String>>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::set_row_ids):<br>required: **true**<br><p>The list of row ids to delete from the table. You need to specify at least one row id in this list.</p> <p>Note that if one of the row ids provided in the request does not exist in the table, then the request fails and no rows are deleted from the table.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::set_client_request_token):<br>required: **false**<br><p>The request token for performing the delete 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 [`BatchDeleteTableRowsOutput`](crate::operation::batch_delete_table_rows::BatchDeleteTableRowsOutput) with field(s):
    ///   - [`workbook_cursor(i64)`](crate::operation::batch_delete_table_rows::BatchDeleteTableRowsOutput::workbook_cursor): <p>The updated workbook cursor after deleting the rows from the table.</p>
    ///   - [`failed_batch_items(Option<Vec::<FailedBatchItem>>)`](crate::operation::batch_delete_table_rows::BatchDeleteTableRowsOutput::failed_batch_items): <p>The list of row ids in the request that could not be deleted from the table. Each element in this list contains one row id from the request that could not be deleted along with the reason why that item could not be deleted.</p>
    /// - On failure, responds with [`SdkError<BatchDeleteTableRowsError>`](crate::operation::batch_delete_table_rows::BatchDeleteTableRowsError)
    pub fn batch_delete_table_rows(&self) -> crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder {
        crate::operation::batch_delete_table_rows::builders::BatchDeleteTableRowsFluentBuilder::new(self.handle.clone())
    }
}