pub struct UpdateDatasetEntries { /* private fields */ }Expand description
Fluent builder constructing a request to UpdateDatasetEntries.
Adds or updates one or more entries (images) in a dataset. An entry is a JSON Line which contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Image-Level labels in manifest files and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide.
If the source-ref field in the JSON line references an existing image, the existing image in the dataset is updated. If source-ref field doesn't reference an existing image, the image is added as a new image to the dataset.
You specify the changes that you want to make in the Changes input parameter. There isn't a limit to the number JSON Lines that you can change, but the size of Changes must be less than 5MB.
UpdateDatasetEntries returns immediatly, but the dataset update might take a while to complete. Use DescribeDataset to check the current status. The dataset updated successfully if the value of Status is UPDATE_COMPLETE.
To check if any non-terminal errors occured, call ListDatasetEntries and check for the presence of errors lists in the JSON Lines.
Dataset update fails if a terminal error occurs (Status = UPDATE_FAILED). Currently, you can't access the terminal error information from the Amazon Rekognition Custom Labels SDK.
This operation requires permissions to perform the rekognition:UpdateDatasetEntries action.
Implementations
sourceimpl UpdateDatasetEntries
impl UpdateDatasetEntries
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateDatasetEntries, AwsResponseRetryClassifier>, SdkError<UpdateDatasetEntriesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateDatasetEntries, AwsResponseRetryClassifier>, SdkError<UpdateDatasetEntriesError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateDatasetEntriesOutput, SdkError<UpdateDatasetEntriesError>>
pub async fn send(
self
) -> Result<UpdateDatasetEntriesOutput, SdkError<UpdateDatasetEntriesError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn dataset_arn(self, input: impl Into<String>) -> Self
pub fn dataset_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the dataset that you want to update.
sourcepub fn set_dataset_arn(self, input: Option<String>) -> Self
pub fn set_dataset_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the dataset that you want to update.
sourcepub fn changes(self, input: DatasetChanges) -> Self
pub fn changes(self, input: DatasetChanges) -> Self
The changes that you want to make to the dataset.
sourcepub fn set_changes(self, input: Option<DatasetChanges>) -> Self
pub fn set_changes(self, input: Option<DatasetChanges>) -> Self
The changes that you want to make to the dataset.
Trait Implementations
sourceimpl Clone for UpdateDatasetEntries
impl Clone for UpdateDatasetEntries
sourcefn clone(&self) -> UpdateDatasetEntries
fn clone(&self) -> UpdateDatasetEntries
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more