MediaTailor / Paginator / ListAlerts


class MediaTailor.Paginator.ListAlerts#
paginator = client.get_paginator('list_alerts')

Creates an iterator that will paginate through responses from MediaTailor.Client.list_alerts().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • ResourceArn (string) –


    The Amazon Resource Name (ARN) of the resource.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:



Response Syntax

    'Items': [
            'AlertCode': 'string',
            'AlertMessage': 'string',
            'LastModifiedTime': datetime(2015, 1, 1),
            'RelatedResourceArns': [
            'ResourceArn': '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.

        • Category (string) –

          The category that MediaTailor assigns to 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.