libZSservicesZSamazonka-ioteventsZSamazonka-iotevents
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.IoTEvents.Types.SetTimerAction

Description

 
Synopsis

Documentation

data SetTimerAction Source #

Information needed to set the timer.

See: newSetTimerAction smart constructor.

Constructors

SetTimerAction' 

Fields

  • durationExpression :: Maybe Text

    The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.<variable-name>), and input values ($input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

  • seconds :: Maybe Natural

    The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

  • timerName :: Text

    The name of the timer.

Instances

Instances details
Eq SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

Read SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

Show SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

Generic SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

Associated Types

type Rep SetTimerAction :: Type -> Type #

NFData SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

Methods

rnf :: SetTimerAction -> () #

Hashable SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

ToJSON SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

FromJSON SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

type Rep SetTimerAction Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.SetTimerAction

type Rep SetTimerAction = D1 ('MetaData "SetTimerAction" "Amazonka.IoTEvents.Types.SetTimerAction" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "SetTimerAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "durationExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "seconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "timerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newSetTimerAction Source #

Create a value of SetTimerAction 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:durationExpression:SetTimerAction', setTimerAction_durationExpression - The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.<variable-name>), and input values ($input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

$sel:seconds:SetTimerAction', setTimerAction_seconds - The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

$sel:timerName:SetTimerAction', setTimerAction_timerName - The name of the timer.

setTimerAction_durationExpression :: Lens' SetTimerAction (Maybe Text) Source #

The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.<variable-name>), and input values ($input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

setTimerAction_seconds :: Lens' SetTimerAction (Maybe Natural) Source #

The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.