libZSservicesZSamazonka-greengrassv2ZSamazonka-greengrassv2
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.GreengrassV2.Types.CoreDevice

Description

 
Synopsis

Documentation

data CoreDevice Source #

Contains information about a Greengrass core device, which is an IoT thing that runs the IoT Greengrass Core software.

See: newCoreDevice smart constructor.

Constructors

CoreDevice' 

Fields

  • status :: Maybe CoreDeviceStatus

    The status of the core device. Core devices can have the following statuses:

    • HEALTHY – The IoT Greengrass Core software and all components run on the core device without issue.
    • UNHEALTHY – The IoT Greengrass Core software or a component is in a failed state on the core device.
  • coreDeviceThingName :: Maybe Text

    The name of the core device. This is also the name of the IoT thing.

  • lastStatusUpdateTimestamp :: Maybe POSIX

    The time at which the core device's status last updated, expressed in ISO 8601 format.

Instances

Instances details
Eq CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

Read CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

Show CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

Generic CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

Associated Types

type Rep CoreDevice :: Type -> Type #

NFData CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

Methods

rnf :: CoreDevice -> () #

Hashable CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

FromJSON CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

type Rep CoreDevice Source # 
Instance details

Defined in Amazonka.GreengrassV2.Types.CoreDevice

type Rep CoreDevice = D1 ('MetaData "CoreDevice" "Amazonka.GreengrassV2.Types.CoreDevice" "libZSservicesZSamazonka-greengrassv2ZSamazonka-greengrassv2" 'False) (C1 ('MetaCons "CoreDevice'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CoreDeviceStatus)) :*: (S1 ('MetaSel ('Just "coreDeviceThingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastStatusUpdateTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))))

newCoreDevice :: CoreDevice Source #

Create a value of CoreDevice 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:status:CoreDevice', coreDevice_status - The status of the core device. Core devices can have the following statuses:

  • HEALTHY – The IoT Greengrass Core software and all components run on the core device without issue.
  • UNHEALTHY – The IoT Greengrass Core software or a component is in a failed state on the core device.

$sel:coreDeviceThingName:CoreDevice', coreDevice_coreDeviceThingName - The name of the core device. This is also the name of the IoT thing.

$sel:lastStatusUpdateTimestamp:CoreDevice', coreDevice_lastStatusUpdateTimestamp - The time at which the core device's status last updated, expressed in ISO 8601 format.

coreDevice_status :: Lens' CoreDevice (Maybe CoreDeviceStatus) Source #

The status of the core device. Core devices can have the following statuses:

  • HEALTHY – The IoT Greengrass Core software and all components run on the core device without issue.
  • UNHEALTHY – The IoT Greengrass Core software or a component is in a failed state on the core device.

coreDevice_coreDeviceThingName :: Lens' CoreDevice (Maybe Text) Source #

The name of the core device. This is also the name of the IoT thing.

coreDevice_lastStatusUpdateTimestamp :: Lens' CoreDevice (Maybe UTCTime) Source #

The time at which the core device's status last updated, expressed in ISO 8601 format.