Home:ALL Converter>AWS IoT Event Java Class for Lambda

AWS IoT Event Java Class for Lambda

Ask Time:2016-05-06T05:07:44         Author:Nirupama Rachuri

Json Formatter

  • I am invoking an AWS Lambda function from AWS IoT.
  • I am writing my Lambda function in Java
  • According to this link http://docs.aws.amazon.com/iot/latest/developerguide/what-is-aws-iot.html?shortFooter=true , it says: Rules engine — Provides message processing and integration with other AWS services. You can use a SQL-based language to select data from message payloads, process the data, and send the data to other services, such as Amazon S3, Amazon DynamoDB, and AWS Lambda. You can also use the message broker to republish messages to other subscribers.
  • So this link clearly states that my lambda function need not subscribe to it and that it can get the message payload data.
  • How the handler function works is you pass the input and output type, input type in my case is the information I want to send from my IoT topic which would be something like for example "IoTEvent" (similar to S3Event, SNSEvent, etc).
  • On searching all the event classes available from https://github.com/aws/aws-lambda-java-libs/tree/master/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events , I cannot find the event class for IoT.
  • I would like to have information about the class which supports all the methods to get the payload.

Author:Nirupama Rachuri,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37060300/aws-iot-event-java-class-for-lambda
yy