Class SetVariableAction
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.119.0 (build 1634eac)",
date="2025-11-13T16:10:18.825Z")
@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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.iotevents.alpha.IAction
IAction.Jsii$Default, IAction.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionSetVariableAction(String variableName, Expression value) protectedSetVariableAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSetVariableAction(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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.
-