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

Description

 
Synopsis

Documentation

data Device Source #

See: newDevice smart constructor.

Constructors

Device' 

Fields

Instances

Instances details
Eq Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

Methods

(==) :: Device -> Device -> Bool #

(/=) :: Device -> Device -> Bool #

Read Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

Show Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

Generic Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

Associated Types

type Rep Device :: Type -> Type #

Methods

from :: Device -> Rep Device x #

to :: Rep Device x -> Device #

NFData Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

Methods

rnf :: Device -> () #

Hashable Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

Methods

hashWithSalt :: Int -> Device -> Int #

hash :: Device -> Int #

FromJSON Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

type Rep Device Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.Device

type Rep Device = D1 ('MetaData "Device" "Amazonka.IoT1ClickDevices.Types.Device" "libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices" 'False) (C1 ('MetaCons "Device'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Attributes)) :*: (S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDevice :: Device Source #

Create a value of Device 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:attributes:Device', device_attributes - The user specified attributes associated with the device for an event.

$sel:deviceId:Device', device_deviceId - The unique identifier of the device.

$sel:type':Device', device_type - The device type, such as "button".

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