Interface CfnDetectorModel.SetTimerProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnDetectorModel.SetTimerProperty extends
Information needed to set the timer.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 SetTimerProperty setTimerProperty = SetTimerProperty.builder()
         // the properties below are optional
  • Method Details

    • getTimerName

      @Stability(Stable) @NotNull String getTimerName()
      The name of the timer.
    • getDurationExpression

      @Stability(Stable) @Nullable default String 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.

    • getSeconds

      @Stability(Stable) @Nullable default Number getSeconds()
      The number of seconds until the timer expires.

      The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

    • builder

      @Stability(Stable) static CfnDetectorModel.SetTimerProperty.Builder builder()
      a CfnDetectorModel.SetTimerProperty.Builder of CfnDetectorModel.SetTimerProperty