:doc:`MediaTailor <../../mediatailor>` / Paginator / ListAlerts

**********
ListAlerts
**********



.. py:class:: MediaTailor.Paginator.ListAlerts

  ::

    
    paginator = client.get_paginator('list_alerts')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`MediaTailor.Client.list_alerts`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListAlerts>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          ResourceArn='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type ResourceArn: string
    :param ResourceArn: **[REQUIRED]** 

      The Amazon Resource Name (ARN) of the resource.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      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.

        

      
    
    
    :rtype: dict
    :returns: 
      
      **Response Syntax**

      
      ::

        {
            'Items': [
                {
                    'AlertCode': 'string',
                    'AlertMessage': 'string',
                    'LastModifiedTime': datetime(2015, 1, 1),
                    'RelatedResourceArns': [
                        'string',
                    ],
                    'ResourceArn': 'string',
                    'Category': 'SCHEDULING_ERROR'|'PLAYBACK_WARNING'|'INFO'
                },
            ],
            
        }
        
      **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.

              
              

              - *(string) --* 
          
            

            - **ResourceArn** *(string) --* 

              The Amazon Resource Name (ARN) of the resource.

              
            

            - **Category** *(string) --* 

              The category that MediaTailor assigns to the alert.

              
        
      
    