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.GetTerminology

Description

Retrieves a custom terminology.

Synopsis

Creating a Request

data GetTerminology Source #

See: newGetTerminology smart constructor.

Constructors

GetTerminology' 

Fields

  • terminologyDataFormat :: Maybe TerminologyDataFormat

    The data format of the custom terminology being retrieved.

    If you don't specify this parameter, Amazon Translate returns a file with the same format as the file that was imported to create the terminology.

    If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error.

  • name :: Text

    The name of the custom terminology being retrieved.

Instances

Instances details
ToJSON GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

ToHeaders GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

ToPath GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

ToQuery GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

AWSRequest GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Associated Types

type AWSResponse GetTerminology #

Generic GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Associated Types

type Rep GetTerminology :: Type -> Type #

Read GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Show GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

NFData GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Methods

rnf :: GetTerminology -> () #

Eq GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Hashable GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

type AWSResponse GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

type Rep GetTerminology Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

type Rep GetTerminology = D1 ('MetaData "GetTerminology" "Amazonka.Translate.GetTerminology" "amazonka-translate-2.0-L0mihfp7dIB5vR5cgIREJ6" 'False) (C1 ('MetaCons "GetTerminology'" 'PrefixI 'True) (S1 ('MetaSel ('Just "terminologyDataFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TerminologyDataFormat)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetTerminology Source #

Create a value of GetTerminology 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:terminologyDataFormat:GetTerminology', getTerminology_terminologyDataFormat - The data format of the custom terminology being retrieved.

If you don't specify this parameter, Amazon Translate returns a file with the same format as the file that was imported to create the terminology.

If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error.

GetTerminology, getTerminology_name - The name of the custom terminology being retrieved.

Request Lenses

getTerminology_terminologyDataFormat :: Lens' GetTerminology (Maybe TerminologyDataFormat) Source #

The data format of the custom terminology being retrieved.

If you don't specify this parameter, Amazon Translate returns a file with the same format as the file that was imported to create the terminology.

If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error.

getTerminology_name :: Lens' GetTerminology Text Source #

The name of the custom terminology being retrieved.

Destructuring the Response

data GetTerminologyResponse Source #

See: newGetTerminologyResponse smart constructor.

Constructors

GetTerminologyResponse' 

Fields

  • auxiliaryDataLocation :: Maybe TerminologyDataLocation

    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.

  • terminologyDataLocation :: Maybe TerminologyDataLocation

    The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

    Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

    CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

    Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

  • terminologyProperties :: Maybe TerminologyProperties

    The properties of the custom terminology being retrieved.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Associated Types

type Rep GetTerminologyResponse :: Type -> Type #

Read GetTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Show GetTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

NFData GetTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

Methods

rnf :: GetTerminologyResponse -> () #

Eq GetTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

type Rep GetTerminologyResponse Source # 
Instance details

Defined in Amazonka.Translate.GetTerminology

type Rep GetTerminologyResponse = D1 ('MetaData "GetTerminologyResponse" "Amazonka.Translate.GetTerminology" "amazonka-translate-2.0-L0mihfp7dIB5vR5cgIREJ6" 'False) (C1 ('MetaCons "GetTerminologyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "auxiliaryDataLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TerminologyDataLocation)) :*: S1 ('MetaSel ('Just "terminologyDataLocation") '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))))

newGetTerminologyResponse Source #

Create a value of GetTerminologyResponse 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:GetTerminologyResponse', getTerminologyResponse_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:terminologyDataLocation:GetTerminologyResponse', getTerminologyResponse_terminologyDataLocation - The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.

$sel:terminologyProperties:GetTerminologyResponse', getTerminologyResponse_terminologyProperties - The properties of the custom terminology being retrieved.

$sel:httpStatus:GetTerminologyResponse', getTerminologyResponse_httpStatus - The response's http status code.

Response Lenses

getTerminologyResponse_auxiliaryDataLocation :: Lens' GetTerminologyResponse (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.

getTerminologyResponse_terminologyDataLocation :: Lens' GetTerminologyResponse (Maybe TerminologyDataLocation) Source #

The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration.

Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.

CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.

Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.