list_source_locations
¶
list_source_locations(
*,
config_overrides: Optional[MediaTailorClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[__string] = None,
) -> ListSourceLocationsResponse
Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of source locations that you want MediaTailor to return in response to the current request. If there are more than
MaxResultssource locations, use the value ofNextTokenin the response to get the next page of results.The default value is 100. MediaTailor uses DynamoDB-based pagination, which means that a response might contain fewer than
MaxResultsitems, including 0 items, even when more results are available. To retrieve all results, you must continue making requests using theNextTokenvalue from each response until the response no longer includes aNextTokenvalue. -
next_token(Optional[__string], default:None) –Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
For the first
ListSourceLocationsrequest, omit this value. For subsequent requests, get the value ofNextTokenfrom the previous response and specify that value forNextTokenin the request. Continue making requests until the response no longer includes aNextTokenvalue, which indicates that all results have been retrieved.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.