java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iotevents.actions.alpha.SetVariableAction
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 SetVariableAction extends software.amazon.jsii.JsiiObject implements IAction
(experimental) The action to create a variable with a specified value.

Example:

 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 SetVariableAction("MyVariable", Expression.inputAttribute(input, "payload.temperature"))))
                 .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
     
    SetVariableAction(String variableName, Expression value)
     
    protected
    SetVariableAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    SetVariableAction(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

    • SetVariableAction

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

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

      @Stability(Experimental) public SetVariableAction(@NotNull String variableName, @NotNull Expression value)
      Parameters:
      variableName - the name of the variable. This parameter is required.
      value - the new value of the variable. This parameter is required.