Categorygithub.com/project-flogo/aws-contrib/activity/iotshadow
package
0.1.0
Repository: https://github.com/project-flogo/aws-contrib.git
Documentation: pkg.go.dev

# README

AWS Device Shadow

This activity allows you to update/get/delete a device shadow on AWS.

Installation

Flogo CLI

flogo install github.com/project-flogo/aws-contrib/activity/iotshadow

Configuration

To configure AWS credentials see configuring-sdk

Settings:

NameTypeDescription
thingNamestringThe name of the "thing" in AWS IoT REQUIRED
opstringThe AWS IoT shadow operation to perform (Allowed values are get, update, delete) - REQUIRED
regionstringThe AWS region, uses environment setting by default

Input:

NameTypeDescription
desiredobjectThe desired state of the thing
reportedobjectThe reported state of the thing

Output:

NameTypeDescription
resultobjectThe response shadow document

Examples

Update Temp

Configure a task in flow to update the device shadow of 'raspberry-pi' with a reported temp of "50".

{
  "id": "shadow_update",
  "name": "Update AWS Device Shadow",
  "activity": {
    "ref": "github.com/project-flogo/aws-contrib/",
    "settings": {
      "thingName": "raspberry-pi",
       "op": "update"
    },
    "input": {
      "reported": { "temp":"50" }
    }
  }
}