libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.Types.ThingConnectivity

Description

 
Synopsis

Documentation

data ThingConnectivity Source #

The connectivity status of the thing.

See: newThingConnectivity smart constructor.

Constructors

ThingConnectivity' 

Fields

  • disconnectReason :: Maybe Text

    The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason value might be missing.

  • connected :: Maybe Bool

    True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.

  • timestamp :: Maybe Integer

    The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for approximately an hour, the time value might be missing.

Instances

Instances details
Eq ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Read ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Show ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Generic ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Associated Types

type Rep ThingConnectivity :: Type -> Type #

NFData ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Methods

rnf :: ThingConnectivity -> () #

Hashable ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

FromJSON ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

type Rep ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

type Rep ThingConnectivity = D1 ('MetaData "ThingConnectivity" "Amazonka.IoT.Types.ThingConnectivity" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ThingConnectivity'" 'PrefixI 'True) (S1 ('MetaSel ('Just "disconnectReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "connected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))))

newThingConnectivity :: ThingConnectivity Source #

Create a value of ThingConnectivity 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:disconnectReason:ThingConnectivity', thingConnectivity_disconnectReason - The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason value might be missing.

$sel:connected:ThingConnectivity', thingConnectivity_connected - True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.

$sel:timestamp:ThingConnectivity', thingConnectivity_timestamp - The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for approximately an hour, the time value might be missing.

thingConnectivity_disconnectReason :: Lens' ThingConnectivity (Maybe Text) Source #

The reason why the client is disconnected. If the thing has been disconnected for approximately an hour, the disconnectReason value might be missing.

thingConnectivity_connected :: Lens' ThingConnectivity (Maybe Bool) Source #

True if the thing is connected to the Amazon Web Services IoT Core service; false if it is not connected.

thingConnectivity_timestamp :: Lens' ThingConnectivity (Maybe Integer) Source #

The epoch time (in milliseconds) when the thing last connected or disconnected. If the thing has been disconnected for approximately an hour, the time value might be missing.