Skip to content

Commit 703b39a

Browse files
authored
docs(stepfunctions-tasks): EvaluateExpression only supports NODEJS_10_X (#13227)
### Description This PR documents only NODEJS_10_X for EvaluateExpression. It was mistakenly changed to NODEJS_12_X in bulk PR #12807 Issue which requests supports NODEJS_12_X version by default in EvaluateExpression #13224 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 18184df commit 703b39a

File tree

1 file changed

+3
-3
lines changed
  • packages/@aws-cdk/aws-stepfunctions-tasks

1 file changed

+3
-3
lines changed

packages/@aws-cdk/aws-stepfunctions-tasks/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ const convertToSeconds = new tasks.EvaluateExpression(this, 'Convert to seconds'
188188

189189
const createMessage = new tasks.EvaluateExpression(this, 'Create message', {
190190
// Note: this is a string inside a string.
191-
expression: '`Now waiting ${$.waitSeconds} seconds...`',
192-
runtime: lambda.Runtime.NODEJS_12_X,
191+
expression: '`Now waiting ${$.waitSeconds} seconds...`',
192+
runtime: lambda.Runtime.NODEJS_10_X,
193193
resultPath: '$.message',
194194
});
195195

@@ -213,7 +213,7 @@ new sfn.StateMachine(this, 'StateMachine', {
213213

214214
The `EvaluateExpression` supports a `runtime` prop to specify the Lambda
215215
runtime to use to evaluate the expression. Currently, the only runtime
216-
supported is `lambda.Runtime.NODEJS_12_X`.
216+
supported is `lambda.Runtime.NODEJS_10_X`.
217217

218218

219219
## Athena

0 commit comments

Comments
 (0)