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

Description

 
Synopsis

Documentation

data TimerDefinition Source #

The new setting of a timer.

See: newTimerDefinition smart constructor.

Constructors

TimerDefinition' 

Fields

  • name :: Text

    The name of the timer.

  • seconds :: Int

    The new setting of the timer (the number of seconds before the timer elapses).

Instances

Instances details
Eq TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

Read TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

Show TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

Generic TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

Associated Types

type Rep TimerDefinition :: Type -> Type #

NFData TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

Methods

rnf :: TimerDefinition -> () #

Hashable TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

ToJSON TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

type Rep TimerDefinition Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.TimerDefinition

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

newTimerDefinition Source #

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

$sel:seconds:TimerDefinition', timerDefinition_seconds - The new setting of the timer (the number of seconds before the timer elapses).

timerDefinition_seconds :: Lens' TimerDefinition Int Source #

The new setting of the timer (the number of seconds before the timer elapses).