| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Translate.GetTerminology
Description
Retrieves a custom terminology.
Synopsis
- data GetTerminology = GetTerminology' {}
- newGetTerminology :: Text -> TerminologyDataFormat -> GetTerminology
- getTerminology_name :: Lens' GetTerminology Text
- getTerminology_terminologyDataFormat :: Lens' GetTerminology TerminologyDataFormat
- data GetTerminologyResponse = GetTerminologyResponse' {}
- newGetTerminologyResponse :: Int -> GetTerminologyResponse
- getTerminologyResponse_terminologyProperties :: Lens' GetTerminologyResponse (Maybe TerminologyProperties)
- getTerminologyResponse_terminologyDataLocation :: Lens' GetTerminologyResponse (Maybe TerminologyDataLocation)
- getTerminologyResponse_httpStatus :: Lens' GetTerminologyResponse Int
Creating a Request
data GetTerminology Source #
See: newGetTerminology smart constructor.
Constructors
| GetTerminology' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> TerminologyDataFormat | |
| -> GetTerminology |
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:name:GetTerminology', getTerminology_name - The name of the custom terminology being retrieved.
$sel:terminologyDataFormat:GetTerminology', getTerminology_terminologyDataFormat - The data format of the custom terminology being retrieved, either CSV or
TMX.
Request Lenses
getTerminology_name :: Lens' GetTerminology Text Source #
The name of the custom terminology being retrieved.
getTerminology_terminologyDataFormat :: Lens' GetTerminology TerminologyDataFormat Source #
The data format of the custom terminology being retrieved, either CSV or TMX.
Destructuring the Response
data GetTerminologyResponse Source #
See: newGetTerminologyResponse smart constructor.
Constructors
| GetTerminologyResponse' | |
Fields
| |
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:terminologyProperties:GetTerminologyResponse', getTerminologyResponse_terminologyProperties - The properties of the custom terminology being retrieved.
$sel:terminologyDataLocation:GetTerminologyResponse', getTerminologyResponse_terminologyDataLocation - The data location of the custom terminology being retrieved. The custom
terminology file is returned in a presigned url that has a 30 minute
expiration.
$sel:httpStatus:GetTerminologyResponse', getTerminologyResponse_httpStatus - The response's http status code.
Response Lenses
getTerminologyResponse_terminologyProperties :: Lens' GetTerminologyResponse (Maybe TerminologyProperties) Source #
The properties of the custom terminology being retrieved.
getTerminologyResponse_terminologyDataLocation :: Lens' GetTerminologyResponse (Maybe TerminologyDataLocation) Source #
The data location of the custom terminology being retrieved. The custom terminology file is returned in a presigned url that has a 30 minute expiration.
getTerminologyResponse_httpStatus :: Lens' GetTerminologyResponse Int Source #
The response's http status code.