AWS MediaTailor

2021/07/08 - AWS MediaTailor - 1 new api methods

Changes  Add ListAlerts for Channel, Program, Source Location, and VOD Source to return alerts for resources.

ListAlerts (new) Link ΒΆ

Returns a list of alerts for the given resource.

See also: AWS API Documentation

Request Syntax

client.list_alerts(
    MaxResults=123,
    NextToken='string',
    ResourceArn='string'
)
type MaxResults

integer

param MaxResults

Upper bound on number of records to return. The maximum number of results is 100.

type NextToken

string

param NextToken

Pagination token from the GET list request. Use the token to fetch the next page of results.

type ResourceArn

string

param ResourceArn

[REQUIRED]

The Amazon Resource Name (ARN) of the resource.

rtype

dict

returns

Response Syntax

{
    'Items': [
        {
            'AlertCode': 'string',
            'AlertMessage': 'string',
            'LastModifiedTime': datetime(2015, 1, 1),
            'RelatedResourceArns': [
                'string',
            ],
            'ResourceArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    Success.

    • Items (list) --

      An array 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.

          • (string) --

        • ResourceArn (string) --

          The Amazon Resource Name (ARN) of the resource.

    • NextToken (string) --

      Pagination token from the list request. Use the token to fetch the next page of results.