MediaTailor.Client.
list_alerts
(**kwargs)¶Lists the alerts that are associated with a MediaTailor channel assembly resource.
See also: AWS API Documentation
Request Syntax
response = client.list_alerts(
MaxResults=123,
NextToken='string',
ResourceArn='string'
)
MaxResults
alerts, use the value of NextToken
in the response to get the next page of results.[REQUIRED]
The Amazon Resource Name (ARN) of the resource.
dict
Response Syntax
{
'Items': [
{
'AlertCode': 'string',
'AlertMessage': 'string',
'LastModifiedTime': datetime(2015, 1, 1),
'RelatedResourceArns': [
'string',
],
'ResourceArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Items (list) --
A list of alerts that are associated with this resource.
(dict) --
Alert configuration parameters.
AlertCode (string) --
The code for the alert. For example, NOT_PROCESSED
.
AlertMessage (string) --
If an alert is generated for a resource, an explanation of the reason for the alert.
LastModifiedTime (datetime) --
The timestamp when the alert was last modified.
RelatedResourceArns (list) --
The Amazon Resource Names (ARNs) related to this alert.
ResourceArn (string) --
The Amazon Resource Name (ARN) of the resource.
NextToken (string) --
Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.