Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Device = Device' {
- attributes :: Maybe Attributes
- deviceId :: Maybe Text
- type' :: Maybe Text
- newDevice :: Device
- device_attributes :: Lens' Device (Maybe Attributes)
- device_deviceId :: Lens' Device (Maybe Text)
- device_type :: Lens' Device (Maybe Text)
Documentation
See: newDevice
smart constructor.
Device' | |
|
Instances
Eq Device Source # | |
Read Device Source # | |
Show Device Source # | |
Generic Device Source # | |
NFData Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device | |
Hashable Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device | |
FromJSON Device Source # | |
type Rep Device Source # | |
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))))) |
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.