:doc:`IoTEvents <../../iotevents>` / Client / list_alarm_models

*****************
list_alarm_models
*****************



.. py:method:: IoTEvents.Client.list_alarm_models(**kwargs)

  

  Lists the alarm models that you created. The operation returns only the metadata associated with each alarm model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ListAlarmModels>`_  


  **Request Syntax**
  ::

    response = client.list_alarm_models(
        nextToken='string',
        maxResults=123
    )
    
  :type nextToken: string
  :param nextToken: 

    The token that you can use to return the next set of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to be returned per request.

    

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

    
    ::

      {
          'alarmModelSummaries': [
              {
                  'creationTime': datetime(2015, 1, 1),
                  'alarmModelDescription': 'string',
                  'alarmModelName': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **alarmModelSummaries** *(list) --* 

        A list that summarizes each alarm model.

        
        

        - *(dict) --* 

          Contains a summary of an alarm model.

          
          

          - **creationTime** *(datetime) --* 

            The time the alarm model was created, in the Unix epoch format.

            
          

          - **alarmModelDescription** *(string) --* 

            The description of the alarm model.

            
          

          - **alarmModelName** *(string) --* 

            The name of the alarm model.

            
      
    
      

      - **nextToken** *(string) --* 

        The token that you can use to return the next set of results, or ``null`` if there are no more results.

        
  
  **Exceptions**
  
  *   :py:class:`IoTEvents.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoTEvents.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoTEvents.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoTEvents.Client.exceptions.ServiceUnavailableException`

  