Skip to content

Create Parallel Data

translate_create_parallel_data R Documentation

Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3

Description

Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples that show how you want segments of text to be translated. By adding parallel data, you can influence the style, tone, and word choice in your translation output.

Usage

translate_create_parallel_data(Name, Description, ParallelDataConfig,
  EncryptionKey, ClientToken, Tags)

Arguments

Name

[required] A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.

Description

A custom description for the parallel data resource in Amazon Translate.

ParallelDataConfig

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

EncryptionKey
ClientToken

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

Tags

Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources.

Value

A list with the following syntax:

list(
  Name = "string",
  Status = "CREATING"|"UPDATING"|"ACTIVE"|"DELETING"|"FAILED"
)

Request syntax

svc$create_parallel_data(
  Name = "string",
  Description = "string",
  ParallelDataConfig = list(
    S3Uri = "string",
    Format = "TSV"|"CSV"|"TMX"
  ),
  EncryptionKey = list(
    Type = "KMS",
    Id = "string"
  ),
  ClientToken = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)