aws_sdk_lookoutvision/client/
update_dataset_entries.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 [`UpdateDatasetEntries`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`project_name(impl Into<String>)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the project that contains the dataset that you want to update.</p><br>
7    ///   - [`dataset_type(impl Into<String>)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::dataset_type) / [`set_dataset_type(Option<String>)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::set_dataset_type):<br>required: **true**<br><p>The type of the dataset that you want to update. Specify <code>train</code> to update the training dataset. Specify <code>test</code> to update the test dataset. If you have a single dataset project, specify <code>train</code>.</p><br>
8    ///   - [`changes(Blob)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::changes) / [`set_changes(Option<Blob>)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::set_changes):<br>required: **true**<br><p>The entries to add to the dataset.</p><br>
9    ///   - [`client_token(impl Into<String>)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::set_client_token):<br>required: **false**<br><p>ClientToken is an idempotency token that ensures a call to <code>UpdateDatasetEntries</code> completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from <code>UpdateDatasetEntries</code>. In this case, safely retry your call to <code>UpdateDatasetEntries</code> by using the same <code>ClientToken</code> parameter value.</p> <p>If you don't supply a value for <code>ClientToken</code>, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple updates with the same dataset entries. You'll need to provide your own value for other use cases.</p> <p>An error occurs if the other input parameters are not the same as in the first request. Using a different value for <code>ClientToken</code> is considered a new call to <code>UpdateDatasetEntries</code>. An idempotency token is active for 8 hours.</p><br>
10    /// - On success, responds with [`UpdateDatasetEntriesOutput`](crate::operation::update_dataset_entries::UpdateDatasetEntriesOutput) with field(s):
11    ///   - [`status(Option<DatasetStatus>)`](crate::operation::update_dataset_entries::UpdateDatasetEntriesOutput::status): <p>The status of the dataset update.</p>
12    /// - On failure, responds with [`SdkError<UpdateDatasetEntriesError>`](crate::operation::update_dataset_entries::UpdateDatasetEntriesError)
13    pub fn update_dataset_entries(&self) -> crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder {
14        crate::operation::update_dataset_entries::builders::UpdateDatasetEntriesFluentBuilder::new(self.handle.clone())
15    }
16}