Skip to content

Latest commit

 

History

History

amazonaws_data_iot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@datafire/amazonaws_data_iot

Client library for AWS IoT Data Plane

Installation and Usage

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);
});

Description

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.

Actions

ListNamedShadowsForThing

amazonaws_data_iot.ListNamedShadowsForThing({
  "thingName": ""
}, context)

Input

  • input object
    • thingName required string
    • nextToken string
    • pageSize integer

Output

DeleteThingShadow

amazonaws_data_iot.DeleteThingShadow({
  "thingName": ""
}, context)

Input

  • input object
    • thingName required string
    • name string

Output

GetThingShadow

amazonaws_data_iot.GetThingShadow({
  "thingName": ""
}, context)

Input

  • input object
    • thingName required string
    • name string

Output

UpdateThingShadow

amazonaws_data_iot.UpdateThingShadow({
  "thingName": "",
  "payload": ""
}, context)

Input

  • input object
    • thingName required string
    • name string
    • payload required string: The state information, in JSON format.

Output

Publish

amazonaws_data_iot.Publish({
  "topic": ""
}, context)

Input

  • input object
    • topic required string
    • qos integer
    • payload string: The state information, in JSON format.

Output

Output schema unknown

Definitions

ConflictException

DeleteThingShadowRequest

  • DeleteThingShadowRequest object: The input for the DeleteThingShadow operation.

DeleteThingShadowResponse

  • DeleteThingShadowResponse object: The output from the DeleteThingShadow operation.
    • payload required

GetThingShadowRequest

  • GetThingShadowRequest object: The input for the GetThingShadow operation.

GetThingShadowResponse

  • GetThingShadowResponse object: The output from the GetThingShadow operation.
    • payload

InternalFailureException

InvalidRequestException

JsonDocument

  • JsonDocument string

ListNamedShadowsForThingRequest

  • ListNamedShadowsForThingRequest object

ListNamedShadowsForThingResponse

  • ListNamedShadowsForThingResponse object

MethodNotAllowedException

NamedShadowList

NextToken

  • NextToken string

PageSize

  • PageSize integer

Payload

  • Payload string

PublishRequest

  • PublishRequest object: The input for the Publish operation.
    • payload

Qos

  • Qos integer

RequestEntityTooLargeException

ResourceNotFoundException

ServiceUnavailableException

ShadowName

  • ShadowName string

ThingName

  • ThingName string

ThrottlingException

Timestamp

  • Timestamp integer

Topic

  • Topic string

UnauthorizedException

UnsupportedDocumentEncodingException

UpdateThingShadowRequest

  • UpdateThingShadowRequest object: The input for the UpdateThingShadow operation.
    • payload required

UpdateThingShadowResponse

  • UpdateThingShadowResponse object: The output from the UpdateThingShadow operation.
    • payload