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

Creates a client with the given service configuration.

Returns the client’s configuration.

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 train for a training dataset. Specify test for 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 calling UpdateDatasetEntries.

      If you specify a value for DataSource, the manifest at the S3 location is validated and used to create the dataset. The call to CreateDataset is asynchronous and might take a while to complete. To find out the current status, Check the value of Status returned in a call to DescribeDataset.

    • client_token(impl Into<String>) / set_client_token(Option<String>):

      ClientToken is an idempotency token that ensures a call to CreateDataset completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from CreateDataset. In this case, safely retry your call to CreateDataset by using the same ClientToken parameter 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 ClientToken is considered a new call to CreateDataset. An idempotency token is active for 8 hours.

  • On success, responds with CreateDatasetOutput with field(s):
  • On failure, responds with SdkError<CreateDatasetError>

Constructs a fluent builder for the CreateModel operation.

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 CreateProject completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from CreateProject. In this case, safely retry your call to CreateProject by using the same ClientToken parameter 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 ClientToken is considered a new call to CreateProject. An idempotency token is active for 8 hours.

  • On success, responds with CreateProjectOutput with field(s):
  • On failure, responds with SdkError<CreateProjectError>

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 train to delete the training dataset. Specify test to delete the test dataset. To delete the dataset in a single dataset project, specify train.

    • client_token(impl Into<String>) / set_client_token(Option<String>):

      ClientToken is an idempotency token that ensures a call to DeleteDataset completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from DeleteDataset. In this case, safely retry your call to DeleteDataset by using the same ClientToken parameter 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 ClientToken is considered a new call to DeleteDataset. An idempotency token is active for 8 hours.

  • On success, responds with DeleteDatasetOutput
  • On failure, responds with SdkError<DeleteDatasetError>

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 DeleteModel completes only once. You choose the value to pass. For example, an issue might prevent you from getting a response from DeleteModel. In this case, safely retry your call to DeleteModel by using the same ClientToken parameter 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 ClientToken is considered a new call to DeleteModel. An idempotency token is active for 8 hours.

  • On success, responds with DeleteModelOutput with field(s):
  • On failure, responds with SdkError<DeleteModelError>

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 DeleteProject completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from DeleteProject. In this case, safely retry your call to DeleteProject by using the same ClientToken parameter 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 ClientToken is considered a new call to DeleteProject. An idempotency token is active for 8 hours.

  • On success, responds with DeleteProjectOutput with field(s):
  • On failure, responds with SdkError<DeleteProjectError>

Constructs a fluent builder for the DescribeDataset operation.

Constructs a fluent builder for the DescribeModel operation.

Constructs a fluent builder for the DescribeModelPackagingJob operation.

Constructs a fluent builder for the DescribeProject operation.

Constructs a fluent builder for the DetectAnomalies operation.

Constructs a fluent builder for the ListDatasetEntries operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListModelPackagingJobs operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListModels operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListProjects operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the StartModel operation.

Constructs a fluent builder for the StartModelPackagingJob operation.

Constructs a fluent builder for the StopModel operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

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 train to update the training dataset. Specify test to update the test dataset. If you have a single dataset project, specify train.

    • 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 UpdateDatasetEntries completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from UpdateDatasetEntries. In this case, safely retry your call to UpdateDatasetEntries by using the same ClientToken parameter 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 ClientToken is considered a new call to UpdateDatasetEntries. An idempotency token is active for 8 hours.

  • On success, responds with UpdateDatasetEntriesOutput with field(s):
  • On failure, responds with SdkError<UpdateDatasetEntriesError>

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more