Class: AWS.IotData
- Identifier:
- iotdata
- API Version:
- 2017-09-20
- Defined in:
- iotdata.js
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Sending a Request Using IotData
var iotdata = new GG.IotData();
iotdata.getThingShadow(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Constructor Summary collapse
-
new GG.IotData() ⇒ Object
constructor
Constructs a service object.
Method Summary collapse
-
getThingShadow(params = {}, callback)
Gets the thing shadow for the specified thing.
-
publish(params = {}, callback)
Publishes a message within Greengrass.
-
updateThingShadow(params = {}, callback)
Updates the thing shadow for the specified thing.
Constructor Details
new GG.IotData() ⇒ Object
Constructs a service object. This object has one method for each API operation.