@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:50.857Z") @Stability(value=Experimental) public class SetVariableAction extends software.amazon.jsii.JsiiObject implements IAction
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
IInput input;
State state = State.Builder.create()
.stateName("MyState")
.onEnter(List.of(Event.builder()
.eventName("test-event")
.condition(Expression.currentInput(input))
.actions(List.of(actions, List.of(
new SetVariableAction("MyVariable", Expression.inputAttribute(input, "payload.temperature")))))
.build()))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default, IAction.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
SetVariableAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SetVariableAction(software.amazon.jsii.JsiiObjectRef objRef) |
|
SetVariableAction(String variableName,
Expression value) |
| Modifier and Type | Method and Description |
|---|---|
ActionConfig |
bind(software.constructs.Construct _scope,
ActionBindOptions _options)
(experimental) Returns the AWS IoT Events action specification.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SetVariableAction(software.amazon.jsii.JsiiObjectRef objRef)
protected SetVariableAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public SetVariableAction(@NotNull
String variableName,
@NotNull
Expression value)
variableName - the name of the variable. This parameter is required.value - the new value of the variable. This parameter is required.@Stability(value=Experimental) @NotNull public ActionConfig bind(@NotNull software.constructs.Construct _scope, @NotNull ActionBindOptions _options)
Copyright © 2022. All rights reserved.