| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MediaPackage.ListChannels
Description
Returns a collection of Channels.
This operation returns paginated results.
Synopsis
- data ListChannels = ListChannels' {}
- newListChannels :: ListChannels
- listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
- listChannels_nextToken :: Lens' ListChannels (Maybe Text)
- data ListChannelsResponse = ListChannelsResponse' {}
- newListChannelsResponse :: Int -> ListChannelsResponse
- listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [Channel])
- listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text)
- listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int
Creating a Request
data ListChannels Source #
See: newListChannels smart constructor.
Constructors
| 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:maxResults:ListChannels', listChannels_maxResults - Upper bound on number of records to return.
ListChannels, listChannels_nextToken - A token used to resume pagination from the end of a previous request.
Request Lenses
listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #
Upper bound on number of records to return.
listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #
A token used to resume pagination from the end of a previous request.
Destructuring the Response
data ListChannelsResponse Source #
See: newListChannelsResponse smart constructor.
Constructors
| ListChannelsResponse' | |
Instances
newListChannelsResponse Source #
Arguments
| :: Int | |
| -> ListChannelsResponse |
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:channels:ListChannelsResponse', listChannelsResponse_channels - A list of Channel records.
ListChannels, listChannelsResponse_nextToken - A token that can be used to resume pagination from the end of the
collection.
$sel:httpStatus:ListChannelsResponse', listChannelsResponse_httpStatus - The response's http status code.
Response Lenses
listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [Channel]) Source #
A list of Channel records.
listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
A token that can be used to resume pagination from the end of the collection.
listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int Source #
The response's http status code.