Skip to content
v2.274.0

ParallelJsonataProps Struct ​

Properties for defining a Parallel state that using JSONata.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';

declare const arguments_: any;
declare const assign: any;
declare const outputs: any;
const parallelJsonataProps: stepfunctions.ParallelJsonataProps = {
  arguments: {
    argumentsKey: arguments_,
  },
  assign: {
    assignKey: assign,
  },
  comment: 'comment',
  outputs: outputs,
  queryLanguage: stepfunctions.QueryLanguage.JSON_PATH,
  stateName: 'stateName',
};

Properties ​

arguments{ [key: string]: any }argumentstyping.Mapping[str, Any]argumentsMap<String, Object>ArgumentsIDictionary<string, object>Arguments*map[string]interface{}#
Parameters pass a collection of key-value pairs, either static values or JSONata expressions that select from the input.

Default: No arguments

assign{ [key: string]: any }assigntyping.Mapping[str, Any]assignMap<String, Object>AssignIDictionary<string, object>Assign*map[string]interface{}#
Workflow variables to store in this step.

Default: Not assign variables

Using workflow variables, you can store data in a step and retrieve that data in future steps.

commentstringcommentstrcommentStringCommentstringComment*string#
A comment describing this state.

Default: No comment

outputsanyoutputsAnyoutputsObjectOutputsobjectOutputsinterface{}#
Used to specify and transform output from the state.

Default: $states.result or $states.errorOutput

notes

When specified, the value overrides the state output default. The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters. Output also accepts a JSONata expression directly.

queryLanguageQueryLanguagequery_languageQueryLanguagequeryLanguageQueryLanguageQueryLanguageQueryLanguageQueryLanguageQueryLanguage= JSONPath#
The name of the query language used by the state.

If the state does not contain a queryLanguage field, then it will use the query language specified in the top-level queryLanguage field.

stateNamestringstate_namestrstateNameStringStateNamestringStateName*string#
Optional name for this state.

Default: The construct ID will be used as state name