update_parallel_data

Translate.Client.update_parallel_data(**kwargs)

Updates a previously created parallel data resource by importing a new input file from Amazon S3.

See also: AWS API Documentation

Request Syntax

response = client.update_parallel_data(
    Name='string',
    Description='string',
    ParallelDataConfig={
        'S3Uri': 'string',
        'Format': 'TSV'|'CSV'|'TMX'
    },
    ClientToken='string'
)
Parameters
  • Name (string) --

    [REQUIRED]

    The name of the parallel data resource being updated.

  • Description (string) -- A custom description for the parallel data resource in Amazon Translate.
  • ParallelDataConfig (dict) --

    [REQUIRED]

    Specifies the format and S3 location of the parallel data input file.

    • S3Uri (string) -- [REQUIRED]

      The URI of the Amazon S3 folder that contains the parallel data input file. The folder must be in the same Region as the API endpoint you are calling.

    • Format (string) -- [REQUIRED]

      The format of the parallel data input file.

  • ClientToken (string) --

    [REQUIRED]

    A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.

    This field is autopopulated if not provided.

Return type

dict

Returns

Response Syntax

{
    'Name': 'string',
    'Status': 'CREATING'|'UPDATING'|'ACTIVE'|'DELETING'|'FAILED',
    'LatestUpdateAttemptStatus': 'CREATING'|'UPDATING'|'ACTIVE'|'DELETING'|'FAILED',
    'LatestUpdateAttemptAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Name (string) --

      The name of the parallel data resource being updated.

    • Status (string) --

      The status of the parallel data resource that you are attempting to update. Your update request is accepted only if this status is either ACTIVE or FAILED .

    • LatestUpdateAttemptStatus (string) --

      The status of the parallel data update attempt. When the updated parallel data resource is ready for you to use, the status is ACTIVE .

    • LatestUpdateAttemptAt (datetime) --

      The time that the most recent update was attempted.

Exceptions

  • Translate.Client.exceptions.ConcurrentModificationException
  • Translate.Client.exceptions.InvalidParameterValueException
  • Translate.Client.exceptions.InvalidRequestException
  • Translate.Client.exceptions.LimitExceededException
  • Translate.Client.exceptions.TooManyRequestsException
  • Translate.Client.exceptions.ConflictException
  • Translate.Client.exceptions.ResourceNotFoundException
  • Translate.Client.exceptions.InternalServerException