From 89c254138bbbb51af0a97772cc1e9e826bc36df2 Mon Sep 17 00:00:00 2001 From: Razin Idzuddin Date: Fri, 1 Sep 2023 17:17:40 +1000 Subject: [PATCH] add readme explaining alternate usage --- packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md index d291ebf894b4c..de9a864968f86 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md @@ -258,6 +258,15 @@ const startQueryExecutionJob = new tasks.AthenaStartQueryExecution(this, 'Start }, }); ``` +Alternatively, we could also use the following for `outputLocation` +``` +resultConfiguration: { + outputLocation: sfn.JsonPath.format( + 's3://query-results-bucket/folder/{}', + sfn.JsonPath.format('$.folder'), + ) +} +``` ### GetQueryExecution