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 |
Returns bot information as follows:
- If you provide the
nameContains
field, the response includes information for the$LATEST
version of all bots whose name contains the specified string. - If you don't specify the
nameContains
field, the operation returns information about the$LATEST
version 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_nameContains :: Lens' GetBots (Maybe Text)
- getBots_nextToken :: Lens' GetBots (Maybe Text)
- getBots_maxResults :: Lens' GetBots (Maybe Natural)
- 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.
GetBots' | |
|
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: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."
$sel:nextToken: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.
$sel:maxResults:GetBots'
, getBots_maxResults
- The maximum number of bots to return in the response that the request
will return. The default is 10.
Request Lenses
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.
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.
Destructuring the Response
data GetBotsResponse Source #
See: newGetBotsResponse
smart constructor.
GetBotsResponse' | |
|
Instances
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.
$sel:nextToken: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.