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 |
Retrieves a list of channels.
Synopsis
- listChannels :: ListChannels
- data ListChannels
- lcNextToken :: Lens' ListChannels (Maybe Text)
- lcMaxResults :: Lens' ListChannels (Maybe Natural)
- listChannelsResponse :: Int -> ListChannelsResponse
- data ListChannelsResponse
- lcrsChannelSummaries :: Lens' ListChannelsResponse [ChannelSummary]
- lcrsNextToken :: Lens' ListChannelsResponse (Maybe Text)
- lcrsResponseStatus :: Lens' ListChannelsResponse Int
Creating a Request
listChannels :: ListChannels Source #
Creates a value of ListChannels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcNextToken
- The token for the next set of results.lcMaxResults
- The maximum number of results to return in this request. The default value is 100.
data ListChannels Source #
See: listChannels
smart constructor.
Instances
Request Lenses
lcNextToken :: Lens' ListChannels (Maybe Text) Source #
The token for the next set of results.
lcMaxResults :: Lens' ListChannels (Maybe Natural) Source #
The maximum number of results to return in this request. The default value is 100.
Destructuring the Response
Creates a value of ListChannelsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcrsChannelSummaries
- A list of ChannelSummary objects.lcrsNextToken
- The token to retrieve the next set of results, ornull
if there are no more results.lcrsResponseStatus
- -- | The response status code.
data ListChannelsResponse Source #
See: listChannelsResponse
smart constructor.
Instances
Response Lenses
lcrsChannelSummaries :: Lens' ListChannelsResponse [ChannelSummary] Source #
A list of ChannelSummary objects.
lcrsNextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
The token to retrieve the next set of results, or null
if there are no more results.
lcrsResponseStatus :: Lens' ListChannelsResponse Int Source #
- - | The response status code.