| 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.GetBotVersions
Description
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_maxResults :: Lens' GetBotVersions (Maybe Natural)
 - getBotVersions_nextToken :: Lens' GetBotVersions (Maybe Text)
 - 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.
Constructors
| GetBotVersions' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> GetBotVersions | 
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:maxResults:GetBotVersions', getBotVersions_maxResults - The maximum number of bot versions to return in the response. The
 default is 10.
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.
GetBotVersions, getBotVersions_name - The name of the bot for which versions should be returned.
Request Lenses
getBotVersions_maxResults :: Lens' GetBotVersions (Maybe Natural) Source #
The maximum number of bot versions to return in the response. The default is 10.
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_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.
Constructors
| GetBotVersionsResponse' | |
Fields 
  | |
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.
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.