java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iotevents.actions.alpha.SetTimerAction
All Implemented Interfaces:
IAction, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:41.741Z") @Stability(Experimental) public class SetTimerAction extends software.amazon.jsii.JsiiObject implements IAction
(experimental) The action to create a timer with duration in seconds.

Example:

 // Example automatically generated from non-compiling source. May contain errors.
 import software.amazon.awscdk.services.iotevents.alpha.*;
 import software.amazon.awscdk.services.iotevents.actions.alpha.*;
 IInput input;
 State state = State.Builder.create()
         .stateName("MyState")
         .onEnter(List.of(Event.builder()
                 .eventName("test-event")
                 .condition(Expression.currentInput(input))
                 .actions(List.of(
                     new SetTimerAction("MyTimer", Map.of(
                             "duration", cdk.Duration.seconds(60)))))
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iotevents.alpha.IAction

    IAction.Jsii$Default, IAction.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    SetTimerAction(String timerName, TimerDuration timerDuration)
     
    protected
    SetTimerAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    SetTimerAction(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • SetTimerAction

      protected SetTimerAction(software.amazon.jsii.JsiiObjectRef objRef)
    • SetTimerAction

      protected SetTimerAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SetTimerAction

      @Stability(Experimental) public SetTimerAction(@NotNull String timerName, @NotNull TimerDuration timerDuration)
      Parameters:
      timerName - the name of the timer. This parameter is required.
      timerDuration - the duration of the timer. This parameter is required.