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 |
Gets information about all of the versions of a bot.
The GetBotVersions
operation returns a BotMetadata
object for each
version of a bot. For example, if a bot has three numbered versions, the
GetBotVersions
operation returns four BotMetadata
objects in the
response, one for each numbered version and one for the $LATEST
version.
The GetBotVersions
operation always returns at least one version, the
$LATEST
version.
This operation requires permissions for the lex:GetBotVersions
action.
This operation returns paginated results.
Synopsis
- data GetBotVersions = GetBotVersions' {}
- newGetBotVersions :: Text -> GetBotVersions
- getBotVersions_nextToken :: Lens' GetBotVersions (Maybe Text)
- getBotVersions_maxResults :: Lens' GetBotVersions (Maybe Natural)
- getBotVersions_name :: Lens' GetBotVersions Text
- data GetBotVersionsResponse = GetBotVersionsResponse' {
- bots :: Maybe [BotMetadata]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetBotVersionsResponse :: Int -> GetBotVersionsResponse
- getBotVersionsResponse_bots :: Lens' GetBotVersionsResponse (Maybe [BotMetadata])
- getBotVersionsResponse_nextToken :: Lens' GetBotVersionsResponse (Maybe Text)
- getBotVersionsResponse_httpStatus :: Lens' GetBotVersionsResponse Int
Creating a Request
data GetBotVersions Source #
See: newGetBotVersions
smart constructor.
GetBotVersions' | |
|
Instances
Create a value of GetBotVersions
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:nextToken:GetBotVersions'
, getBotVersions_nextToken
- A pagination token for fetching the next page of bot versions. If the
response to this call is truncated, Amazon Lex returns a pagination
token in the response. To fetch the next page of versions, specify the
pagination token in the next request.
$sel:maxResults:GetBotVersions'
, getBotVersions_maxResults
- The maximum number of bot versions to return in the response. The
default is 10.
$sel:name:GetBotVersions'
, getBotVersions_name
- The name of the bot for which versions should be returned.
Request Lenses
getBotVersions_nextToken :: Lens' GetBotVersions (Maybe Text) Source #
A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
getBotVersions_maxResults :: Lens' GetBotVersions (Maybe Natural) Source #
The maximum number of bot versions to return in the response. The default is 10.
getBotVersions_name :: Lens' GetBotVersions Text Source #
The name of the bot for which versions should be returned.
Destructuring the Response
data GetBotVersionsResponse Source #
See: newGetBotVersionsResponse
smart constructor.
GetBotVersionsResponse' | |
|
Instances
newGetBotVersionsResponse Source #
Create a value of GetBotVersionsResponse
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:GetBotVersionsResponse'
, getBotVersionsResponse_bots
- An array of BotMetadata
objects, one for each numbered version of the
bot plus one for the $LATEST
version.
$sel:nextToken:GetBotVersions'
, getBotVersionsResponse_nextToken
- A pagination token for fetching the next page of bot versions. If the
response to this call is truncated, Amazon Lex returns a pagination
token in the response. To fetch the next page of versions, specify the
pagination token in the next request.
$sel:httpStatus:GetBotVersionsResponse'
, getBotVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
getBotVersionsResponse_bots :: Lens' GetBotVersionsResponse (Maybe [BotMetadata]) Source #
An array of BotMetadata
objects, one for each numbered version of the
bot plus one for the $LATEST
version.
getBotVersionsResponse_nextToken :: Lens' GetBotVersionsResponse (Maybe Text) Source #
A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
getBotVersionsResponse_httpStatus :: Lens' GetBotVersionsResponse Int Source #
The response's http status code.