Interface CfnDetectorModel.SetTimerProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDetectorModel.SetTimerProperty.Jsii$Proxy
- Enclosing class:
CfnDetectorModel
@Stability(Stable)
public static interface CfnDetectorModel.SetTimerProperty
extends software.amazon.jsii.JsiiSerializable
Information needed to set the timer.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotevents.*;
SetTimerProperty setTimerProperty = SetTimerProperty.builder()
.timerName("timerName")
// the properties below are optional
.durationExpression("durationExpression")
.seconds(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDetectorModel.SetTimerPropertystatic final classAn implementation forCfnDetectorModel.SetTimerProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTimerName
The name of the timer.- See Also:
-
getDurationExpression
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.- See Also:
-
getSeconds
The number of seconds until the timer expires.The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
- See Also:
-
builder
-