Skip to content

Commit 1e9220f

Browse files
authored
docs(stepfunctions): Update Step Functions Job Poller example (#24117)
Hi team, Updated code for Step Functions Job Poller example according to https://docs.aws.amazon.com/step-functions/latest/dg/sample-project-job-poller.html#sample-job-poller-code-example Please check and let me know if this makes sense. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 32781f8 commit 1e9220f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ declare const getStatusLambda: lambda.Function;
2929

3030
const submitJob = new tasks.LambdaInvoke(this, 'Submit Job', {
3131
lambdaFunction: submitLambda,
32-
// Lambda's result is in the attribute `Payload`
33-
outputPath: '$.Payload',
32+
// Lambda's result is in the attribute `guid`
33+
outputPath: '$.guid',
3434
});
3535

3636
const waitX = new sfn.Wait(this, 'Wait X Seconds', {
@@ -42,7 +42,7 @@ const getStatus = new tasks.LambdaInvoke(this, 'Get Job Status', {
4242
// Pass just the field named "guid" into the Lambda, put the
4343
// Lambda's result in a field called "status" in the response
4444
inputPath: '$.guid',
45-
outputPath: '$.Payload',
45+
outputPath: '$.status',
4646
});
4747

4848
const jobFailed = new sfn.Fail(this, 'Job Failed', {

0 commit comments

Comments
 (0)