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 collection of Channels.
This operation returns paginated results.
- listChannels :: ListChannels
- data ListChannels
- lcNextToken :: Lens' ListChannels (Maybe Text)
- lcMaxResults :: Lens' ListChannels (Maybe Natural)
- listChannelsResponse :: Int -> ListChannelsResponse
- data ListChannelsResponse
- lcrsChannels :: Lens' ListChannelsResponse [Channel]
- 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
- A token used to resume pagination from the end of a previous request.lcMaxResults
- Upper bound on number of records to return.
data ListChannels Source #
See: listChannels
smart constructor.
Request Lenses
lcNextToken :: Lens' ListChannels (Maybe Text) Source #
A token used to resume pagination from the end of a previous request.
lcMaxResults :: Lens' ListChannels (Maybe Natural) Source #
Upper bound on number of records to return.
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:
lcrsChannels
- A list of Channel records.lcrsNextToken
- A token that can be used to resume pagination from the end of the collection.lcrsResponseStatus
- -- | The response status code.
data ListChannelsResponse Source #
See: listChannelsResponse
smart constructor.
Response Lenses
lcrsChannels :: Lens' ListChannelsResponse [Channel] Source #
A list of Channel records.
lcrsNextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
A token that can be used to resume pagination from the end of the collection.
lcrsResponseStatus :: Lens' ListChannelsResponse Int Source #
- - | The response status code.