libZSservicesZSamazonka-translateZSamazonka-translate
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Translate.ImportTerminology

Description

Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.

If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.

Synopsis

Creating a Request

data ImportTerminology Source #

See: newImportTerminology smart constructor.

Constructors

ImportTerminology' 

Fields

  • encryptionKey :: Maybe EncryptionKey

    The encryption key for the custom terminology being imported.

  • description :: Maybe Text

    The description of the custom terminology being imported.

  • name :: Text

    The name of the custom terminology being imported.

  • mergeStrategy :: MergeStrategy

    The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.

  • terminologyData :: TerminologyData

    The terminology data for the custom terminology being imported.

Instances

Instances details
Eq ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Show ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Generic ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Associated Types

type Rep ImportTerminology :: Type -> Type #

NFData ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Methods

rnf :: ImportTerminology -> () #

Hashable ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

ToJSON ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

AWSRequest ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Associated Types

type AWSResponse ImportTerminology #

ToHeaders ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

ToPath ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

ToQuery ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

type Rep ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

type Rep ImportTerminology = D1 ('MetaData "ImportTerminology" "Amazonka.Translate.ImportTerminology" "libZSservicesZSamazonka-translateZSamazonka-translate" 'False) (C1 ('MetaCons "ImportTerminology'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "encryptionKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionKey)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "mergeStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MergeStrategy) :*: S1 ('MetaSel ('Just "terminologyData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TerminologyData)))))
type AWSResponse ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

newImportTerminology Source #

Create a value of ImportTerminology with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:encryptionKey:ImportTerminology', importTerminology_encryptionKey - The encryption key for the custom terminology being imported.

$sel:description:ImportTerminology', importTerminology_description - The description of the custom terminology being imported.

$sel:name:ImportTerminology', importTerminology_name - The name of the custom terminology being imported.

$sel:mergeStrategy:ImportTerminology', importTerminology_mergeStrategy - The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.

$sel:terminologyData:ImportTerminology', importTerminology_terminologyData - The terminology data for the custom terminology being imported.

Request Lenses

importTerminology_encryptionKey :: Lens' ImportTerminology (Maybe EncryptionKey) Source #

The encryption key for the custom terminology being imported.

importTerminology_description :: Lens' ImportTerminology (Maybe Text) Source #

The description of the custom terminology being imported.

importTerminology_name :: Lens' ImportTerminology Text Source #

The name of the custom terminology being imported.

importTerminology_mergeStrategy :: Lens' ImportTerminology MergeStrategy Source #

The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.

importTerminology_terminologyData :: Lens' ImportTerminology TerminologyData Source #

The terminology data for the custom terminology being imported.

Destructuring the Response

data ImportTerminologyResponse Source #

See: newImportTerminologyResponse smart constructor.

Constructors

ImportTerminologyResponse' 

Fields

Instances

Instances details
Eq ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Read ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Show ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Generic ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Associated Types

type Rep ImportTerminologyResponse :: Type -> Type #

NFData ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

type Rep ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

type Rep ImportTerminologyResponse = D1 ('MetaData "ImportTerminologyResponse" "Amazonka.Translate.ImportTerminology" "libZSservicesZSamazonka-translateZSamazonka-translate" 'False) (C1 ('MetaCons "ImportTerminologyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "terminologyProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TerminologyProperties)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newImportTerminologyResponse Source #

Create a value of ImportTerminologyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:terminologyProperties:ImportTerminologyResponse', importTerminologyResponse_terminologyProperties - The properties of the custom terminology being imported.

$sel:httpStatus:ImportTerminologyResponse', importTerminologyResponse_httpStatus - The response's http status code.

Response Lenses