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 |
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
This operation returns paginated results.
Synopsis
- data ListSourceLocations = ListSourceLocations' {}
- newListSourceLocations :: ListSourceLocations
- listSourceLocations_maxResults :: Lens' ListSourceLocations (Maybe Natural)
- listSourceLocations_nextToken :: Lens' ListSourceLocations (Maybe Text)
- data ListSourceLocationsResponse = ListSourceLocationsResponse' {
- items :: Maybe [SourceLocation]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListSourceLocationsResponse :: Int -> ListSourceLocationsResponse
- listSourceLocationsResponse_items :: Lens' ListSourceLocationsResponse (Maybe [SourceLocation])
- listSourceLocationsResponse_nextToken :: Lens' ListSourceLocationsResponse (Maybe Text)
- listSourceLocationsResponse_httpStatus :: Lens' ListSourceLocationsResponse Int
Creating a Request
data ListSourceLocations Source #
See: newListSourceLocations
smart constructor.
ListSourceLocations' | |
|
Instances
newListSourceLocations :: ListSourceLocations Source #
Create a value of ListSourceLocations
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:ListSourceLocations'
, listSourceLocations_maxResults
- The maximum number of source locations that you want MediaTailor to
return in response to the current request. If there are more than
MaxResults
source locations, use the value of NextToken
in the
response to get the next page of results.
ListSourceLocations
, listSourceLocations_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
listSourceLocations_maxResults :: Lens' ListSourceLocations (Maybe Natural) Source #
The maximum number of source locations that you want MediaTailor to
return in response to the current request. If there are more than
MaxResults
source locations, use the value of NextToken
in the
response to get the next page of results.
listSourceLocations_nextToken :: Lens' ListSourceLocations (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 ListSourceLocationsResponse Source #
See: newListSourceLocationsResponse
smart constructor.
ListSourceLocationsResponse' | |
|
Instances
newListSourceLocationsResponse Source #
Create a value of ListSourceLocationsResponse
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:ListSourceLocationsResponse'
, listSourceLocationsResponse_items
- A list of source locations.
ListSourceLocations
, listSourceLocationsResponse_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:ListSourceLocationsResponse'
, listSourceLocationsResponse_httpStatus
- The response's http status code.
Response Lenses
listSourceLocationsResponse_items :: Lens' ListSourceLocationsResponse (Maybe [SourceLocation]) Source #
A list of source locations.
listSourceLocationsResponse_nextToken :: Lens' ListSourceLocationsResponse (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.
listSourceLocationsResponse_httpStatus :: Lens' ListSourceLocationsResponse Int Source #
The response's http status code.