| 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.LexModels.GetBots
Description
Returns bot information as follows:
- If you provide the 
nameContainsfield, the response includes information for the$LATESTversion of all bots whose name contains the specified string. - If you don't specify the 
nameContainsfield, the operation returns information about the$LATESTversion of all of your bots. 
This operation requires permission for the lex:GetBots action.
This operation returns paginated results.
Synopsis
- data GetBots = GetBots' {}
 - newGetBots :: GetBots
 - getBots_maxResults :: Lens' GetBots (Maybe Natural)
 - getBots_nameContains :: Lens' GetBots (Maybe Text)
 - getBots_nextToken :: Lens' GetBots (Maybe Text)
 - data GetBotsResponse = GetBotsResponse' {
- bots :: Maybe [BotMetadata]
 - nextToken :: Maybe Text
 - httpStatus :: Int
 
 - newGetBotsResponse :: Int -> GetBotsResponse
 - getBotsResponse_bots :: Lens' GetBotsResponse (Maybe [BotMetadata])
 - getBotsResponse_nextToken :: Lens' GetBotsResponse (Maybe Text)
 - getBotsResponse_httpStatus :: Lens' GetBotsResponse Int
 
Creating a Request
See: newGetBots smart constructor.
Constructors
| GetBots' | |
Fields 
  | |
Instances
newGetBots :: GetBots Source #
Create a value of GetBots 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:GetBots', getBots_maxResults - The maximum number of bots to return in the response that the request
 will return. The default is 10.
$sel:nameContains:GetBots', getBots_nameContains - Substring to match in bot names. A bot will be returned if any part of
 its name matches the substring. For example, "xyz" matches both
 "xyzabc" and "abcxyz."
GetBots, getBots_nextToken - A pagination token that fetches the next page of bots. If the response
 to this call is truncated, Amazon Lex returns a pagination token in the
 response. To fetch the next page of bots, specify the pagination token
 in the next request.
Request Lenses
getBots_maxResults :: Lens' GetBots (Maybe Natural) Source #
The maximum number of bots to return in the response that the request will return. The default is 10.
getBots_nameContains :: Lens' GetBots (Maybe Text) Source #
Substring to match in bot names. A bot will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."
getBots_nextToken :: Lens' GetBots (Maybe Text) Source #
A pagination token that fetches the next page of bots. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of bots, specify the pagination token in the next request.
Destructuring the Response
data GetBotsResponse Source #
See: newGetBotsResponse smart constructor.
Constructors
| GetBotsResponse' | |
Fields 
  | |
Instances
Arguments
| :: Int | |
| -> GetBotsResponse | 
Create a value of GetBotsResponse 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:bots:GetBotsResponse', getBotsResponse_bots - An array of botMetadata objects, with one entry for each bot.
GetBots, getBotsResponse_nextToken - If the response is truncated, it includes a pagination token that you
 can specify in your next request to fetch the next page of bots.
$sel:httpStatus:GetBotsResponse', getBotsResponse_httpStatus - The response's http status code.
Response Lenses
getBotsResponse_bots :: Lens' GetBotsResponse (Maybe [BotMetadata]) Source #
An array of botMetadata objects, with one entry for each bot.
getBotsResponse_nextToken :: Lens' GetBotsResponse (Maybe Text) Source #
If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of bots.
getBotsResponse_httpStatus :: Lens' GetBotsResponse Int Source #
The response's http status code.