Skip to content

Latest commit

 

History

History

amazonaws_iot1click_devices

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@datafire/amazonaws_iot1click_devices

Client library for AWS IoT 1-Click Devices Service

Installation and Usage

npm install --save @datafire/amazonaws_iot1click_devices
let amazonaws_iot1click_devices = require('@datafire/amazonaws_iot1click_devices').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

.then(data => {
  console.log(data);
});

Description

Describes all of the AWS IoT 1-Click device-related API operations for the service. Also provides sample requests, responses, and errors for the supported web services protocols.

Actions

ClaimDevicesByClaimCode

amazonaws_iot1click_devices.ClaimDevicesByClaimCode({
  "claimCode": ""
}, context)

Input

  • input object
    • claimCode required string

Output

ListDevices

amazonaws_iot1click_devices.ListDevices({}, context)

Input

  • input object
    • deviceType string
    • maxResults integer
    • nextToken string

Output

DescribeDevice

amazonaws_iot1click_devices.DescribeDevice({
  "deviceId": ""
}, context)

Input

  • input object
    • deviceId required string

Output

ListDeviceEvents

amazonaws_iot1click_devices.ListDeviceEvents({
  "deviceId": "",
  "fromTimeStamp": "",
  "toTimeStamp": ""
}, context)

Input

  • input object
    • deviceId required string
    • fromTimeStamp required string
    • maxResults integer
    • nextToken string
    • toTimeStamp required string

Output

FinalizeDeviceClaim

amazonaws_iot1click_devices.FinalizeDeviceClaim({
  "deviceId": ""
}, context)

Input

  • input object
    • deviceId required string
    • tags object:

      A collection of key/value pairs defining the resource tags. For example, {

Output

InitiateDeviceClaim

amazonaws_iot1click_devices.InitiateDeviceClaim({
  "deviceId": ""
}, context)

Input

  • input object
    • deviceId required string

Output

GetDeviceMethods

amazonaws_iot1click_devices.GetDeviceMethods({
  "deviceId": ""
}, context)

Input

  • input object
    • deviceId required string

Output

InvokeDeviceMethod

amazonaws_iot1click_devices.InvokeDeviceMethod({
  "deviceId": ""
}, context)

Input

  • input object
    • deviceId required string
    • deviceMethod object: The device method to invoke.
      • DeviceType
      • MethodName
    • deviceMethodParameters string: A JSON encoded string containing the device method request parameters.

Output

UpdateDeviceState

amazonaws_iot1click_devices.UpdateDeviceState({
  "deviceId": ""
}, context)

Input

  • input object
    • deviceId required string
    • enabled boolean: If true, the device is enabled. If false, the device is

Output

UnclaimDevice

amazonaws_iot1click_devices.UnclaimDevice({
  "deviceId": ""
}, context)

Input

  • input object
    • deviceId required string

Output

ListTagsForResource

amazonaws_iot1click_devices.ListTagsForResource({
  "resource-arn": ""
}, context)

Input

  • input object
    • resource-arn required string

Output

TagResource

amazonaws_iot1click_devices.TagResource({
  "resource-arn": "",
  "tags": {}
}, context)

Input

  • input object
    • resource-arn required string
    • tags required object:

      A collection of key/value pairs defining the resource tags. For example, {

Output

Output schema unknown

UntagResource

amazonaws_iot1click_devices.UntagResource({
  "resource-arn": "",
  "tagKeys": []
}, context)

Input

  • input object
    • resource-arn required string
    • tagKeys required array

Output

Output schema unknown

Definitions

Attributes

  • Attributes object

ClaimDevicesByClaimCodeRequest

  • ClaimDevicesByClaimCodeRequest object

ClaimDevicesByClaimCodeResponse

  • ClaimDevicesByClaimCodeResponse object
    • ClaimCode
    • Total

DescribeDeviceRequest

  • DescribeDeviceRequest object

DescribeDeviceResponse

  • DescribeDeviceResponse object
    • DeviceDescription
      • Arn
      • Attributes
      • DeviceId
      • Enabled
      • RemainingLife
      • Tags
      • Type

Device

  • Device object
    • Attributes
    • DeviceId
    • Type

DeviceAttributes

  • DeviceAttributes object:

DeviceDescription

  • DeviceDescription object
    • Arn
    • Attributes
    • DeviceId
    • Enabled
    • RemainingLife
    • Tags
    • Type

DeviceEvent

  • DeviceEvent object
    • Device
      • Attributes
      • DeviceId
      • Type
    • StdEvent

DeviceMethod

  • DeviceMethod object
    • DeviceType
    • MethodName

FinalizeDeviceClaimRequest

  • FinalizeDeviceClaimRequest object
    • Tags

FinalizeDeviceClaimResponse

  • FinalizeDeviceClaimResponse object
    • State

ForbiddenException

GetDeviceMethodsRequest

  • GetDeviceMethodsRequest object

GetDeviceMethodsResponse

  • GetDeviceMethodsResponse object

InitiateDeviceClaimRequest

  • InitiateDeviceClaimRequest object

InitiateDeviceClaimResponse

  • InitiateDeviceClaimResponse object
    • State

InternalFailureException

InvalidRequestException

InvokeDeviceMethodRequest

  • InvokeDeviceMethodRequest object
    • DeviceMethod
      • DeviceType
      • MethodName
    • DeviceMethodParameters

InvokeDeviceMethodResponse

  • InvokeDeviceMethodResponse object
    • DeviceMethodResponse

ListDeviceEventsRequest

  • ListDeviceEventsRequest object

ListDeviceEventsResponse

  • ListDeviceEventsResponse object

ListDevicesRequest

  • ListDevicesRequest object

ListDevicesResponse

ListTagsForResourceRequest

  • ListTagsForResourceRequest object

ListTagsForResourceResponse

  • ListTagsForResourceResponse object
    • Tags

MaxResults

  • MaxResults integer

PreconditionFailedException

RangeNotSatisfiableException

ResourceConflictException

ResourceNotFoundException

TagResourceRequest

  • TagResourceRequest object
    • Tags required

UnclaimDeviceRequest

  • UnclaimDeviceRequest object

UnclaimDeviceResponse

  • UnclaimDeviceResponse object
    • State

UntagResourceRequest

  • UntagResourceRequest object

UpdateDeviceStateRequest

  • UpdateDeviceStateRequest object
    • Enabled

UpdateDeviceStateResponse

  • UpdateDeviceStateResponse object

__boolean

  • __boolean boolean

__doubleMin0Max100

  • __doubleMin0Max100 number

__integer

  • __integer integer

__listOfDeviceDescription

__listOfDeviceEvent

__listOfDeviceMethod

__listOf__string

__mapOf__string

  • __mapOf__string object

__string

  • __string string

__stringMin12Max40

  • __stringMin12Max40 string

__timestampIso8601

  • __timestampIso8601 string