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 |
Gets summary information about all channels in your account, in the Amazon Web Services region where the API request is processed. This list can be filtered to match a specified name or recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If you try to use both filters, you will get an error (409 ConflictException).
This operation returns paginated results.
Synopsis
- data ListChannels = ListChannels' {}
- newListChannels :: ListChannels
- listChannels_filterByName :: Lens' ListChannels (Maybe Text)
- listChannels_nextToken :: Lens' ListChannels (Maybe Text)
- listChannels_filterByRecordingConfigurationArn :: Lens' ListChannels (Maybe Text)
- listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
- data ListChannelsResponse = ListChannelsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- channels :: [ChannelSummary]
- newListChannelsResponse :: Int -> ListChannelsResponse
- listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text)
- listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int
- listChannelsResponse_channels :: Lens' ListChannelsResponse [ChannelSummary]
Creating a Request
data ListChannels Source #
See: newListChannels
smart constructor.
ListChannels' | |
|
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:filterByName:ListChannels'
, listChannels_filterByName
- Filters the channel list to match the specified name.
$sel:nextToken:ListChannels'
, listChannels_nextToken
- The first channel to retrieve. This is used for pagination; see the
nextToken
response field.
$sel:filterByRecordingConfigurationArn:ListChannels'
, listChannels_filterByRecordingConfigurationArn
- Filters the channel list to match the specified recording-configuration
ARN.
$sel:maxResults:ListChannels'
, listChannels_maxResults
- Maximum number of channels to return. Default: 50.
Request Lenses
listChannels_filterByName :: Lens' ListChannels (Maybe Text) Source #
Filters the channel list to match the specified name.
listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #
The first channel to retrieve. This is used for pagination; see the
nextToken
response field.
listChannels_filterByRecordingConfigurationArn :: Lens' ListChannels (Maybe Text) Source #
Filters the channel list to match the specified recording-configuration ARN.
listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #
Maximum number of channels to return. Default: 50.
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:nextToken:ListChannels'
, listChannelsResponse_nextToken
- If there are more channels than maxResults
, use nextToken
in the
request to get the next set.
$sel:httpStatus:ListChannelsResponse'
, listChannelsResponse_httpStatus
- The response's http status code.
$sel:channels:ListChannelsResponse'
, listChannelsResponse_channels
- List of the matching channels.
Response Lenses
listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
If there are more channels than maxResults
, use nextToken
in the
request to get the next set.
listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int Source #
The response's http status code.
listChannelsResponse_channels :: Lens' ListChannelsResponse [ChannelSummary] Source #
List of the matching channels.