Interface EvaluateExpressionProps
- All Superinterfaces:
AssignableStateOptions,software.amazon.jsii.JsiiSerializable,JsonataCommonOptions,JsonPathCommonOptions,StateBaseProps,TaskStateBaseOptions,TaskStateBaseProps
- All Known Implementing Classes:
EvaluateExpressionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:20.349Z")
@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_LATEST)
.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()default ArchitectureThe system architecture compatible with this lambda function.The expression to evaluate.default RuntimeThe runtime language to use to evaluate the expression.Methods inherited from interface software.amazon.awscdk.services.stepfunctions.AssignableStateOptions
getAssignMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonataCommonOptions
getOutputsMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonPathCommonOptions
getInputPath, getOutputPathMethods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateNameMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseOptions
getCredentials, getHeartbeat, getHeartbeatTimeout, getIntegrationPattern, getTaskTimeout, getTimeoutMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getResultPath, getResultSelector
-
Method Details
-
getExpression
The expression to evaluate. The expression may contain state paths.A referenced path is only resolved where it is used as code (for example
$.a + $.b, or a function argument). To build a string that contains a value, use a template literal interpolation (${$.count}); a path placed as literal text inside a plain string, or as bare text inside a template literal (for example'items: $.count'), is not resolved and is rejected at synth time.Example value:
'$.a + $.b' -
getArchitecture
The system architecture compatible with this lambda function.ARM64 architecture support varies by AWS region. Please verify that your deployment region supports Lambda functions with ARM64 architecture before specifying Architecture.ARM_64.
Default: Architecture.X86_64
-
getRuntime
The runtime language to use to evaluate the expression.Default: - the latest Lambda node runtime available in your region.
-
builder
- Returns:
- a
EvaluateExpressionProps.BuilderofEvaluateExpressionProps
-