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 |
Retrieves information about the channels that are associated with the current AWS account.
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_items :: 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.
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
- The maximum number of channels that you want MediaTailor to return in
response to the current request. If there are more than MaxResults
channels, use the value of NextToken
in the response to get the next
page of results.
ListChannels
, listChannels_nextToken
- Pagination token returned by the list request when results exceed the
maximum allowed. Use the token to fetch the next page of results.
Request Lenses
listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #
The maximum number of channels that you want MediaTailor to return in
response to the current request. If there are more than MaxResults
channels, use the value of NextToken
in the response to get the next
page of results.
listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #
Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
Destructuring the Response
data ListChannelsResponse Source #
See: newListChannelsResponse
smart constructor.
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:items:ListChannelsResponse'
, listChannelsResponse_items
- A list of channels that are associated with this account.
ListChannels
, listChannelsResponse_nextToken
- Pagination token returned by the list request when results exceed the
maximum allowed. Use the token to fetch the next page of results.
$sel:httpStatus:ListChannelsResponse'
, listChannelsResponse_httpStatus
- The response's http status code.
Response Lenses
listChannelsResponse_items :: Lens' ListChannelsResponse (Maybe [Channel]) Source #
A list of channels that are associated with this account.
listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int Source #
The response's http status code.