| 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 | 
Amazonka.Transcribe.ListLanguageModels
Description
Provides a list of custom language models that match the specified criteria. If no criteria are specified, all custom language models are returned.
To get detailed information about a specific custom language model, use the operation.
Synopsis
- data ListLanguageModels = ListLanguageModels' {}
 - newListLanguageModels :: ListLanguageModels
 - listLanguageModels_maxResults :: Lens' ListLanguageModels (Maybe Natural)
 - listLanguageModels_nameContains :: Lens' ListLanguageModels (Maybe Text)
 - listLanguageModels_nextToken :: Lens' ListLanguageModels (Maybe Text)
 - listLanguageModels_statusEquals :: Lens' ListLanguageModels (Maybe ModelStatus)
 - data ListLanguageModelsResponse = ListLanguageModelsResponse' {
- models :: Maybe [LanguageModel]
 - nextToken :: Maybe Text
 - httpStatus :: Int
 
 - newListLanguageModelsResponse :: Int -> ListLanguageModelsResponse
 - listLanguageModelsResponse_models :: Lens' ListLanguageModelsResponse (Maybe [LanguageModel])
 - listLanguageModelsResponse_nextToken :: Lens' ListLanguageModelsResponse (Maybe Text)
 - listLanguageModelsResponse_httpStatus :: Lens' ListLanguageModelsResponse Int
 
Creating a Request
data ListLanguageModels Source #
See: newListLanguageModels smart constructor.
Constructors
| ListLanguageModels' | |
Fields 
  | |
Instances
newListLanguageModels :: ListLanguageModels Source #
Create a value of ListLanguageModels 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:maxResults:ListLanguageModels', listLanguageModels_maxResults - The maximum number of custom language models to return in each page of
 results. If there are fewer results than the value that you specify,
 only the actual results are returned. If you don't specify a value, a
 default of 5 is used.
$sel:nameContains:ListLanguageModels', listLanguageModels_nameContains - Returns only the custom language models that contain the specified
 string. The search is not case sensitive.
ListLanguageModels, listLanguageModels_nextToken - If your ListLanguageModels request returns more results than can be
 displayed, NextToken is displayed in the response with an associated
 string. To get the next page of results, copy this string and repeat
 your request, including NextToken with the value of the copied string.
 Repeat as needed to view all your results.
$sel:statusEquals:ListLanguageModels', listLanguageModels_statusEquals - Returns only custom language models with the specified status. Language
 models are ordered by creation date, with the newest model first. If you
 don't include StatusEquals, all custom language models are returned.
Request Lenses
listLanguageModels_maxResults :: Lens' ListLanguageModels (Maybe Natural) Source #
The maximum number of custom language models to return in each page of results. If there are fewer results than the value that you specify, only the actual results are returned. If you don't specify a value, a default of 5 is used.
listLanguageModels_nameContains :: Lens' ListLanguageModels (Maybe Text) Source #
Returns only the custom language models that contain the specified string. The search is not case sensitive.
listLanguageModels_nextToken :: Lens' ListLanguageModels (Maybe Text) Source #
If your ListLanguageModels request returns more results than can be
 displayed, NextToken is displayed in the response with an associated
 string. To get the next page of results, copy this string and repeat
 your request, including NextToken with the value of the copied string.
 Repeat as needed to view all your results.
listLanguageModels_statusEquals :: Lens' ListLanguageModels (Maybe ModelStatus) Source #
Returns only custom language models with the specified status. Language
 models are ordered by creation date, with the newest model first. If you
 don't include StatusEquals, all custom language models are returned.
Destructuring the Response
data ListLanguageModelsResponse Source #
See: newListLanguageModelsResponse smart constructor.
Constructors
| ListLanguageModelsResponse' | |
Fields 
  | |
Instances
newListLanguageModelsResponse Source #
Create a value of ListLanguageModelsResponse 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:models:ListLanguageModelsResponse', listLanguageModelsResponse_models - Provides information about the custom language models that match the
 criteria specified in your request.
ListLanguageModels, listLanguageModelsResponse_nextToken - If NextToken is present in your response, it indicates that not all
 results are displayed. To view the next set of results, copy the string
 associated with the NextToken parameter in your results output, then
 run your request again including NextToken with the value of the
 copied string. Repeat as needed to view all your results.
$sel:httpStatus:ListLanguageModelsResponse', listLanguageModelsResponse_httpStatus - The response's http status code.
Response Lenses
listLanguageModelsResponse_models :: Lens' ListLanguageModelsResponse (Maybe [LanguageModel]) Source #
Provides information about the custom language models that match the criteria specified in your request.
listLanguageModelsResponse_nextToken :: Lens' ListLanguageModelsResponse (Maybe Text) Source #
If NextToken is present in your response, it indicates that not all
 results are displayed. To view the next set of results, copy the string
 associated with the NextToken parameter in your results output, then
 run your request again including NextToken with the value of the
 copied string. Repeat as needed to view all your results.
listLanguageModelsResponse_httpStatus :: Lens' ListLanguageModelsResponse Int Source #
The response's http status code.