diff --git a/awscli/examples/iotevents-data/batch-put-message.rst b/awscli/examples/iotevents-data/batch-put-message.rst deleted file mode 100644 index 258b48c6580d..000000000000 --- a/awscli/examples/iotevents-data/batch-put-message.rst +++ /dev/null @@ -1,27 +0,0 @@ -**To send messages (inputs) to AWS IoT Events** - -The following ``batch-put-message`` example sends a set of messages to the AWS IoT Events system. Each message payload is transformed into the input you specify ( ``inputName`` ) and ingested into any detectors that monitor that input. If multiple messages are sent, the order in which the messages are processed isn't guaranteed. To guarantee ordering, you must send messages one at a time and wait for a successful response. :: - - aws iotevents-data batch-put-message \ - --cli-binary-format raw-in-base64-out \ - --cli-input-json file://highPressureMessage.json - -Contents of ``highPressureMessage.json``:: - - { - "messages": [ - { - "messageId": "00001", - "inputName": "PressureInput", - "payload": "{\"motorid\": \"Fulton-A32\", \"sensorData\": {\"pressure\": 80, \"temperature\": 39} }" - } - ] - } - -Output:: - - { - "BatchPutMessageErrorEntries": [] - } - -For more information, see `BatchPutMessage `__ in the *AWS IoT Events Developer Guide**. \ No newline at end of file diff --git a/awscli/examples/iotevents-data/batch-update-detector.rst b/awscli/examples/iotevents-data/batch-update-detector.rst deleted file mode 100644 index 5151b42f46b0..000000000000 --- a/awscli/examples/iotevents-data/batch-update-detector.rst +++ /dev/null @@ -1,38 +0,0 @@ -**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 `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/create-detector-model.rst b/awscli/examples/iotevents-data/create-detector-model.rst deleted file mode 100644 index a95ceec3bde1..000000000000 --- a/awscli/examples/iotevents-data/create-detector-model.rst +++ /dev/null @@ -1,141 +0,0 @@ -**To create a detector model** - -The following ``create-detector-model`` example creates a detector model. :: - - aws iotevents create-detector-model \ - --cli-input-json file://motorDetectorModel.json - -Contents of ``motorDetectorModel.json``:: - - { - "detectorModelName": "motorDetectorModel", - "detectorModelDefinition": { - "states": [ - { - "stateName": "Normal", - "onEnter": { - "events": [ - { - "eventName": "init", - "condition": "true", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "0" - } - } - ] - } - ] - }, - "onInput": { - "transitionEvents": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached + 3" - } - } - ], - "nextState": "Dangerous" - } - ] - } - }, - { - "stateName": "Dangerous", - "onEnter": { - "events": [ - { - "eventName": "Pressure Threshold Breached", - "condition": "$variable.pressureThresholdBreached > 1", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:underPressureAction" - } - } - ] - } - ] - }, - "onInput": { - "events": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "3" - } - } - ] - }, - { - "eventName": "Pressure Okay", - "condition": "$input.PressureInput.sensorData.pressure <= 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached - 1" - } - } - ] - } - ], - "transitionEvents": [ - { - "eventName": "BackToNormal", - "condition": "$input.PressureInput.sensorData.pressure <= 70 && $variable.pressureThresholdBreached <= 1", - "nextState": "Normal" - } - ] - }, - "onExit": { - "events": [ - { - "eventName": "Normal Pressure Restored", - "condition": "true", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:pressureClearedAction" - } - } - ] - } - ] - } - } - ], - "initialStateName": "Normal" - }, - "key": "motorid", - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole" - } - -Output:: - - { - "detectorModelConfiguration": { - "status": "ACTIVATING", - "lastUpdateTime": 1560796816.077, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560796816.077, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "key": "motorid", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - } - -For more information, see `CreateDetectorModel `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/create-input.rst b/awscli/examples/iotevents-data/create-input.rst deleted file mode 100644 index 5069e1447c25..000000000000 --- a/awscli/examples/iotevents-data/create-input.rst +++ /dev/null @@ -1,34 +0,0 @@ -**To create an input** - -The following ``create-input`` example creates an input. :: - - aws iotevents create-input \ - --cli-input-json file://pressureInput.json - -Contents of ``pressureInput.json``:: - - { - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor", - "inputDefinition": { - "attributes": [ - { "jsonPath": "sensorData.pressure" }, - { "jsonPath": "motorid" } - ] - } - } - -Output:: - - { - "inputConfiguration": { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1560795312.542, - "creationTime": 1560795312.542, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - } - } - -For more information, see `CreateInput `__ in the *AWS IoT Events Developer Guide**. diff --git a/awscli/examples/iotevents-data/delete-detector-model.rst b/awscli/examples/iotevents-data/delete-detector-model.rst deleted file mode 100644 index 5bd5cb8c4198..000000000000 --- a/awscli/examples/iotevents-data/delete-detector-model.rst +++ /dev/null @@ -1,11 +0,0 @@ -**To delete a detector model** - -The following ``delete-detector-model`` example deletes a detector model. Any active instances of the detector model are also deleted. :: - - aws iotevents delete-detector-model \ - --detector-model-name motorDetectorModel* - -This command produces no output. - -For more information, see `DeleteDetectorModel `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/delete-input.rst b/awscli/examples/iotevents-data/delete-input.rst deleted file mode 100644 index 811e4bfaee1a..000000000000 --- a/awscli/examples/iotevents-data/delete-input.rst +++ /dev/null @@ -1,10 +0,0 @@ -**To delete an input** - -The following ``delete-input`` example deletes an input. :: - - aws iotevents delete-input \ - --input-name PressureInput - -This command produces no output. - -For more information, see `DeleteInput `__ in the *AWS IoT Events Developer Guide**. diff --git a/awscli/examples/iotevents-data/describe-detector-model.rst b/awscli/examples/iotevents-data/describe-detector-model.rst deleted file mode 100644 index 890d92c3475a..000000000000 --- a/awscli/examples/iotevents-data/describe-detector-model.rst +++ /dev/null @@ -1,140 +0,0 @@ -**To get information about a detector model** - -The following ``describe-detector-model`` example describes a detector model. If the ``version`` parameter is not specified, the command returns information about the latest version. :: - - aws iotevents describe-detector-model \ - --detector-model-name motorDetectorModel - -Output:: - - { - "detectorModel": { - "detectorModelConfiguration": { - "status": "ACTIVE", - "lastUpdateTime": 1560796816.077, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560796816.077, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "key": "motorid", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - }, - "detectorModelDefinition": { - "states": [ - { - "onInput": { - "transitionEvents": [ - { - "eventName": "Overpressurized", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached + 3" - } - } - ], - "condition": "$input.PressureInput.sensorData.pressure > 70", - "nextState": "Dangerous" - } - ], - "events": [] - }, - "stateName": "Normal", - "onEnter": { - "events": [ - { - "eventName": "init", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "0" - } - } - ], - "condition": "true" - } - ] - }, - "onExit": { - "events": [] - } - }, - { - "onInput": { - "transitionEvents": [ - { - "eventName": "BackToNormal", - "actions": [], - "condition": "$input.PressureInput.sensorData.pressure <= 70 && $variable.pressureThresholdBreached <= 1", - "nextState": "Normal" - } - ], - "events": [ - { - "eventName": "Overpressurized", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "3" - } - } - ], - "condition": "$input.PressureInput.sensorData.pressure > 70" - }, - { - "eventName": "Pressure Okay", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached - 1" - } - } - ], - "condition": "$input.PressureInput.sensorData.pressure <= 70" - } - ] - }, - "stateName": "Dangerous", - "onEnter": { - "events": [ - { - "eventName": "Pressure Threshold Breached", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:underPressureAction" - } - } - ], - "condition": "$variable.pressureThresholdBreached > 1" - } - ] - }, - "onExit": { - "events": [ - { - "eventName": "Normal Pressure Restored", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:pressureClearedAction" - } - } - ], - "condition": "true" - } - ] - } - } - ], - "initialStateName": "Normal" - } - } - } - -For more information, see `DescribeDetectorModel `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/describe-detector.rst b/awscli/examples/iotevents-data/describe-detector.rst deleted file mode 100644 index dff89b0c65e2..000000000000 --- a/awscli/examples/iotevents-data/describe-detector.rst +++ /dev/null @@ -1,31 +0,0 @@ -**To get information about a detector (instance)** - -The following ``describe-detector`` example returns information about the specified detector (instance). :: - - aws iotevents-data describe-detector \ - --detector-model-name motorDetectorModel \ - --key-value "Fulton-A32" - -Output:: - - { - "detector": { - "lastUpdateTime": 1560797852.776, - "creationTime": 1560797852.775, - "state": { - "variables": [ - { - "name": "pressureThresholdBreached", - "value": "3" - } - ], - "stateName": "Dangerous", - "timers": [] - }, - "keyValue": "Fulton-A32", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - } - -For more information, see `DescribeDetector `__ in the *AWS IoT Events Developer Guide**. diff --git a/awscli/examples/iotevents-data/describe-input.rst b/awscli/examples/iotevents-data/describe-input.rst deleted file mode 100644 index ab15dadb77df..000000000000 --- a/awscli/examples/iotevents-data/describe-input.rst +++ /dev/null @@ -1,33 +0,0 @@ -**To get information about an input** - -The following ``describe-input`` example retrieves the details of an input. :: - - aws iotevents describe-input \ - --input-name PressureInput - -Output:: - - { - "input": { - "inputConfiguration": { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1560795312.542, - "creationTime": 1560795312.542, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - }, - "inputDefinition": { - "attributes": [ - { - "jsonPath": "sensorData.pressure" - }, - { - "jsonPath": "motorid" - } - ] - } - } - } - -For more information, see `DescribeInput `__ in the *AWS IoT Events Developer Guide**. diff --git a/awscli/examples/iotevents-data/describe-logging-options.rst b/awscli/examples/iotevents-data/describe-logging-options.rst deleted file mode 100644 index d3be9fa2c0f2..000000000000 --- a/awscli/examples/iotevents-data/describe-logging-options.rst +++ /dev/null @@ -1,17 +0,0 @@ -**To get information about logging settings** - -The following ``describe-logging-options`` example retrieves the current AWS IoT Events logging options. :: - - aws iotevents describe-logging-options - -Output:: - - { - "loggingOptions": { - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "enabled": false, - "level": "ERROR" - } - } - -For more information, see `DescribeLoggingOptions `__ in the *AWS IoT Events Developer Guide**. diff --git a/awscli/examples/iotevents-data/list-detector-model-versions.rst b/awscli/examples/iotevents-data/list-detector-model-versions.rst deleted file mode 100644 index 699a21045ba4..000000000000 --- a/awscli/examples/iotevents-data/list-detector-model-versions.rst +++ /dev/null @@ -1,24 +0,0 @@ -**To get information about versions of a detector model** - -The following ``list-detector-model-versions`` example lists all the versions of a detector model. Only the metadata associated with each detector model version is returned. :: - - aws iotevents list-detector-model-versions \ - --detector-model-name motorDetectorModel - -Output:: - - { - "detectorModelVersionSummaries": [ - { - "status": "ACTIVE", - "lastUpdateTime": 1560796816.077, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560796816.077, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - ] - } - -For more information, see `ListDetectorModelVersions `__ in the *AWS IoT Events Developer Guide**. diff --git a/awscli/examples/iotevents-data/list-detector-models.rst b/awscli/examples/iotevents-data/list-detector-models.rst deleted file mode 100644 index d3f19ae75d54..000000000000 --- a/awscli/examples/iotevents-data/list-detector-models.rst +++ /dev/null @@ -1,20 +0,0 @@ -**To get a list of your detector models** - -The following ``list-detector-models`` example lists the detector models you have created. Only the metadata associated with each detector model is returned. :: - - aws iotevents list-detector-models - -Output:: - - { - "detectorModelSummaries": [ - { - "detectorModelName": "motorDetectorModel", - "creationTime": 1552072424.212 - "detectorModelDescription": "Detect overpressure in a motor." - } - ] - } - -For more information, see `ListDetectorModels `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/list-detectors.rst b/awscli/examples/iotevents-data/list-detectors.rst deleted file mode 100644 index 3ca49210934a..000000000000 --- a/awscli/examples/iotevents-data/list-detectors.rst +++ /dev/null @@ -1,26 +0,0 @@ -**To get a list of detectors for a detector model** - -The following ``list-detectors`` example lists detectors (the instances of a detector model). :: - - aws iotevents-data list-detectors \ - --detector-model-name motorDetectorModel - -Output:: - - { - "detectorSummaries": [ - { - "lastUpdateTime": 1558129925.2, - "creationTime": 1552073155.527, - "state": { - "stateName": "Normal" - }, - "keyValue": "Fulton-A32", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - ] - } - -For more information, see `ListDetectors `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/list-inputs.rst b/awscli/examples/iotevents-data/list-inputs.rst deleted file mode 100644 index a82f797c04cf..000000000000 --- a/awscli/examples/iotevents-data/list-inputs.rst +++ /dev/null @@ -1,19 +0,0 @@ -**To list inputs** - -The following ``list-inputs`` example lists the inputs that you've created. :: - - aws iotevents list-inputs - -Output:: - - { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1551742986.768, - "creationTime": 1551742986.768, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - } - -For more information, see `ListInputs `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/list-tags-for-resource.rst b/awscli/examples/iotevents-data/list-tags-for-resource.rst deleted file mode 100644 index 1d5c2883c44a..000000000000 --- a/awscli/examples/iotevents-data/list-tags-for-resource.rst +++ /dev/null @@ -1,20 +0,0 @@ -**To list tags assigned to a resource** - -The following ``list-tags-for-resource`` example lists the tags (metadata) you have assigned to the resource. :: - - aws iotevents list-tags-for-resource \ - --resource-arn "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput" - -Output:: - - { - "tags": [ - { - "value": "motor", - "key": "deviceType" - } - ] - } - -For more information, see `ListTagsForResource `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/put-logging-options.rst b/awscli/examples/iotevents-data/put-logging-options.rst deleted file mode 100644 index 6b46ad7d1362..000000000000 --- a/awscli/examples/iotevents-data/put-logging-options.rst +++ /dev/null @@ -1,27 +0,0 @@ -**To set logging options** - -The following ``list-tags-for-resource`` example sets or updates the AWS IoT Events logging options. If you update the value of any ``loggingOptions`` field, it takes up to one minute for the change to take effect. Also, if you change the policy attached to the role you specified in the ``roleArn`` field (for example, to correct an invalid policy) it takes up to five minutes for that change to take effect. :: - - aws iotevents put-logging-options \ - --cli-input-json file://logging-options.json - -Contents of ``logging-options.json``:: - - { - "loggingOptions": { - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "level": "DEBUG", - "enabled": true, - "detectorDebugOptions": [ - { - "detectorModelName": "motorDetectorModel", - "keyValue": "Fulton-A32" - } - ] - } - } - -This command produces no output. - -For more information, see `PutLoggingOptions `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/tag-resource.rst b/awscli/examples/iotevents-data/tag-resource.rst deleted file mode 100644 index 497956e6ae50..000000000000 --- a/awscli/examples/iotevents-data/tag-resource.rst +++ /dev/null @@ -1,24 +0,0 @@ -**To add tags to a resource** - -The following ``tag-resource`` example adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource. :: - - aws iotevents tag-resource \ - --cli-input-json file://pressureInput.tag.json - - -Contents of ``pressureInput.tag.json``:: - - { - "resourceArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "tags": [ - { - "key": "deviceType", - "value": "motor" - } - ] - } - -This command produces no output. - -For more information, see `TagResource `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/untag-resource.rst b/awscli/examples/iotevents-data/untag-resource.rst deleted file mode 100644 index d5f4d02e585a..000000000000 --- a/awscli/examples/iotevents-data/untag-resource.rst +++ /dev/null @@ -1,21 +0,0 @@ -**To remove tags from a resource** - -The following ``untag-resource`` example removes the specified tags from the resource. :: - - aws iotevents untag-resource \ - --cli-input-json file://pressureInput.untag.json - - -Contents of ``pressureInput.untag.json``:: - - { - "resourceArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "tagKeys": [ - "deviceType" - ] - } - -This command produces no output. - -For more information, see `UntagResource `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/update-detector-model.rst b/awscli/examples/iotevents-data/update-detector-model.rst deleted file mode 100644 index 35034fea0638..000000000000 --- a/awscli/examples/iotevents-data/update-detector-model.rst +++ /dev/null @@ -1,140 +0,0 @@ -**To update a detector model** - -The following ``update-detector-model`` example updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive. :: - - aws iotevents update-detector-model \ - --cli-input-json file://motorDetectorModel.update.json - -Contents of motorDetectorModel.update.json:: - - { - "detectorModelName": "motorDetectorModel", - "detectorModelDefinition": { - "states": [ - { - "stateName": "Normal", - "onEnter": { - "events": [ - { - "eventName": "init", - "condition": "true", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "0" - } - } - ] - } - ] - }, - "onInput": { - "transitionEvents": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached + 3" - } - } - ], - "nextState": "Dangerous" - } - ] - } - }, - { - "stateName": "Dangerous", - "onEnter": { - "events": [ - { - "eventName": "Pressure Threshold Breached", - "condition": "$variable.pressureThresholdBreached > 1", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:underPressureAction" - } - } - ] - } - ] - }, - "onInput": { - "events": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "3" - } - } - ] - }, - { - "eventName": "Pressure Okay", - "condition": "$input.PressureInput.sensorData.pressure <= 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached - 1" - } - } - ] - } - ], - "transitionEvents": [ - { - "eventName": "BackToNormal", - "condition": "$input.PressureInput.sensorData.pressure <= 70 && $variable.pressureThresholdBreached <= 1", - "nextState": "Normal" - } - ] - }, - "onExit": { - "events": [ - { - "eventName": "Normal Pressure Restored", - "condition": "true", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:pressureClearedAction" - } - } - ] - } - ] - } - } - ], - "initialStateName": "Normal" - }, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole" - } - -Output:: - - { - "detectorModelConfiguration": { - "status": "ACTIVATING", - "lastUpdateTime": 1560799387.719, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560799387.719, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "key": "motorid", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "2" - } - } - -For more information, see `UpdateDetectorModel `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents-data/update-input.rst b/awscli/examples/iotevents-data/update-input.rst deleted file mode 100644 index 2783b31a08f7..000000000000 --- a/awscli/examples/iotevents-data/update-input.rst +++ /dev/null @@ -1,35 +0,0 @@ -**To update an input** - -The following ``update-input`` example updates an input. :: - - aws iotevents update-input \ - --cli-input-json file://pressureInput.json - -Contents of ``pressureInput.json``:: - - { - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor", - "inputDefinition": { - "attributes": [ - { "jsonPath": "sensorData.pressure" }, - { "jsonPath": "motorid" } - ] - } - } - -Output:: - - { - "inputConfiguration": { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1560795976.458, - "creationTime": 1560795312.542, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - } - } - -For more information, see `UpdateInput `__ in the *AWS IoT Events Developer Guide**. - diff --git a/awscli/examples/iotevents/batch-put-message.rst b/awscli/examples/iotevents/batch-put-message.rst deleted file mode 100644 index eb9263705839..000000000000 --- a/awscli/examples/iotevents/batch-put-message.rst +++ /dev/null @@ -1,26 +0,0 @@ -**To send messages (inputs) to AWS IoT Events** - -The following ``batch-put-message`` example sends a set of messages to the AWS IoT Events system. Each message payload is transformed into the input you specify ( ``inputName`` ) and ingested into any detectors that monitor that input. If multiple messages are sent, the order in which the messages are processed isn't guaranteed. To guarantee ordering, you must send messages one at a time and wait for a successful response. :: - - aws iotevents-data batch-put-message \ - --cli-input-json file://highPressureMessage.json - -Contents of ``highPressureMessage.json``:: - - { - "messages": [ - { - "messageId": "00001", - "inputName": "PressureInput", - "payload": "{\"motorid\": \"Fulton-A32\", \"sensorData\": {\"pressure\": 80, \"temperature\": 39} }" - } - ] - } - -Output:: - - { - "BatchPutMessageErrorEntries": [] - } - -For more information, see `BatchPutMessage `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/batch-update-detector.rst b/awscli/examples/iotevents/batch-update-detector.rst deleted file mode 100644 index a931d3a00d85..000000000000 --- a/awscli/examples/iotevents/batch-update-detector.rst +++ /dev/null @@ -1,38 +0,0 @@ -**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 `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/create-detector-model.rst b/awscli/examples/iotevents/create-detector-model.rst deleted file mode 100644 index bb8747ccc7b2..000000000000 --- a/awscli/examples/iotevents/create-detector-model.rst +++ /dev/null @@ -1,140 +0,0 @@ -**To create a detector model** - -The following ``create-detector-model`` example creates a detector model with its configuration specified by a parameter file. :: - - aws iotevents create-detector-model \ - --cli-input-json file://motorDetectorModel.json - -Contents of ``motorDetectorModel.json``:: - - { - "detectorModelName": "motorDetectorModel", - "detectorModelDefinition": { - "states": [ - { - "stateName": "Normal", - "onEnter": { - "events": [ - { - "eventName": "init", - "condition": "true", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "0" - } - } - ] - } - ] - }, - "onInput": { - "transitionEvents": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached + 3" - } - } - ], - "nextState": "Dangerous" - } - ] - } - }, - { - "stateName": "Dangerous", - "onEnter": { - "events": [ - { - "eventName": "Pressure Threshold Breached", - "condition": "$variable.pressureThresholdBreached > 1", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:underPressureAction" - } - } - ] - } - ] - }, - "onInput": { - "events": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "3" - } - } - ] - }, - { - "eventName": "Pressure Okay", - "condition": "$input.PressureInput.sensorData.pressure <= 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached - 1" - } - } - ] - } - ], - "transitionEvents": [ - { - "eventName": "BackToNormal", - "condition": "$input.PressureInput.sensorData.pressure <= 70 && $variable.pressureThresholdBreached <= 1", - "nextState": "Normal" - } - ] - }, - "onExit": { - "events": [ - { - "eventName": "Normal Pressure Restored", - "condition": "true", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:pressureClearedAction" - } - } - ] - } - ] - } - } - ], - "initialStateName": "Normal" - }, - "key": "motorid", - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole" - } - -Output:: - - { - "detectorModelConfiguration": { - "status": "ACTIVATING", - "lastUpdateTime": 1560796816.077, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560796816.077, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "key": "motorid", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - } - -For more information, see `CreateDetectorModel `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/create-input.rst b/awscli/examples/iotevents/create-input.rst deleted file mode 100644 index 64c3bba6ffe4..000000000000 --- a/awscli/examples/iotevents/create-input.rst +++ /dev/null @@ -1,34 +0,0 @@ -**To create an input** - -The following ``create-input`` example creates an input. :: - - aws iotevents create-input \ - --cli-input-json file://pressureInput.json - -Contents of ``pressureInput.json``:: - - { - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor", - "inputDefinition": { - "attributes": [ - { "jsonPath": "sensorData.pressure" }, - { "jsonPath": "motorid" } - ] - } - } - -Output:: - - { - "inputConfiguration": { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1560795312.542, - "creationTime": 1560795312.542, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - } - } - -For more information, see `CreateInput `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/delete-detector-model.rst b/awscli/examples/iotevents/delete-detector-model.rst deleted file mode 100644 index 724f0e637599..000000000000 --- a/awscli/examples/iotevents/delete-detector-model.rst +++ /dev/null @@ -1,10 +0,0 @@ -**To delete a detector model** - -The following ``delete-detector-model`` example deletes the specified detector model. Any active instances of the detector model are also deleted. :: - - aws iotevents delete-detector-model \ - --detector-model-name motorDetectorModel - -This command produces no output. - -For more information, see `DeleteDetectorModel `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/delete-input.rst b/awscli/examples/iotevents/delete-input.rst deleted file mode 100644 index 5d99ab0e2fe3..000000000000 --- a/awscli/examples/iotevents/delete-input.rst +++ /dev/null @@ -1,10 +0,0 @@ -**To delete an input** - -The following ``delete-input`` example deletes the specified input. :: - - aws iotevents delete-input \ - --input-name PressureInput - -This command produces no output. - -For more information, see `DeleteInput `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/describe-detector-model.rst b/awscli/examples/iotevents/describe-detector-model.rst deleted file mode 100644 index edc1aa59538f..000000000000 --- a/awscli/examples/iotevents/describe-detector-model.rst +++ /dev/null @@ -1,139 +0,0 @@ -**To get information about a detector model** - -The following ``describe-detector-model`` example displays details for the specified detector model. Because the ``version`` parameter is not specified, information about the latest version is returned. :: - - aws iotevents describe-detector-model \ - --detector-model-name motorDetectorModel - -Output:: - - { - "detectorModel": { - "detectorModelConfiguration": { - "status": "ACTIVE", - "lastUpdateTime": 1560796816.077, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560796816.077, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "key": "motorid", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - }, - "detectorModelDefinition": { - "states": [ - { - "onInput": { - "transitionEvents": [ - { - "eventName": "Overpressurized", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached + 3" - } - } - ], - "condition": "$input.PressureInput.sensorData.pressure > 70", - "nextState": "Dangerous" - } - ], - "events": [] - }, - "stateName": "Normal", - "onEnter": { - "events": [ - { - "eventName": "init", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "0" - } - } - ], - "condition": "true" - } - ] - }, - "onExit": { - "events": [] - } - }, - { - "onInput": { - "transitionEvents": [ - { - "eventName": "BackToNormal", - "actions": [], - "condition": "$input.PressureInput.sensorData.pressure <= 70 && $variable.pressureThresholdBreached <= 1", - "nextState": "Normal" - } - ], - "events": [ - { - "eventName": "Overpressurized", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "3" - } - } - ], - "condition": "$input.PressureInput.sensorData.pressure > 70" - }, - { - "eventName": "Pressure Okay", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached - 1" - } - } - ], - "condition": "$input.PressureInput.sensorData.pressure <= 70" - } - ] - }, - "stateName": "Dangerous", - "onEnter": { - "events": [ - { - "eventName": "Pressure Threshold Breached", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:underPressureAction" - } - } - ], - "condition": "$variable.pressureThresholdBreached > 1" - } - ] - }, - "onExit": { - "events": [ - { - "eventName": "Normal Pressure Restored", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:pressureClearedAction" - } - } - ], - "condition": "true" - } - ] - } - } - ], - "initialStateName": "Normal" - } - } - } - -For more information, see `DescribeDetectorModel `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/describe-detector.rst b/awscli/examples/iotevents/describe-detector.rst deleted file mode 100644 index 1c540ae13e0c..000000000000 --- a/awscli/examples/iotevents/describe-detector.rst +++ /dev/null @@ -1,31 +0,0 @@ -**To get information about a detector (instance).** - -The following ``describe-detector`` example displays details for the specified detector (instance). :: - - aws iotevents-data describe-detector \ - --detector-model-name motorDetectorModel \ - --key-value "Fulton-A32" - -Output:: - - { - "detector": { - "lastUpdateTime": 1560797852.776, - "creationTime": 1560797852.775, - "state": { - "variables": [ - { - "name": "pressureThresholdBreached", - "value": "3" - } - ], - "stateName": "Dangerous", - "timers": [] - }, - "keyValue": "Fulton-A32", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - } - -For more information, see `DescribeDetector `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/describe-input.rst b/awscli/examples/iotevents/describe-input.rst deleted file mode 100644 index 56e07da9c33f..000000000000 --- a/awscli/examples/iotevents/describe-input.rst +++ /dev/null @@ -1,34 +0,0 @@ -**To get information about an input** - -The following ``describe-input`` example displays details for the specified input. :: - - aws iotevents describe-input \ - --input-name PressureInput - -Output:: - - { - "input": { - "inputConfiguration": { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1560795312.542, - "creationTime": 1560795312.542, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - }, - "inputDefinition": { - "attributes": [ - { - "jsonPath": "sensorData.pressure" - }, - { - "jsonPath": "motorid" - } - ] - } - } - } - - -For more information, see `DescribeInput `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/describe-logging-options.rst b/awscli/examples/iotevents/describe-logging-options.rst deleted file mode 100644 index aba34c934811..000000000000 --- a/awscli/examples/iotevents/describe-logging-options.rst +++ /dev/null @@ -1,17 +0,0 @@ -**To get information about logging settings** - -The following ``describe-logging-options`` example retrieves the current settings of the AWS IoT Events logging options. :: - - aws iotevents describe-logging-options - -Output:: - - { - "loggingOptions": { - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "enabled": false, - "level": "ERROR" - } - } - -For more information, see `DescribeLoggingOptions `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/list-detector-model-versions.rst b/awscli/examples/iotevents/list-detector-model-versions.rst deleted file mode 100644 index 575c0c98f540..000000000000 --- a/awscli/examples/iotevents/list-detector-model-versions.rst +++ /dev/null @@ -1,24 +0,0 @@ -**To get information about versions of a detector model** - -The following ``list-detector-model-versions`` example Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned. :: - - aws iotevents list-detector-model-versions \ - --detector-model-name motorDetectorModel - -Output:: - - { - "detectorModelVersionSummaries": [ - { - "status": "ACTIVE", - "lastUpdateTime": 1560796816.077, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560796816.077, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - ] - } - -For more information, see `ListDetectorModelVersions `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/list-detector-models.rst b/awscli/examples/iotevents/list-detector-models.rst deleted file mode 100644 index 8859d550f691..000000000000 --- a/awscli/examples/iotevents/list-detector-models.rst +++ /dev/null @@ -1,19 +0,0 @@ -**To get a list of your detector models** - -The following ``list-detector-models`` example Lists the detector models you have created. Only the metadata associated with each detector model is returned. :: - - aws iotevents list-detector-models - -Output:: - - { - "detectorModelSummaries": [ - { - "detectorModelName": "motorDetectorModel", - "creationTime": 1552072424.212 - "detectorModelDescription": "Detect overpressure in a motor." - } - ] - } - -For more information, see `ListDetectorModels `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/list-detectors.rst b/awscli/examples/iotevents/list-detectors.rst deleted file mode 100644 index 3b04abf85809..000000000000 --- a/awscli/examples/iotevents/list-detectors.rst +++ /dev/null @@ -1,25 +0,0 @@ -**To get a list of detectors for a detector model** - -The following ``list-detectors`` example lists the detectors (the instances of a detector model) in your account. :: - - aws iotevents-data list-detectors \ - --detector-model-name motorDetectorModel - -Output:: - - { - "detectorSummaries": [ - { - "lastUpdateTime": 1558129925.2, - "creationTime": 1552073155.527, - "state": { - "stateName": "Normal" - }, - "keyValue": "Fulton-A32", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "1" - } - ] - } - -For more information, see `ListDetectors `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/list-inputs.rst b/awscli/examples/iotevents/list-inputs.rst deleted file mode 100644 index aa1e63918c65..000000000000 --- a/awscli/examples/iotevents/list-inputs.rst +++ /dev/null @@ -1,21 +0,0 @@ -**To list inputs** - -The following ``list-inputs`` example lists the inputs you have created in your account. :: - - aws iotevents list-inputs - -This command produces no output. -Output:: - - { - { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1551742986.768, - "creationTime": 1551742986.768, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - } - } - -For more information, see `ListInputs `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/list-tags-for-resource.rst b/awscli/examples/iotevents/list-tags-for-resource.rst deleted file mode 100644 index 7cd45a7063e8..000000000000 --- a/awscli/examples/iotevents/list-tags-for-resource.rst +++ /dev/null @@ -1,19 +0,0 @@ -**To list tags assigned to a resource.** - -The following ``list-tags-for-resource`` example lists the tag key names and values you have assigned to the resource. :: - - aws iotevents list-tags-for-resource \ - --resource-arn "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput" - -Output:: - - { - "tags": [ - { - "value": "motor", - "key": "deviceType" - } - ] - } - -For more information, see `ListTagsForResource `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/put-logging-options.rst b/awscli/examples/iotevents/put-logging-options.rst deleted file mode 100644 index 2813aae8d39e..000000000000 --- a/awscli/examples/iotevents/put-logging-options.rst +++ /dev/null @@ -1,26 +0,0 @@ -**To set logging options** - -The following ``put-logging-options`` example sets or updates the AWS IoT Events logging options. If you update the value of any ``loggingOptions` field, it can take up to one minute for the change to take effect. Also, if you change the policy attached to the role you specified in the ``roleArn`` field (for example, to correct an invalid policy) it can take up to five minutes for that change to take effect. :: - - aws iotevents put-logging-options \ - --cli-input-json file://logging-options.json - -Contents of ``logging-options.json``:: - - { - "loggingOptions": { - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "level": "DEBUG", - "enabled": true, - "detectorDebugOptions": [ - { - "detectorModelName": "motorDetectorModel", - "keyValue": "Fulton-A32" - } - ] - } - } - -This command produces no output. - -For more information, see `PutLoggingOptions `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/tag-resource.rst b/awscli/examples/iotevents/tag-resource.rst deleted file mode 100644 index 6ad5f48b58f9..000000000000 --- a/awscli/examples/iotevents/tag-resource.rst +++ /dev/null @@ -1,22 +0,0 @@ -**To add tags to a resource** - -The following ``tag-resource`` example adds or modifies (if key ``deviceType`` already exists) the tag attached the specified resource. :: - - aws iotevents tag-resource \ - --cli-input-json file://pressureInput.tag.json - -Contents of ``pressureInput.tag.json``:: - - { - "resourceArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "tags": [ - { - "key": "deviceType", - "value": "motor" - } - ] - } - -This command produces no output. - -For more information, see `TagResource `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/untag-resource.rst b/awscli/examples/iotevents/untag-resource.rst deleted file mode 100644 index db27c564841c..000000000000 --- a/awscli/examples/iotevents/untag-resource.rst +++ /dev/null @@ -1,11 +0,0 @@ -**To remove tags from a resource** - -The following ``untag-resource`` example removes the tag with the specified key name from the specified resource. :: - - aws iotevents untag-resource \ - --resource-arn arn:aws:iotevents:us-west-2:123456789012:input/PressureInput \ - --tag-keys deviceType - -This command produces no output. - -For more information, see `UntagResource `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/update-detector-model.rst b/awscli/examples/iotevents/update-detector-model.rst deleted file mode 100644 index f29296280d8a..000000000000 --- a/awscli/examples/iotevents/update-detector-model.rst +++ /dev/null @@ -1,139 +0,0 @@ -**To update a detector model** - -The following ``update-detector-model`` example updates the specified detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive. :: - - aws iotevents update-detector-model \ - --cli-input-json file://motorDetectorModel.update.json - -Contents of ``motorDetectorModel.update.json``:: - - { - "detectorModelName": "motorDetectorModel", - "detectorModelDefinition": { - "states": [ - { - "stateName": "Normal", - "onEnter": { - "events": [ - { - "eventName": "init", - "condition": "true", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "0" - } - } - ] - } - ] - }, - "onInput": { - "transitionEvents": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached + 3" - } - } - ], - "nextState": "Dangerous" - } - ] - } - }, - { - "stateName": "Dangerous", - "onEnter": { - "events": [ - { - "eventName": "Pressure Threshold Breached", - "condition": "$variable.pressureThresholdBreached > 1", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:underPressureAction" - } - } - ] - } - ] - }, - "onInput": { - "events": [ - { - "eventName": "Overpressurized", - "condition": "$input.PressureInput.sensorData.pressure > 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "3" - } - } - ] - }, - { - "eventName": "Pressure Okay", - "condition": "$input.PressureInput.sensorData.pressure <= 70", - "actions": [ - { - "setVariable": { - "variableName": "pressureThresholdBreached", - "value": "$variable.pressureThresholdBreached - 1" - } - } - ] - } - ], - "transitionEvents": [ - { - "eventName": "BackToNormal", - "condition": "$input.PressureInput.sensorData.pressure <= 70 && $variable.pressureThresholdBreached <= 1", - "nextState": "Normal" - } - ] - }, - "onExit": { - "events": [ - { - "eventName": "Normal Pressure Restored", - "condition": "true", - "actions": [ - { - "sns": { - "targetArn": "arn:aws:sns:us-east-1:123456789012:pressureClearedAction" - } - } - ] - } - ] - } - } - ], - "initialStateName": "Normal" - }, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole" - } - -Output:: - - { - "detectorModelConfiguration": { - "status": "ACTIVATING", - "lastUpdateTime": 1560799387.719, - "roleArn": "arn:aws:iam::123456789012:role/IoTEventsRole", - "creationTime": 1560799387.719, - "detectorModelArn": "arn:aws:iotevents:us-west-2:123456789012:detectorModel/motorDetectorModel", - "key": "motorid", - "detectorModelName": "motorDetectorModel", - "detectorModelVersion": "2" - } - } - -For more information, see `UpdateDetectorModel `__ in the *AWS IoT Events API Reference*. diff --git a/awscli/examples/iotevents/update-input.rst b/awscli/examples/iotevents/update-input.rst deleted file mode 100644 index 0045d5619f72..000000000000 --- a/awscli/examples/iotevents/update-input.rst +++ /dev/null @@ -1,34 +0,0 @@ -**To update an input** - -The following ``update-input`` example updates the specified input with a new description and definition. :: - - aws iotevents update-input \ - --cli-input-json file://pressureInput.json - -Contents of ``pressureInput.json``:: - - { - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor", - "inputDefinition": { - "attributes": [ - { "jsonPath": "sensorData.pressure" }, - { "jsonPath": "motorid" } - ] - } - } - -Output:: - - { - "inputConfiguration": { - "status": "ACTIVE", - "inputArn": "arn:aws:iotevents:us-west-2:123456789012:input/PressureInput", - "lastUpdateTime": 1560795976.458, - "creationTime": 1560795312.542, - "inputName": "PressureInput", - "inputDescription": "Pressure readings from a motor" - } - } - -For more information, see `UpdateInput `__ in the *AWS IoT Events API Reference*.