amazonka-iot1click-devices-2.0: Amazon IoT 1-Click Devices Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT1ClickDevices.Lens

Description

 
Synopsis

Operations

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.

DescribeDevice

describeDevice_deviceId :: Lens' DescribeDevice Text Source #

The unique identifier of 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.

GetDeviceMethods

getDeviceMethods_deviceId :: Lens' GetDeviceMethods Text Source #

The unique identifier of the device.

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.

ListDeviceEvents

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_nextToken :: Lens' ListDeviceEvents (Maybe Text) Source #

The token to retrieve the next set of results.

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_events :: Lens' ListDeviceEventsResponse (Maybe [DeviceEvent]) Source #

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

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

The token to retrieve the next set of results.

ListDevices

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.

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

The token to retrieve the next set of results.

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

The token to retrieve the next set of results.

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.

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.

UnclaimDevice

unclaimDevice_deviceId :: Lens' UnclaimDevice Text Source #

The unique identifier of the device.

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.

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_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_enabled :: Lens' DeviceDescription (Maybe Bool) Source #

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

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

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

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

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

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

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

DeviceEvent

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

An object representing the device associated with the event.

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

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

DeviceMethod

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

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

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

The name of the method applicable to the deviceType.