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

****************************
list_detector_model_versions
****************************



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

  

  Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.

  

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


  **Request Syntax**
  ::

    response = client.list_detector_model_versions(
        detectorModelName='string',
        nextToken='string',
        maxResults=123
    )
    
  :type detectorModelName: string
  :param detectorModelName: **[REQUIRED]** 

    The name of the detector model whose versions are returned.

    

  
  :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**

    
    ::

      {
          'detectorModelVersionSummaries': [
              {
                  'detectorModelName': 'string',
                  'detectorModelVersion': 'string',
                  'detectorModelArn': 'string',
                  'roleArn': 'string',
                  'creationTime': datetime(2015, 1, 1),
                  'lastUpdateTime': datetime(2015, 1, 1),
                  'status': 'ACTIVE'|'ACTIVATING'|'INACTIVE'|'DEPRECATED'|'DRAFT'|'PAUSED'|'FAILED',
                  'evaluationMethod': 'BATCH'|'SERIAL'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **detectorModelVersionSummaries** *(list) --* 

        Summary information about the detector model versions.

        
        

        - *(dict) --* 

          Information about the detector model version.

          
          

          - **detectorModelName** *(string) --* 

            The name of the detector model.

            
          

          - **detectorModelVersion** *(string) --* 

            The ID of the detector model version.

            
          

          - **detectorModelArn** *(string) --* 

            The ARN of the detector model version.

            
          

          - **roleArn** *(string) --* 

            The ARN of the role that grants the detector model permission to perform its tasks.

            
          

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

            The time the detector model version was created.

            
          

          - **lastUpdateTime** *(datetime) --* 

            The last time the detector model version was updated.

            
          

          - **status** *(string) --* 

            The status of the detector model version.

            
          

          - **evaluationMethod** *(string) --* 

            Information about the order in which events are evaluated and how actions are executed.

            
      
    
      

      - **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.ResourceNotFoundException`

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

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

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

  