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 |
Returns a list of all of the channels associated with the specified bot.
The GetBotChannelAssociations
operation requires permissions for the lex:GetBotChannelAssociations
action.
This operation returns paginated results.
Synopsis
- getBotChannelAssociations :: Text -> Text -> GetBotChannelAssociations
- data GetBotChannelAssociations
- gbcaNameContains :: Lens' GetBotChannelAssociations (Maybe Text)
- gbcaNextToken :: Lens' GetBotChannelAssociations (Maybe Text)
- gbcaMaxResults :: Lens' GetBotChannelAssociations (Maybe Natural)
- gbcaBotName :: Lens' GetBotChannelAssociations Text
- gbcaBotAlias :: Lens' GetBotChannelAssociations Text
- getBotChannelAssociationsResponse :: Int -> GetBotChannelAssociationsResponse
- data GetBotChannelAssociationsResponse
- gbcasrsBotChannelAssociations :: Lens' GetBotChannelAssociationsResponse [BotChannelAssociation]
- gbcasrsNextToken :: Lens' GetBotChannelAssociationsResponse (Maybe Text)
- gbcasrsResponseStatus :: Lens' GetBotChannelAssociationsResponse Int
Creating a Request
getBotChannelAssociations Source #
Creates a value of GetBotChannelAssociations
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbcaNameContains
- Substring to match in channel association names. An association will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To return all bot channel associations, use a hyphen ("-") as thenameContains
parameter.gbcaNextToken
- A pagination token for fetching the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.gbcaMaxResults
- The maximum number of associations to return in the response. The default is 50.gbcaBotName
- The name of the Amazon Lex bot in the association.gbcaBotAlias
- An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
data GetBotChannelAssociations Source #
See: getBotChannelAssociations
smart constructor.
Instances
Request Lenses
gbcaNameContains :: Lens' GetBotChannelAssociations (Maybe Text) Source #
Substring to match in channel association names. An association will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To return all bot channel associations, use a hyphen ("-") as the nameContains
parameter.
gbcaNextToken :: Lens' GetBotChannelAssociations (Maybe Text) Source #
A pagination token for fetching the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.
gbcaMaxResults :: Lens' GetBotChannelAssociations (Maybe Natural) Source #
The maximum number of associations to return in the response. The default is 50.
gbcaBotName :: Lens' GetBotChannelAssociations Text Source #
The name of the Amazon Lex bot in the association.
gbcaBotAlias :: Lens' GetBotChannelAssociations Text Source #
An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
Destructuring the Response
getBotChannelAssociationsResponse Source #
Creates a value of GetBotChannelAssociationsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbcasrsBotChannelAssociations
- An array of objects, one for each association, that provides information about the Amazon Lex bot and its association with the channel.gbcasrsNextToken
- A pagination token that fetches the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.gbcasrsResponseStatus
- -- | The response status code.
data GetBotChannelAssociationsResponse Source #
See: getBotChannelAssociationsResponse
smart constructor.
Instances
Response Lenses
gbcasrsBotChannelAssociations :: Lens' GetBotChannelAssociationsResponse [BotChannelAssociation] Source #
An array of objects, one for each association, that provides information about the Amazon Lex bot and its association with the channel.
gbcasrsNextToken :: Lens' GetBotChannelAssociationsResponse (Maybe Text) Source #
A pagination token that fetches the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.
gbcasrsResponseStatus :: Lens' GetBotChannelAssociationsResponse Int Source #
- - | The response status code.