Struct aws_sdk_lookoutvision::client::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for Amazon Lookout for Vision
Client for invoking operations on Amazon Lookout for Vision. Each operation on Amazon Lookout for Vision is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_lookoutvision::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_lookoutvision::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_lookoutvision::Client::from_conf(config);Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn create_dataset(&self) -> CreateDataset
pub fn create_dataset(&self) -> CreateDataset
Constructs a fluent builder for the CreateDataset operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project in which you want to create a dataset.
dataset_type(impl Into<String>)/set_dataset_type(Option<String>):The type of the dataset. Specify
trainfor a training dataset. Specifytestfor a test dataset.dataset_source(DatasetSource)/set_dataset_source(Option<DatasetSource>):The location of the manifest file that Amazon Lookout for Vision uses to create the dataset.
If you don’t specify
DatasetSource, an empty dataset is created and the operation synchronously returns. Later, you can add JSON Lines by callingUpdateDatasetEntries.If you specify a value for
DataSource, the manifest at the S3 location is validated and used to create the dataset. The call toCreateDatasetis asynchronous and might take a while to complete. To find out the current status, Check the value ofStatusreturned in a call toDescribeDataset.client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
CreateDatasetcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromCreateDataset. In this case, safely retry your call toCreateDatasetby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toCreateDataset. An idempotency token is active for 8 hours.
- On success, responds with
CreateDatasetOutputwith field(s):dataset_metadata(Option<DatasetMetadata>):Information about the dataset.
- On failure, responds with
SdkError<CreateDatasetError>
sourcepub fn create_model(&self) -> CreateModel
pub fn create_model(&self) -> CreateModel
Constructs a fluent builder for the CreateModel operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project in which you want to create a model version.
description(impl Into<String>)/set_description(Option<String>):A description for the version of the model.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
CreateModelcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromCreateModel. In this case, safely retry your call toCreateModelby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from starting multiple training jobs. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toCreateModel. An idempotency token is active for 8 hours.output_config(OutputConfig)/set_output_config(Option<OutputConfig>):The location where Amazon Lookout for Vision saves the training results.
kms_key_id(impl Into<String>)/set_kms_key_id(Option<String>):The identifier for your AWS KMS key. The key is used to encrypt training and test images copied into the service for model training. Your source images are unaffected. If this parameter is not specified, the copied images are encrypted by a key that AWS owns and manages.
tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):A set of tags (key-value pairs) that you want to attach to the model.
- On success, responds with
CreateModelOutputwith field(s):model_metadata(Option<ModelMetadata>):The response from a call to
CreateModel.
- On failure, responds with
SdkError<CreateModelError>
sourcepub fn create_project(&self) -> CreateProject
pub fn create_project(&self) -> CreateProject
Constructs a fluent builder for the CreateProject operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name for the project.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
CreateProjectcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromCreateProject. In this case, safely retry your call toCreateProjectby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple project creation requests. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toCreateProject. An idempotency token is active for 8 hours.
- On success, responds with
CreateProjectOutputwith field(s):project_metadata(Option<ProjectMetadata>):Information about the project.
- On failure, responds with
SdkError<CreateProjectError>
sourcepub fn delete_dataset(&self) -> DeleteDataset
pub fn delete_dataset(&self) -> DeleteDataset
Constructs a fluent builder for the DeleteDataset operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the dataset that you want to delete.
dataset_type(impl Into<String>)/set_dataset_type(Option<String>):The type of the dataset to delete. Specify
trainto delete the training dataset. Specifytestto delete the test dataset. To delete the dataset in a single dataset project, specifytrain.client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
DeleteDatasetcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromDeleteDataset. In this case, safely retry your call toDeleteDatasetby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple deletetion requests. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toDeleteDataset. An idempotency token is active for 8 hours.
- On success, responds with
DeleteDatasetOutput - On failure, responds with
SdkError<DeleteDatasetError>
sourcepub fn delete_model(&self) -> DeleteModel
pub fn delete_model(&self) -> DeleteModel
Constructs a fluent builder for the DeleteModel operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the model that you want to delete.
model_version(impl Into<String>)/set_model_version(Option<String>):The version of the model that you want to delete.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
DeleteModelcompletes only once. You choose the value to pass. For example, an issue might prevent you from getting a response fromDeleteModel. In this case, safely retry your call toDeleteModelby using the sameClientTokenparameter value.If you don’t supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple model deletion requests. You’ll need to provide your own value for other use cases.
An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toDeleteModel. An idempotency token is active for 8 hours.
- On success, responds with
DeleteModelOutputwith field(s):model_arn(Option<String>):The Amazon Resource Name (ARN) of the model that was deleted.
- On failure, responds with
SdkError<DeleteModelError>
sourcepub fn delete_project(&self) -> DeleteProject
pub fn delete_project(&self) -> DeleteProject
Constructs a fluent builder for the DeleteProject operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project to delete.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
DeleteProjectcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromDeleteProject. In this case, safely retry your call toDeleteProjectby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple project deletion requests. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toDeleteProject. An idempotency token is active for 8 hours.
- On success, responds with
DeleteProjectOutputwith field(s):project_arn(Option<String>):The Amazon Resource Name (ARN) of the project that was deleted.
- On failure, responds with
SdkError<DeleteProjectError>
sourcepub fn describe_dataset(&self) -> DescribeDataset
pub fn describe_dataset(&self) -> DescribeDataset
Constructs a fluent builder for the DescribeDataset operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the dataset that you want to describe.
dataset_type(impl Into<String>)/set_dataset_type(Option<String>):The type of the dataset to describe. Specify
trainto describe the training dataset. Specifytestto describe the test dataset. If you have a single dataset project, specifytrain
- On success, responds with
DescribeDatasetOutputwith field(s):dataset_description(Option<DatasetDescription>):The description of the requested dataset.
- On failure, responds with
SdkError<DescribeDatasetError>
sourcepub fn describe_model(&self) -> DescribeModel
pub fn describe_model(&self) -> DescribeModel
Constructs a fluent builder for the DescribeModel operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The project that contains the version of a model that you want to describe.
model_version(impl Into<String>)/set_model_version(Option<String>):The version of the model that you want to describe.
- On success, responds with
DescribeModelOutputwith field(s):model_description(Option<ModelDescription>):Contains the description of the model.
- On failure, responds with
SdkError<DescribeModelError>
sourcepub fn describe_model_packaging_job(&self) -> DescribeModelPackagingJob
pub fn describe_model_packaging_job(&self) -> DescribeModelPackagingJob
Constructs a fluent builder for the DescribeModelPackagingJob operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the model packaging job that you want to describe.
job_name(impl Into<String>)/set_job_name(Option<String>):The job name for the model packaging job.
- On success, responds with
DescribeModelPackagingJobOutputwith field(s):model_packaging_description(Option<ModelPackagingDescription>):The description of the model packaging job.
- On failure, responds with
SdkError<DescribeModelPackagingJobError>
sourcepub fn describe_project(&self) -> DescribeProject
pub fn describe_project(&self) -> DescribeProject
Constructs a fluent builder for the DescribeProject operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that you want to describe.
- On success, responds with
DescribeProjectOutputwith field(s):project_description(Option<ProjectDescription>):The description of the project.
- On failure, responds with
SdkError<DescribeProjectError>
sourcepub fn detect_anomalies(&self) -> DetectAnomalies
pub fn detect_anomalies(&self) -> DetectAnomalies
Constructs a fluent builder for the DetectAnomalies operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the model version that you want to use.
model_version(impl Into<String>)/set_model_version(Option<String>):The version of the model that you want to use.
body(byte_stream::ByteStream)/set_body(byte_stream::ByteStream):The unencrypted image bytes that you want to analyze.
content_type(impl Into<String>)/set_content_type(Option<String>):The type of the image passed in
Body. Valid values areimage/png(PNG format images) andimage/jpeg(JPG format images).
- On success, responds with
DetectAnomaliesOutputwith field(s):detect_anomaly_result(Option<DetectAnomalyResult>):The results of the
DetectAnomaliesoperation.
- On failure, responds with
SdkError<DetectAnomaliesError>
sourcepub fn list_dataset_entries(&self) -> ListDatasetEntries
pub fn list_dataset_entries(&self) -> ListDatasetEntries
Constructs a fluent builder for the ListDatasetEntries operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the dataset that you want to list.
dataset_type(impl Into<String>)/set_dataset_type(Option<String>):The type of the dataset that you want to list. Specify
trainto list the training dataset. Specifytestto list the test dataset. If you have a single dataset project, specifytrain.labeled(bool)/set_labeled(Option<bool>):Specify
trueto include labeled entries, otherwise specifyfalse. If you don’t specify a value, Lookout for Vision returns all entries.anomaly_class(impl Into<String>)/set_anomaly_class(Option<String>):Specify
normalto include only normal images. Specifyanomalyto only include anomalous entries. If you don’t specify a value, Amazon Lookout for Vision returns normal and anomalous images.before_creation_date(DateTime)/set_before_creation_date(Option<DateTime>):Only includes entries before the specified date in the response. For example,
2020-06-23T00:00:00.after_creation_date(DateTime)/set_after_creation_date(Option<DateTime>):Only includes entries after the specified date in the response. For example,
2020-06-23T00:00:00.next_token(impl Into<String>)/set_next_token(Option<String>):If the previous response was incomplete (because there is more data to retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of dataset entries.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
source_ref_contains(impl Into<String>)/set_source_ref_contains(Option<String>):Perform a “contains” search on the values of the
source-refkey within the dataset. For example a value of “IMG_17” returns all JSON Lines where thesource-refkey value matches IMG_17.
- On success, responds with
ListDatasetEntriesOutputwith field(s):dataset_entries(Option<Vec<String>>):A list of the entries (JSON Lines) within the dataset.
next_token(Option<String>):If the response is truncated, Amazon Lookout for Vision returns this token that you can use in the subsequent request to retrieve the next set ofdataset entries.
- On failure, responds with
SdkError<ListDatasetEntriesError>
sourcepub fn list_model_packaging_jobs(&self) -> ListModelPackagingJobs
pub fn list_model_packaging_jobs(&self) -> ListModelPackagingJobs
Constructs a fluent builder for the ListModelPackagingJobs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project for which you want to list the model packaging jobs.
next_token(impl Into<String>)/set_next_token(Option<String>):If the previous response was incomplete (because there is more results to retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
- On success, responds with
ListModelPackagingJobsOutputwith field(s):model_packaging_jobs(Option<Vec<ModelPackagingJobMetadata>>):A list of the model packaging jobs created for the specified Amazon Lookout for Vision project.
next_token(Option<String>):If the previous response was incomplete (because there is more results to retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
- On failure, responds with
SdkError<ListModelPackagingJobsError>
sourcepub fn list_models(&self) -> ListModels
pub fn list_models(&self) -> ListModels
Constructs a fluent builder for the ListModels operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the model versions that you want to list.
next_token(impl Into<String>)/set_next_token(Option<String>):If the previous response was incomplete (because there is more data to retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of models.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
- On success, responds with
ListModelsOutputwith field(s):models(Option<Vec<ModelMetadata>>):A list of model versions in the specified project.
next_token(Option<String>):If the response is truncated, Amazon Lookout for Vision returns this token that you can use in the subsequent request to retrieve the next set of models.
- On failure, responds with
SdkError<ListModelsError>
sourcepub fn list_projects(&self) -> ListProjects
pub fn list_projects(&self) -> ListProjects
Constructs a fluent builder for the ListProjects operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):If the previous response was incomplete (because there is more data to retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of projects.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
- On success, responds with
ListProjectsOutputwith field(s):projects(Option<Vec<ProjectMetadata>>):A list of projects in your AWS account.
next_token(Option<String>):If the response is truncated, Amazon Lookout for Vision returns this token that you can use in the subsequent request to retrieve the next set of projects.
- On failure, responds with
SdkError<ListProjectsError>
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the model for which you want to list tags.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<Vec<Tag>>):A map of tag keys and values attached to the specified model.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn start_model(&self) -> StartModel
pub fn start_model(&self) -> StartModel
Constructs a fluent builder for the StartModel operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the model that you want to start.
model_version(impl Into<String>)/set_model_version(Option<String>):The version of the model that you want to start.
min_inference_units(i32)/set_min_inference_units(Option<i32>):The minimum number of inference units to use. A single inference unit represents 1 hour of processing. Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
StartModelcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromStartModel. In this case, safely retry your call toStartModelby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple start requests. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toStartModel. An idempotency token is active for 8 hours.
- On success, responds with
StartModelOutputwith field(s):status(Option<ModelHostingStatus>):The current running status of the model.
- On failure, responds with
SdkError<StartModelError>
sourcepub fn start_model_packaging_job(&self) -> StartModelPackagingJob
pub fn start_model_packaging_job(&self) -> StartModelPackagingJob
Constructs a fluent builder for the StartModelPackagingJob operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project which contains the version of the model that you want to package.
model_version(impl Into<String>)/set_model_version(Option<String>):The version of the model within the project that you want to package.
job_name(impl Into<String>)/set_job_name(Option<String>):A name for the model packaging job. If you don’t supply a value, the service creates a job name for you.
configuration(ModelPackagingConfiguration)/set_configuration(Option<ModelPackagingConfiguration>):The configuration for the model packaging job.
description(impl Into<String>)/set_description(Option<String>):A description for the model packaging job.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
StartModelPackagingJobcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromStartModelPackagingJob. In this case, safely retry your call toStartModelPackagingJobby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toStartModelPackagingJob. An idempotency token is active for 8 hours.
- On success, responds with
StartModelPackagingJobOutputwith field(s):job_name(Option<String>):The job name for the model packaging job. If you don’t supply a job name in the
JobNameinput parameter, the service creates a job name for you.
- On failure, responds with
SdkError<StartModelPackagingJobError>
sourcepub fn stop_model(&self) -> StopModel
pub fn stop_model(&self) -> StopModel
Constructs a fluent builder for the StopModel operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the model that you want to stop.
model_version(impl Into<String>)/set_model_version(Option<String>):The version of the model that you want to stop.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
StopModelcompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromStopModel. In this case, safely retry your call toStopModelby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple stop requests. You’ll need to provide your own value for other use cases.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toStopModel. An idempotency token is active for 8 hours.
- On success, responds with
StopModelOutputwith field(s):status(Option<ModelHostingStatus>):The status of the model.
- On failure, responds with
SdkError<StopModelError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the model to assign the tags.
tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):The key-value tags to assign to the model.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the model from which you want to remove tags.
tag_keys(Vec<String>)/set_tag_keys(Option<Vec<String>>):A list of the keys of the tags that you want to remove.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_dataset_entries(&self) -> UpdateDatasetEntries
pub fn update_dataset_entries(&self) -> UpdateDatasetEntries
Constructs a fluent builder for the UpdateDatasetEntries operation.
- The fluent builder is configurable:
project_name(impl Into<String>)/set_project_name(Option<String>):The name of the project that contains the dataset that you want to update.
dataset_type(impl Into<String>)/set_dataset_type(Option<String>):The type of the dataset that you want to update. Specify
trainto update the training dataset. Specifytestto update the test dataset. If you have a single dataset project, specifytrain.changes(Blob)/set_changes(Option<Blob>):The entries to add to the dataset.
client_token(impl Into<String>)/set_client_token(Option<String>):ClientToken is an idempotency token that ensures a call to
UpdateDatasetEntriescompletes only once. You choose the value to pass. For example, An issue might prevent you from getting a response fromUpdateDatasetEntries. In this case, safely retry your call toUpdateDatasetEntriesby using the sameClientTokenparameter value.If you don’t supply a value for
ClientToken, 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.An error occurs if the other input parameters are not the same as in the first request. Using a different value for
ClientTokenis considered a new call toUpdateDatasetEntries. An idempotency token is active for 8 hours.
- On success, responds with
UpdateDatasetEntriesOutputwith field(s):status(Option<DatasetStatus>):The status of the dataset update.
- On failure, responds with
SdkError<UpdateDatasetEntriesError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more