Client library for AWS IoT Data Plane
npm install --save @datafire/amazonaws_data_iot
let amazonaws_data_iot = require('@datafire/amazonaws_data_iot').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
AWS IoT
AWS IoT-Data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. It implements a broker for applications and things to publish messages over HTTP (Publish) and retrieve, update, and delete shadows. A shadow is a persistent representation of your things and their state in the AWS cloud.
Find the endpoint address for actions in the AWS IoT data plane by running this CLI command:
aws iot describe-endpoint --endpoint-type iot:Data-ATS
The service name used by AWS Signature Version 4 to sign requests is: iotdevicegateway.
amazonaws_data_iot.ListNamedShadowsForThing({
"thingName": ""
}, context)
- input
object
- thingName required
string
- nextToken
string
- pageSize
integer
- thingName required
amazonaws_data_iot.DeleteThingShadow({
"thingName": ""
}, context)
- input
object
- thingName required
string
- name
string
- thingName required
- output DeleteThingShadowResponse
amazonaws_data_iot.GetThingShadow({
"thingName": ""
}, context)
- input
object
- thingName required
string
- name
string
- thingName required
- output GetThingShadowResponse
amazonaws_data_iot.UpdateThingShadow({
"thingName": "",
"payload": ""
}, context)
- input
object
- thingName required
string
- name
string
- payload required
string
: The state information, in JSON format.
- thingName required
- output UpdateThingShadowResponse
amazonaws_data_iot.Publish({
"topic": ""
}, context)
- input
object
- topic required
string
- qos
integer
- payload
string
: The state information, in JSON format.
- topic required
Output schema unknown
- DeleteThingShadowRequest
object
: The input for the DeleteThingShadow operation.
- DeleteThingShadowResponse
object
: The output from the DeleteThingShadow operation.- payload required
- GetThingShadowRequest
object
: The input for the GetThingShadow operation.
- GetThingShadowResponse
object
: The output from the GetThingShadow operation.- payload
- JsonDocument
string
- ListNamedShadowsForThingRequest
object
- ListNamedShadowsForThingResponse
object
- nextToken
- results
- items ShadowName
- timestamp
- NamedShadowList
array
- items ShadowName
- NextToken
string
- PageSize
integer
- Payload
string
- PublishRequest
object
: The input for the Publish operation.- payload
- Qos
integer
- ShadowName
string
- ThingName
string
- Timestamp
integer
- Topic
string
- UpdateThingShadowRequest
object
: The input for the UpdateThingShadow operation.- payload required
- UpdateThingShadowResponse
object
: The output from the UpdateThingShadow operation.- payload