IoTEvents / Client / list_detector_model_versions

list_detector_model_versions#

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

Request Syntax

response = client.list_detector_model_versions(
    detectorModelName='string',
    nextToken='string',
    maxResults=123
)
Parameters:
  • detectorModelName (string) –

    [REQUIRED]

    The name of the detector model whose versions are returned.

  • nextToken (string) – The token that you can use to return the next set of results.

  • maxResults (integer) – The maximum number of results to be returned per request.

Return type:

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