list_channels
¶
list_channels(
*,
config_overrides: Optional[MediaTailorClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[__string] = None,
) -> ListChannelsResponse
Retrieves information about the channels that are associated with the current AWS account.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of channels that you want MediaTailor to return in response to the current request. If there are more than
MaxResultschannels, 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
ListChannelsrequest, 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.