Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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
- getBotVersions :: Text -> GetBotVersions
- data GetBotVersions
- gbvNextToken :: Lens' GetBotVersions (Maybe Text)
- gbvMaxResults :: Lens' GetBotVersions (Maybe Natural)
- gbvName :: Lens' GetBotVersions Text
- getBotVersionsResponse :: Int -> GetBotVersionsResponse
- data GetBotVersionsResponse
- gbvrsBots :: Lens' GetBotVersionsResponse [BotMetadata]
- gbvrsNextToken :: Lens' GetBotVersionsResponse (Maybe Text)
- gbvrsResponseStatus :: Lens' GetBotVersionsResponse Int
Creating a Request
Creates a value of GetBotVersions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbvNextToken
- 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.gbvMaxResults
- The maximum number of bot versions to return in the response. The default is 10.gbvName
- The name of the bot for which versions should be returned.
data GetBotVersions Source #
See: getBotVersions
smart constructor.
Instances
Request Lenses
gbvNextToken :: 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.
gbvMaxResults :: Lens' GetBotVersions (Maybe Natural) Source #
The maximum number of bot versions to return in the response. The default is 10.
gbvName :: Lens' GetBotVersions Text Source #
The name of the bot for which versions should be returned.
Destructuring the Response
getBotVersionsResponse Source #
Creates a value of GetBotVersionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbvrsBots
- An array ofBotMetadata
objects, one for each numbered version of the bot plus one for the> LATEST
version.gbvrsNextToken
- 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.gbvrsResponseStatus
- -- | The response status code.
data GetBotVersionsResponse Source #
See: getBotVersionsResponse
smart constructor.
Instances
Response Lenses
gbvrsBots :: Lens' GetBotVersionsResponse [BotMetadata] Source #
An array of BotMetadata
objects, one for each numbered version of the bot plus one for the > LATEST
version.
gbvrsNextToken :: 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.
gbvrsResponseStatus :: Lens' GetBotVersionsResponse Int Source #
- - | The response status code.