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

Description

 
Synopsis

Documentation

data DeviceEvent Source #

See: newDeviceEvent smart constructor.

Constructors

DeviceEvent' 

Fields

  • stdEvent :: Maybe Text

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

  • device :: Maybe Device

    An object representing the device associated with the event.

Instances

Instances details
Eq DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

Read DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

Show DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

Generic DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

Associated Types

type Rep DeviceEvent :: Type -> Type #

NFData DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

Methods

rnf :: DeviceEvent -> () #

Hashable DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

FromJSON DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

type Rep DeviceEvent Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.Types.DeviceEvent

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

newDeviceEvent :: DeviceEvent Source #

Create a value of DeviceEvent 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:stdEvent:DeviceEvent', deviceEvent_stdEvent - A serialized JSON object representing the device-type specific event.

$sel:device:DeviceEvent', deviceEvent_device - 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.

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

An object representing the device associated with the event.