pub struct DistributeDatasetEntries { /* private fields */ }Expand description
Fluent builder constructing a request to DistributeDatasetEntries.
Distributes the entries (images) in a training dataset across the training dataset and the test dataset for a project. DistributeDatasetEntries moves 20% of the training dataset images to the test dataset. An entry is a JSON Line that describes an image.
You supply the Amazon Resource Names (ARN) of a project's training dataset and test dataset. The training dataset must contain the images that you want to split. The test dataset must be empty. The datasets must belong to the same project. To create training and test datasets for a project, call CreateDataset.
Distributing a dataset takes a while to complete. To check the status call DescribeDataset. The operation is complete when the Status field for the training dataset and the test dataset is UPDATE_COMPLETE. If the dataset split fails, the value of Status is UPDATE_FAILED.
This operation requires permissions to perform the rekognition:DistributeDatasetEntries action.
Implementations
sourceimpl DistributeDatasetEntries
impl DistributeDatasetEntries
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DistributeDatasetEntries, AwsResponseRetryClassifier>, SdkError<DistributeDatasetEntriesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DistributeDatasetEntries, AwsResponseRetryClassifier>, SdkError<DistributeDatasetEntriesError>>
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<DistributeDatasetEntriesOutput, SdkError<DistributeDatasetEntriesError>>
pub async fn send(
self
) -> Result<DistributeDatasetEntriesOutput, SdkError<DistributeDatasetEntriesError>>
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 datasets(self, input: DistributeDataset) -> Self
pub fn datasets(self, input: DistributeDataset) -> Self
Appends an item to Datasets.
To override the contents of this collection use set_datasets.
The ARNS for the training dataset and test dataset that you want to use. The datasets must belong to the same project. The test dataset must be empty.
sourcepub fn set_datasets(self, input: Option<Vec<DistributeDataset>>) -> Self
pub fn set_datasets(self, input: Option<Vec<DistributeDataset>>) -> Self
The ARNS for the training dataset and test dataset that you want to use. The datasets must belong to the same project. The test dataset must be empty.
Trait Implementations
sourceimpl Clone for DistributeDatasetEntries
impl Clone for DistributeDatasetEntries
sourcefn clone(&self) -> DistributeDatasetEntries
fn clone(&self) -> DistributeDatasetEntries
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more