Show / Hide Table of Contents

Class EvaluateExpression

A Step Functions Task to evaluate an expression.

Inheritance
object
State
TaskStateBase
EvaluateExpression
Implements
IChainable
INextable
Inherited Members
TaskStateBase.AddCatch(IChainable, ICatchProps)
TaskStateBase.AddRetry(IRetryProps)
TaskStateBase.Metric(string, IMetricOptions)
TaskStateBase.MetricFailed(IMetricOptions)
TaskStateBase.MetricHeartbeatTimedOut(IMetricOptions)
TaskStateBase.MetricRunTime(IMetricOptions)
TaskStateBase.MetricScheduled(IMetricOptions)
TaskStateBase.MetricScheduleTime(IMetricOptions)
TaskStateBase.MetricStarted(IMetricOptions)
TaskStateBase.MetricSucceeded(IMetricOptions)
TaskStateBase.MetricTime(IMetricOptions)
TaskStateBase.MetricTimedOut(IMetricOptions)
TaskStateBase.Next(IChainable)
TaskStateBase.ToStateJson(QueryLanguage?)
TaskStateBase.WhenBoundToGraph(StateGraph)
TaskStateBase.EndStates
State.FilterNextables(State[])
State.FindReachableEndStates(State, IFindStateOptions)
State.FindReachableStates(State, IFindStateOptions)
State.PrefixStates(IConstruct, string)
State.AddBranch(StateGraph)
State.AddChoice(Condition, State, IChoiceTransitionOptions)
State.AddItemProcessor(StateGraph, IProcessorConfig)
State.AddIterator(StateGraph)
State.AddPrefix(string)
State.BindToGraph(StateGraph)
State.MakeDefault(State)
State.MakeNext(State)
State.RenderAssign(QueryLanguage?)
State.RenderBranches()
State.RenderChoices(QueryLanguage?)
State.RenderInputOutput()
State.RenderItemProcessor()
State.RenderIterator()
State.RenderNextEnd()
State.RenderQueryLanguage(QueryLanguage?)
State.RenderResultSelector()
State.RenderRetryCatch(QueryLanguage?)
State.ValidateState()
State.Branches
State.Id
State.StartState
State.StateId
State.Arguments
State.Assign
State.Comment
State.InputPath
State.OutputPath
State.Outputs
State.Parameters
State.QueryLanguage
State.ResultPath
State.ResultSelector
State.StateName
State.DefaultChoice
State.Iteration
State.Processor
State.ProcessorConfig
State.ProcessorMode
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EvaluateExpression : TaskStateBase, IChainable, INextable
Syntax (vb)
Public Class EvaluateExpression Inherits TaskStateBase Implements IChainable, INextable
Remarks

OUTPUT: the output of this task is the evaluated expression.

ExampleMetadata: infused

Examples
var convertToSeconds = new EvaluateExpression(this, "Convert to seconds", new EvaluateExpressionProps {
                 Expression = "$.waitMilliseconds / 1000",
                 ResultPath = "$.waitSeconds"
             });

             var createMessage = new EvaluateExpression(this, "Create message", new EvaluateExpressionProps {
                 // Note: this is a string inside a string.
                 Expression = "`Now waiting ${$.waitSeconds} seconds...`",
                 Runtime = Runtime.NODEJS_LATEST,
                 ResultPath = "$.message"
             });

             var publishMessage = new SnsPublish(this, "Publish message", new SnsPublishProps {
                 Topic = new Topic(this, "cool-topic"),
                 Message = TaskInput.FromJsonPathAt("$.message"),
                 ResultPath = "$.sns"
             });

             var wait = new Wait(this, "Wait", new WaitProps {
                 Time = WaitTime.SecondsPath("$.waitSeconds")
             });

             new StateMachine(this, "StateMachine", new StateMachineProps {
                 Definition = convertToSeconds.Next(createMessage).Next(publishMessage).Next(wait)
             });

Synopsis

Constructors

EvaluateExpression(Construct, string, IEvaluateExpressionProps)

A Step Functions Task to evaluate an expression.

Properties

TaskMetrics

A Step Functions Task to evaluate an expression.

TaskPolicies

A Step Functions Task to evaluate an expression.

Constructors

EvaluateExpression(Construct, string, IEvaluateExpressionProps)

A Step Functions Task to evaluate an expression.

public EvaluateExpression(Construct scope, string id, IEvaluateExpressionProps props)
Parameters
scope Construct
id string

Descriptive identifier for this chainable.

props IEvaluateExpressionProps
Remarks

OUTPUT: the output of this task is the evaluated expression.

ExampleMetadata: infused

Properties

TaskMetrics

A Step Functions Task to evaluate an expression.

protected override ITaskMetricsConfig? TaskMetrics { get; }
Property Value

ITaskMetricsConfig

Overrides
TaskStateBase.TaskMetrics
Remarks

OUTPUT: the output of this task is the evaluated expression.

ExampleMetadata: infused

TaskPolicies

A Step Functions Task to evaluate an expression.

protected override PolicyStatement[]? TaskPolicies { get; }
Property Value

PolicyStatement[]

Overrides
TaskStateBase.TaskPolicies
Remarks

OUTPUT: the output of this task is the evaluated expression.

ExampleMetadata: infused

Implements

IChainable
INextable
Back to top Generated by DocFX