You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::IoTEvents::Types::SetTimerAction

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SetTimerAction as input to an Aws::Client method, you can use a vanilla Hash:

{
  timer_name: "TimerName", # required
  seconds: 1,
  duration_expression: "VariableValue",
}

Information needed to set the timer.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#duration_expressionString

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.

Returns:

  • (String)

    The duration of the timer, in seconds.

#secondsInteger

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

Returns:

  • (Integer)

    The number of seconds until the timer expires.

#timer_nameString

The name of the timer.

Returns:

  • (String)

    The name of the timer.