Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves a custom terminology.
Synopsis
- data GetTerminology = GetTerminology' {}
- newGetTerminology :: Text -> GetTerminology
- getTerminology_terminologyDataFormat :: Lens' GetTerminology (Maybe TerminologyDataFormat)
- getTerminology_name :: Lens' GetTerminology Text
- data GetTerminologyResponse = GetTerminologyResponse' {}
- newGetTerminologyResponse :: Int -> GetTerminologyResponse
- getTerminologyResponse_auxiliaryDataLocation :: Lens' GetTerminologyResponse (Maybe TerminologyDataLocation)
- getTerminologyResponse_terminologyDataLocation :: Lens' GetTerminologyResponse (Maybe TerminologyDataLocation)
- getTerminologyResponse_terminologyProperties :: Lens' GetTerminologyResponse (Maybe TerminologyProperties)
- getTerminologyResponse_httpStatus :: Lens' GetTerminologyResponse Int
Creating a Request
data GetTerminology Source #
See: newGetTerminology
smart constructor.
GetTerminology' | |
|
Instances
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.
GetTerminologyResponse' | |
|
Instances
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.
getTerminologyResponse_terminologyProperties :: Lens' GetTerminologyResponse (Maybe TerminologyProperties) Source #
The properties of the custom terminology being retrieved.
getTerminologyResponse_httpStatus :: Lens' GetTerminologyResponse Int Source #
The response's http status code.