Interface EvaluateExpressionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TaskStateBaseProps
- All Known Implementing Classes:
EvaluateExpressionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.085Z")
@Stability(Stable)
public interface EvaluateExpressionProps
extends software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
Properties for EvaluateExpression.
Example:
EvaluateExpression convertToSeconds = EvaluateExpression.Builder.create(this, "Convert to seconds")
.expression("$.waitMilliseconds / 1000")
.resultPath("$.waitSeconds")
.build();
EvaluateExpression createMessage = EvaluateExpression.Builder.create(this, "Create message")
// Note: this is a string inside a string.
.expression("`Now waiting ${$.waitSeconds} seconds...`")
.runtime(Runtime.NODEJS_14_X)
.resultPath("$.message")
.build();
SnsPublish publishMessage = SnsPublish.Builder.create(this, "Publish message")
.topic(new Topic(this, "cool-topic"))
.message(TaskInput.fromJsonPathAt("$.message"))
.resultPath("$.sns")
.build();
Wait wait = Wait.Builder.create(this, "Wait")
.time(WaitTime.secondsPath("$.waitSeconds"))
.build();
StateMachine.Builder.create(this, "StateMachine")
.definition(convertToSeconds.next(createMessage).next(publishMessage).next(wait))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEvaluateExpressionPropsstatic final classAn implementation forEvaluateExpressionProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout
-
Method Details
-
getExpression
The expression to evaluate. The expression may contain state paths.Example value:
'$.a + $.b' -
getRuntime
The runtime language to use to evaluate the expression.Default: lambda.Runtime.NODEJS_14_X
-
builder
- Returns:
- a
EvaluateExpressionProps.BuilderofEvaluateExpressionProps
-