CmdID

CmdID / aws / aws translate

aws translate import-terminology

Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. AWS CLI reference

1 example 6 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To import a custom terminology from a file

The following import-terminology example creates a terminology called MyTestTerminology from the test-terminology.csv file.

aws translate import-terminology --name MyTestTerminology --description "Creating a test terminology in AWS Translate" --merge-strategy OVERWRITE --data-file fileb://test-terminology.csv --terminology-data Format=CSVIdentify
--nameThe name of the custom terminology being imported.
--descriptionThe description of the custom terminology being imported.
--merge-strategyThe merge strategy of the custom terminology being imported.
--terminology-dataThe terminology data for the custom terminology being imported.

Contents of test-terminology.csv:

en,fr,es,zh Hello world!,Bonjour tout le monde!,Hola Mundo!,???? Amazon,Amazon,Amazon,Amazon

Its output
{
    "TerminologyProperties": {
        "SourceLanguageCode": "en",
        "Name": "MyTestTerminology",
        "TargetLanguageCodes": [
            "fr",
            "es",
            "zh"
        ],
        "SizeBytes": 97,
        "LastUpdatedAt": 1571089500.851,
        "CreatedAt": 1571089500.851,
        "TermCount": 6,
        "Arn": "arn:aws:translate:us-west-2:123456789012:terminology/MyTestTerminology/LATEST",
        "Description": "Creating a test terminology in AWS Translate"
    }
}

For more information, see Customizing your translations with custom terminology in the Amazon Translate Developer Guide.

Options

6 in the AWS CLI reference
--descriptionThe description of the custom terminology being imported.
--encryption-keyThe encryption key for the custom terminology being imported.
--merge-strategyThe merge strategy of the custom terminology being imported.
--nameThe name of the custom terminology being imported.
--tagsTags to be associated with this resource.
--terminology-dataThe terminology data for the custom terminology being imported.