pub struct Client { /* private fields */ }
Expand description

Client for Amazon Translate

Client for invoking operations on Amazon Translate. Each operation on Amazon Translate 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_translate::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_translate::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_translate::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the CreateParallelData operation.

Constructs a fluent builder for the DeleteParallelData operation.

Constructs a fluent builder for the DeleteTerminology operation.

Constructs a fluent builder for the DescribeTextTranslationJob operation.

Constructs a fluent builder for the GetParallelData operation.

  • The fluent builder is configurable:
  • On success, responds with GetParallelDataOutput with field(s):
    • parallel_data_properties(Option<ParallelDataProperties>):

      The properties of the parallel data resource that is being retrieved.

    • data_location(Option<ParallelDataDataLocation>):

      The Amazon S3 location of the most recent parallel data input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.

      Amazon Translate doesn’t scan all input files for the risk of CSV injection attacks.

      CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

      Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

    • auxiliary_data_location(Option<ParallelDataDataLocation>):

      The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a parallel data resource. The location is returned as a presigned URL to that has a 30 minute expiration.

    • latest_update_attempt_auxiliary_data_location(Option<ParallelDataDataLocation>):

      The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to update a parallel data resource. The location is returned as a presigned URL to that has a 30 minute expiration.

  • On failure, responds with SdkError<GetParallelDataError>

Constructs a fluent builder for the GetTerminology operation.

  • The fluent builder is configurable:
  • On success, responds with GetTerminologyOutput with field(s):
    • terminology_properties(Option<TerminologyProperties>):

      The properties of the custom terminology being retrieved.

    • terminology_data_location(Option<TerminologyDataLocation>):

      The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.

      Amazon Translate doesn’t scan all input files for the risk of CSV injection attacks.

      CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

      Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

    • auxiliary_data_location(Option<TerminologyDataLocation>):

      The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.

  • On failure, responds with SdkError<GetTerminologyError>

Constructs a fluent builder for the ImportTerminology operation.

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

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

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

Constructs a fluent builder for the StartTextTranslationJob operation.

Constructs a fluent builder for the StopTextTranslationJob operation.

Constructs a fluent builder for the TranslateText operation.

Constructs a fluent builder for the UpdateParallelData operation.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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