Copyright | (c) 2013-2021 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 |
Retrieves a list of channels.
This operation returns paginated results.
Synopsis
- data ListChannels = ListChannels' {}
- newListChannels :: ListChannels
- listChannels_nextToken :: Lens' ListChannels (Maybe Text)
- listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
- data ListChannelsResponse = ListChannelsResponse' {}
- newListChannelsResponse :: Int -> ListChannelsResponse
- listChannelsResponse_channelSummaries :: Lens' ListChannelsResponse (Maybe [ChannelSummary])
- listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text)
- listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int
Creating a Request
data ListChannels Source #
See: newListChannels
smart constructor.
Instances
newListChannels :: ListChannels Source #
Create a value of ListChannels
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:nextToken:ListChannels'
, listChannels_nextToken
- The token for the next set of results.
$sel:maxResults:ListChannels'
, listChannels_maxResults
- The maximum number of results to return in this request.
The default value is 100.
Request Lenses
listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #
The token for the next set of results.
listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #
The maximum number of results to return in this request.
The default value is 100.
Destructuring the Response
data ListChannelsResponse Source #
See: newListChannelsResponse
smart constructor.
ListChannelsResponse' | |
|
Instances
newListChannelsResponse Source #
Create a value of ListChannelsResponse
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:channelSummaries:ListChannelsResponse'
, listChannelsResponse_channelSummaries
- A list of ChannelSummary
objects.
$sel:nextToken:ListChannels'
, listChannelsResponse_nextToken
- The token to retrieve the next set of results, or null
if there are no
more results.
$sel:httpStatus:ListChannelsResponse'
, listChannelsResponse_httpStatus
- The response's http status code.
Response Lenses
listChannelsResponse_channelSummaries :: Lens' ListChannelsResponse (Maybe [ChannelSummary]) Source #
A list of ChannelSummary
objects.
listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
The token to retrieve the next set of results, or null
if there are no
more results.
listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int Source #
The response's http status code.