list_alerts
async
¶
list_alerts(
resource_arn: __string,
*,
config_overrides: Optional[AsyncMediaTailorClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[__string] = None,
) -> ListAlertsResponse
Lists the alerts that are associated with a MediaTailor channel assembly resource.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of alerts that you want MediaTailor to return in response to the current request. If there are more than
MaxResultsalerts, 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
ListAlertsrequest, 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. -
resource_arn(__string) –The Amazon Resource Name (ARN) of the resource.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.