amazonka-translate-2.0: Amazon Translate SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Translate.ImportTerminology

Description

Creates or updates a custom terminology, depending on whether 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. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.

If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.

Synopsis

Creating a Request

data ImportTerminology Source #

See: newImportTerminology smart constructor.

Constructors

ImportTerminology' 

Fields

  • description :: Maybe Text

    The description of the custom terminology being imported.

  • encryptionKey :: Maybe EncryptionKey

    The encryption key for the custom terminology being imported.

  • tags :: Maybe [Tag]

    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.

  • 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
ToJSON ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.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

AWSRequest ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Associated Types

type AWSResponse ImportTerminology #

Generic ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Associated Types

type Rep ImportTerminology :: Type -> Type #

Show ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

NFData ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Methods

rnf :: ImportTerminology -> () #

Eq ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Hashable ImportTerminology Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

type AWSResponse 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" "amazonka-translate-2.0-L0mihfp7dIB5vR5cgIREJ6" 'False) (C1 ('MetaCons "ImportTerminology'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "encryptionKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionKey)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: (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)))))

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:

ImportTerminology, importTerminology_description - The description of the custom terminology being imported.

ImportTerminology, importTerminology_encryptionKey - The encryption key for the custom terminology being imported.

$sel:tags:ImportTerminology', importTerminology_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.

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_description :: Lens' ImportTerminology (Maybe Text) Source #

The description of the custom terminology being imported.

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

The encryption key for the custom terminology being imported.

importTerminology_tags :: Lens' ImportTerminology (Maybe [Tag]) Source #

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.

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
Generic ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Associated Types

type Rep ImportTerminologyResponse :: Type -> Type #

Read ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Show ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

NFData ImportTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.ImportTerminology

Eq 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" "amazonka-translate-2.0-L0mihfp7dIB5vR5cgIREJ6" 'False) (C1 ('MetaCons "ImportTerminologyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "auxiliaryDataLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TerminologyDataLocation)) :*: (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:auxiliaryDataLocation:ImportTerminologyResponse', importTerminologyResponse_auxiliaryDataLocation - 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.

$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

importTerminologyResponse_auxiliaryDataLocation :: Lens' ImportTerminologyResponse (Maybe TerminologyDataLocation) Source #

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.