Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
awscli / awscli / examples / iotevents-data / batch-update-detector.rst
Size: Mime:
**To update a detector (instance)**

The following ``batch-update-detector`` example updates the state, variable values, and timer settings of one or more detectors (instances) of a specified detector model. ::

    aws iotevents-data batch-update-detector \
        --cli-input-json file://budFulton-A32.json

Contents of ``budFulton-A32.json``::

    {
        "detectors": [
            {
                "messageId": "00001", 
                "detectorModelName": "motorDetectorModel", 
                "keyValue": "Fulton-A32", 
                "state": {
                    "stateName": "Normal", 
                    "variables": [
                        {
                            "name": "pressureThresholdBreached", 
                            "value": "0"
                        }
                    ],
                    "timers": [
                    ]
                }
            }
        ]
    }

Output::

    {
        "batchUpdateDetectorErrorEntries": []
    }

For more information, see `BatchUpdateDetector <https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-commands.html#api-iotevents-data-BatchUpdateDetector>`__ in the *AWS IoT Events Developer Guide**.