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.Types.DeviceDescription

Description

 
Synopsis

Documentation

data DeviceDescription Source #

See: newDeviceDescription smart constructor.

Constructors

DeviceDescription' 

Fields

Instances

Instances details
FromJSON DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

Generic DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

Associated Types

type Rep DeviceDescription :: Type -> Type #

Read DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

Show DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

NFData DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

Methods

rnf :: DeviceDescription -> () #

Eq DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

Hashable DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

type Rep DeviceDescription Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceDescription

type Rep DeviceDescription = D1 ('MetaData "DeviceDescription" "Amazonka.IoT1ClickDevices.Types.DeviceDescription" "amazonka-iot1click-devices-2.0-9HUhsuXK7LTlqVc7Joztr" 'False) (C1 ('MetaCons "DeviceDescription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "remainingLife") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDeviceDescription :: DeviceDescription Source #

Create a value of DeviceDescription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:arn:DeviceDescription', deviceDescription_arn - The ARN of the device.

$sel:attributes:DeviceDescription', deviceDescription_attributes - An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.

$sel:deviceId:DeviceDescription', deviceDescription_deviceId - The unique identifier of the device.

$sel:enabled:DeviceDescription', deviceDescription_enabled - A Boolean value indicating whether or not the device is enabled.

$sel:remainingLife:DeviceDescription', deviceDescription_remainingLife - A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.

$sel:tags:DeviceDescription', deviceDescription_tags - The tags currently associated with the AWS IoT 1-Click device.

$sel:type':DeviceDescription', deviceDescription_type - The type of the device, such as "button".

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".