amazonka-iot-2.0: Amazon IoT 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.IoT.Types.ThingConnectivity

Description

 
Synopsis

Documentation

data ThingConnectivity Source #

The connectivity status of the thing.

See: newThingConnectivity smart constructor.

Constructors

ThingConnectivity' 

Fields

  • connected :: Maybe Bool

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

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

  • 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
FromJSON 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 #

Read ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Show ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

NFData ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Methods

rnf :: ThingConnectivity -> () #

Eq ThingConnectivity Source # 
Instance details

Defined in Amazonka.IoT.Types.ThingConnectivity

Hashable 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ThingConnectivity'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "disconnectReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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: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: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: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_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_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_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.