Client library for AWS IoT 1-Click Devices Service
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);
});
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.
amazonaws_iot1click_devices.ClaimDevicesByClaimCode({
"claimCode": ""
}, context)
- input
object
- claimCode required
string
- claimCode required
amazonaws_iot1click_devices.ListDevices({}, context)
- input
object
- deviceType
string
- maxResults
integer
- nextToken
string
- deviceType
- output ListDevicesResponse
amazonaws_iot1click_devices.DescribeDevice({
"deviceId": ""
}, context)
- input
object
- deviceId required
string
- deviceId required
- output DescribeDeviceResponse
amazonaws_iot1click_devices.ListDeviceEvents({
"deviceId": "",
"fromTimeStamp": "",
"toTimeStamp": ""
}, context)
- input
object
- deviceId required
string
- fromTimeStamp required
string
- maxResults
integer
- nextToken
string
- toTimeStamp required
string
- deviceId required
- output ListDeviceEventsResponse
amazonaws_iot1click_devices.FinalizeDeviceClaim({
"deviceId": ""
}, context)
- input
object
- deviceId required
string
- tags
object
:A collection of key/value pairs defining the resource tags. For example, {
- deviceId required
- output FinalizeDeviceClaimResponse
amazonaws_iot1click_devices.InitiateDeviceClaim({
"deviceId": ""
}, context)
- input
object
- deviceId required
string
- deviceId required
- output InitiateDeviceClaimResponse
amazonaws_iot1click_devices.GetDeviceMethods({
"deviceId": ""
}, context)
- input
object
- deviceId required
string
- deviceId required
- output GetDeviceMethodsResponse
amazonaws_iot1click_devices.InvokeDeviceMethod({
"deviceId": ""
}, context)
- 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.
- deviceId required
- output InvokeDeviceMethodResponse
amazonaws_iot1click_devices.UpdateDeviceState({
"deviceId": ""
}, context)
- input
object
- deviceId required
string
- enabled
boolean
: If true, the device is enabled. If false, the device is
- deviceId required
- output UpdateDeviceStateResponse
amazonaws_iot1click_devices.UnclaimDevice({
"deviceId": ""
}, context)
- input
object
- deviceId required
string
- deviceId required
- output UnclaimDeviceResponse
amazonaws_iot1click_devices.ListTagsForResource({
"resource-arn": ""
}, context)
- input
object
- resource-arn required
string
- resource-arn required
- output ListTagsForResourceResponse
amazonaws_iot1click_devices.TagResource({
"resource-arn": "",
"tags": {}
}, context)
- input
object
- resource-arn required
string
- tags required
object
:A collection of key/value pairs defining the resource tags. For example, {
- resource-arn required
Output schema unknown
amazonaws_iot1click_devices.UntagResource({
"resource-arn": "",
"tagKeys": []
}, context)
- input
object
- resource-arn required
string
- tagKeys required
array
- resource-arn required
Output schema unknown
- Attributes
object
- ClaimDevicesByClaimCodeRequest
object
- ClaimDevicesByClaimCodeResponse
object
- ClaimCode
- Total
- DescribeDeviceRequest
object
- DescribeDeviceResponse
object
- DeviceDescription
- Arn
- Attributes
- DeviceId
- Enabled
- RemainingLife
- Tags
- Type
- DeviceDescription
- Device
object
- Attributes
- DeviceId
- Type
- DeviceAttributes
object
:
- DeviceDescription
object
- Arn
- Attributes
- DeviceId
- Enabled
- RemainingLife
- Tags
- Type
- DeviceEvent
object
- Device
- Attributes
- DeviceId
- Type
- StdEvent
- Device
- DeviceMethod
object
- DeviceType
- MethodName
- FinalizeDeviceClaimRequest
object
- Tags
- FinalizeDeviceClaimResponse
object
- State
- GetDeviceMethodsRequest
object
- GetDeviceMethodsResponse
object
- DeviceMethods
- items DeviceMethod
- DeviceMethods
- InitiateDeviceClaimRequest
object
- InitiateDeviceClaimResponse
object
- State
- InvokeDeviceMethodRequest
object
- DeviceMethod
- DeviceType
- MethodName
- DeviceMethodParameters
- DeviceMethod
- InvokeDeviceMethodResponse
object
- DeviceMethodResponse
- ListDeviceEventsRequest
object
- ListDeviceEventsResponse
object
- Events
- items DeviceEvent
- NextToken
- Events
- ListDevicesRequest
object
- ListDevicesResponse
object
- Devices
- items DeviceDescription
- NextToken
- Devices
- ListTagsForResourceRequest
object
- ListTagsForResourceResponse
object
- Tags
- MaxResults
integer
- TagResourceRequest
object
- Tags required
- UnclaimDeviceRequest
object
- UnclaimDeviceResponse
object
- State
- UntagResourceRequest
object
- UpdateDeviceStateRequest
object
- Enabled
- UpdateDeviceStateResponse
object
- __boolean
boolean
- __doubleMin0Max100
number
- __integer
integer
- __listOfDeviceDescription
array
- items DeviceDescription
- __listOfDeviceEvent
array
- items DeviceEvent
- __listOfDeviceMethod
array
- items DeviceMethod
- __listOf__string
array
- items __string
- __mapOf__string
object
- __string
string
- __stringMin12Max40
string
- __timestampIso8601
string