libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data
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.IoTEventsData.Types.Timer

Description

 
Synopsis

Documentation

data Timer Source #

The current state of a timer.

See: newTimer smart constructor.

Constructors

Timer' 

Fields

Instances

Instances details
Eq Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

Methods

(==) :: Timer -> Timer -> Bool #

(/=) :: Timer -> Timer -> Bool #

Read Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

Show Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

Methods

showsPrec :: Int -> Timer -> ShowS #

show :: Timer -> String #

showList :: [Timer] -> ShowS #

Generic Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

Associated Types

type Rep Timer :: Type -> Type #

Methods

from :: Timer -> Rep Timer x #

to :: Rep Timer x -> Timer #

NFData Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

Methods

rnf :: Timer -> () #

Hashable Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

Methods

hashWithSalt :: Int -> Timer -> Int #

hash :: Timer -> Int #

FromJSON Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

type Rep Timer Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Timer

type Rep Timer = D1 ('MetaData "Timer" "Amazonka.IoTEventsData.Types.Timer" "libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data" 'False) (C1 ('MetaCons "Timer'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)))

newTimer Source #

Create a value of Timer 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:name:Timer', timer_name - The name of the timer.

$sel:timestamp:Timer', timer_timestamp - The number of seconds which have elapsed on the timer.

timer_name :: Lens' Timer Text Source #

The name of the timer.

timer_timestamp :: Lens' Timer UTCTime Source #

The number of seconds which have elapsed on the timer.