interface MapProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.MapProps |
Java | software.amazon.awscdk.services.stepfunctions.MapProps |
Python | aws_cdk.aws_stepfunctions.MapProps |
TypeScript (source) | @aws-cdk/aws-stepfunctions » MapProps |
Properties for defining a Map state.
Example
const map = new sfn.Map(this, 'Map State', {
maxConcurrency: 1,
itemsPath: sfn.JsonPath.stringAt('$.inputForMap'),
});
map.iterator(new sfn.Pass(this, 'Pass State'));
Properties
Name | Type | Description |
---|---|---|
comment? | string | An optional description for this state. |
input | string | JSONPath expression to select part of the state to be the input to this state. |
items | string | JSONPath expression to select the array to iterate over. |
max | number | MaxConcurrency. |
output | string | JSONPath expression to select part of the state to be the output to this state. |
parameters? | { [string]: any } | The JSON that you want to override your default iteration input. |
result | string | JSONPath expression to indicate where to inject the state's output. |
result | { [string]: any } | The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. |
comment?
Type:
string
(optional, default: No comment)
An optional description for this state.
inputPath?
Type:
string
(optional, default: $)
JSONPath expression to select part of the state to be the input to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.
itemsPath?
Type:
string
(optional, default: $)
JSONPath expression to select the array to iterate over.
maxConcurrency?
Type:
number
(optional, default: full concurrency)
MaxConcurrency.
An upper bound on the number of iterations you want running at once.
outputPath?
Type:
string
(optional, default: $)
JSONPath expression to select part of the state to be the output to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.
parameters?
Type:
{ [string]: any }
(optional, default: $)
The JSON that you want to override your default iteration input.
resultPath?
Type:
string
(optional, default: $)
JSONPath expression to indicate where to inject the state's output.
May also be the special value JsonPath.DISCARD, which will cause the state's input to become its output.
resultSelector?
Type:
{ [string]: any }
(optional, default: None)
The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
You can use ResultSelector to create a payload with values that are static or selected from the state's raw result.