This activity allows you to update/get/delete a device shadow on AWS.
flogo install github.com/project-flogo/aws-contrib/activity/iotshadow
To configure AWS credentials see configuring-sdk
Name | Type | Description |
---|---|---|
thingName | string | The name of the "thing" in AWS IoT REQUIRED |
op | string | The AWS IoT shadow operation to perform (Allowed values are get, update, delete) - REQUIRED |
region | string | The AWS region, uses environment setting by default |
Name | Type | Description |
---|---|---|
desired | object | The desired state of the thing |
reported | object | The reported state of the thing |
Name | Type | Description |
---|---|---|
result | object | The response shadow document |
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" }
}
}
}