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 |
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
Synopsis
- data ListLanguages = ListLanguages' {}
- newListLanguages :: ListLanguages
- listLanguages_displayLanguageCode :: Lens' ListLanguages (Maybe DisplayLanguageCode)
- listLanguages_maxResults :: Lens' ListLanguages (Maybe Natural)
- listLanguages_nextToken :: Lens' ListLanguages (Maybe Text)
- data ListLanguagesResponse = ListLanguagesResponse' {}
- newListLanguagesResponse :: Int -> ListLanguagesResponse
- listLanguagesResponse_displayLanguageCode :: Lens' ListLanguagesResponse (Maybe DisplayLanguageCode)
- listLanguagesResponse_languages :: Lens' ListLanguagesResponse (Maybe [Language])
- listLanguagesResponse_nextToken :: Lens' ListLanguagesResponse (Maybe Text)
- listLanguagesResponse_httpStatus :: Lens' ListLanguagesResponse Int
Creating a Request
data ListLanguages Source #
See: newListLanguages
smart constructor.
ListLanguages' | |
|
Instances
newListLanguages :: ListLanguages Source #
Create a value of ListLanguages
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:
ListLanguages
, listLanguages_displayLanguageCode
- The language code for the language to use to display the language names
in the response. The language code is en
by default.
$sel:maxResults:ListLanguages'
, listLanguages_maxResults
- The maximum number of results to return in each response.
ListLanguages
, listLanguages_nextToken
- Include the NextToken value to fetch the next group of supported
languages.
Request Lenses
listLanguages_displayLanguageCode :: Lens' ListLanguages (Maybe DisplayLanguageCode) Source #
The language code for the language to use to display the language names
in the response. The language code is en
by default.
listLanguages_maxResults :: Lens' ListLanguages (Maybe Natural) Source #
The maximum number of results to return in each response.
listLanguages_nextToken :: Lens' ListLanguages (Maybe Text) Source #
Include the NextToken value to fetch the next group of supported languages.
Destructuring the Response
data ListLanguagesResponse Source #
See: newListLanguagesResponse
smart constructor.
ListLanguagesResponse' | |
|
Instances
newListLanguagesResponse Source #
Create a value of ListLanguagesResponse
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:
ListLanguages
, listLanguagesResponse_displayLanguageCode
- The language code passed in with the request.
$sel:languages:ListLanguagesResponse'
, listLanguagesResponse_languages
- The list of supported languages.
ListLanguages
, listLanguagesResponse_nextToken
- If the response does not include all remaining results, use the
NextToken in the next request to fetch the next group of supported
languages.
$sel:httpStatus:ListLanguagesResponse'
, listLanguagesResponse_httpStatus
- The response's http status code.
Response Lenses
listLanguagesResponse_displayLanguageCode :: Lens' ListLanguagesResponse (Maybe DisplayLanguageCode) Source #
The language code passed in with the request.
listLanguagesResponse_languages :: Lens' ListLanguagesResponse (Maybe [Language]) Source #
The list of supported languages.
listLanguagesResponse_nextToken :: Lens' ListLanguagesResponse (Maybe Text) Source #
If the response does not include all remaining results, use the NextToken in the next request to fetch the next group of supported languages.
listLanguagesResponse_httpStatus :: Lens' ListLanguagesResponse Int Source #
The response's http status code.