libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT1ClickDevices.Lens

Description

 
Synopsis

Operations

GetDeviceMethods

getDeviceMethods_deviceId :: Lens' GetDeviceMethods Text Source #

The unique identifier of the device.

ListTagsForResource

listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe (HashMap Text Text)) Source #

A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.

ClaimDevicesByClaimCode

claimDevicesByClaimCode_claimCode :: Lens' ClaimDevicesByClaimCode Text Source #

The claim code, starting with "C-", as provided by the device manufacturer.

claimDevicesByClaimCodeResponse_claimCode :: Lens' ClaimDevicesByClaimCodeResponse (Maybe Text) Source #

The claim code provided by the device manufacturer.

claimDevicesByClaimCodeResponse_total :: Lens' ClaimDevicesByClaimCodeResponse (Maybe Int) Source #

The total number of devices associated with the claim code that has been processed in the claim request.

InitiateDeviceClaim

initiateDeviceClaim_deviceId :: Lens' InitiateDeviceClaim Text Source #

The unique identifier of the device.

InvokeDeviceMethod

invokeDeviceMethod_deviceMethodParameters :: Lens' InvokeDeviceMethod (Maybe Text) Source #

A JSON encoded string containing the device method request parameters.

invokeDeviceMethod_deviceId :: Lens' InvokeDeviceMethod Text Source #

The unique identifier of the device.

invokeDeviceMethodResponse_deviceMethodResponse :: Lens' InvokeDeviceMethodResponse (Maybe Text) Source #

A JSON encoded string containing the device method response.

DescribeDevice

describeDevice_deviceId :: Lens' DescribeDevice Text Source #

The unique identifier of the device.

ListDeviceEvents

listDeviceEvents_nextToken :: Lens' ListDeviceEvents (Maybe Text) Source #

The token to retrieve the next set of results.

listDeviceEvents_maxResults :: Lens' ListDeviceEvents (Maybe Natural) Source #

The maximum number of results to return per request. If not set, a default value of 100 is used.

listDeviceEvents_deviceId :: Lens' ListDeviceEvents Text Source #

The unique identifier of the device.

listDeviceEvents_fromTimeStamp :: Lens' ListDeviceEvents UTCTime Source #

The start date for the device event query, in ISO8061 format. For example, 2018-03-28T15:45:12.880Z

listDeviceEvents_toTimeStamp :: Lens' ListDeviceEvents UTCTime Source #

The end date for the device event query, in ISO8061 format. For example, 2018-03-28T15:45:12.880Z

listDeviceEventsResponse_nextToken :: Lens' ListDeviceEventsResponse (Maybe Text) Source #

The token to retrieve the next set of results.

listDeviceEventsResponse_events :: Lens' ListDeviceEventsResponse (Maybe [DeviceEvent]) Source #

An array of zero or more elements describing the event(s) associated with the device.

FinalizeDeviceClaim

finalizeDeviceClaim_tags :: Lens' FinalizeDeviceClaim (Maybe (HashMap Text Text)) Source #

A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.

finalizeDeviceClaim_deviceId :: Lens' FinalizeDeviceClaim Text Source #

The unique identifier of the device.

TagResource

tagResource_tags :: Lens' TagResource (HashMap Text Text) Source #

A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.

UntagResource

untagResource_tagKeys :: Lens' UntagResource [Text] Source #

A collections of tag keys. For example, {"key1","key2"}

UpdateDeviceState

updateDeviceState_enabled :: Lens' UpdateDeviceState (Maybe Bool) Source #

If true, the device is enabled. If false, the device is disabled.

updateDeviceState_deviceId :: Lens' UpdateDeviceState Text Source #

The unique identifier of the device.

UnclaimDevice

unclaimDevice_deviceId :: Lens' UnclaimDevice Text Source #

The unique identifier of the device.

ListDevices

listDevices_nextToken :: Lens' ListDevices (Maybe Text) Source #

The token to retrieve the next set of results.

listDevices_deviceType :: Lens' ListDevices (Maybe Text) Source #

The type of the device, such as "button".

listDevices_maxResults :: Lens' ListDevices (Maybe Natural) Source #

The maximum number of results to return per request. If not set, a default value of 100 is used.

listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text) Source #

The token to retrieve the next set of results.

Types

Attributes

Device

device_attributes :: Lens' Device (Maybe Attributes) Source #

The user specified attributes associated with the device for an event.

device_deviceId :: Lens' Device (Maybe Text) Source #

The unique identifier of the device.

device_type :: Lens' Device (Maybe Text) Source #

The device type, such as "button".

DeviceDescription

deviceDescription_remainingLife :: Lens' DeviceDescription (Maybe Double) Source #

A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.

deviceDescription_enabled :: Lens' DeviceDescription (Maybe Bool) Source #

A Boolean value indicating whether or not the device is enabled.

deviceDescription_attributes :: Lens' DeviceDescription (Maybe (HashMap Text Text)) Source #

An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.

deviceDescription_deviceId :: Lens' DeviceDescription (Maybe Text) Source #

The unique identifier of the device.

deviceDescription_type :: Lens' DeviceDescription (Maybe Text) Source #

The type of the device, such as "button".

deviceDescription_tags :: Lens' DeviceDescription (Maybe (HashMap Text Text)) Source #

The tags currently associated with the AWS IoT 1-Click device.

DeviceEvent

deviceEvent_stdEvent :: Lens' DeviceEvent (Maybe Text) Source #

A serialized JSON object representing the device-type specific event.

deviceEvent_device :: Lens' DeviceEvent (Maybe Device) Source #

An object representing the device associated with the event.

DeviceMethod

deviceMethod_methodName :: Lens' DeviceMethod (Maybe Text) Source #

The name of the method applicable to the deviceType.

deviceMethod_deviceType :: Lens' DeviceMethod (Maybe Text) Source #

The type of the device, such as "button".