I am newbie on AWS side working on a AWS IOT project where all devices updates there state and send a json to the AWS IOT.A rule is there to save data to dynamodb.I have created a table in dynamodb. I am sending below data to the AWS,
{
"state": {
"reported": {
"color": "Blue",
"mac":"123:123"
}
}
}
But on Dynamodb it is saving three items ,first for state another for current and one for metadata. I want to save only data which is coming for state.Is there any condition I have to write for this.