Interface EvaluateExpressionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TaskStateBaseProps
- All Known Implementing Classes:
EvaluateExpressionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-05-31T18:44:19.751Z")
@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
Modifier and TypeMethodDescriptionbuilder()The expression to evaluate.default software.amazon.awscdk.services.lambda.RuntimeThe runtime language to use to evaluate the expression.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
@Stability(Stable) @Nullable default software.amazon.awscdk.services.lambda.Runtime getRuntime()The runtime language to use to evaluate the expression.Default: lambda.Runtime.NODEJS_14_X
-
builder
- Returns:
- a
EvaluateExpressionProps.BuilderofEvaluateExpressionProps
-