interface DistributedMapProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.StepFunctions.DistributedMapProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#DistributedMapProps |
![]() | software.amazon.awscdk.services.stepfunctions.DistributedMapProps |
![]() | aws_cdk.aws_stepfunctions.DistributedMapProps |
![]() | aws-cdk-lib » aws_stepfunctions » DistributedMapProps |
Properties for configuring a Distribute Map state.
Example
/**
* JSON state input:
* {
* "bucketName": "my-bucket",
* "prefix": "item"
* }
*/
const distributedMap = new sfn.DistributedMap(this, 'DistributedMap', {
itemReader: new sfn.S3ObjectsItemReader({
bucketNamePath: sfn.JsonPath.stringAt('$.bucketName'),
prefix: sfn.JsonPath.stringAt('$.prefix'),
}),
});
distributedMap.itemProcessor(new sfn.Pass(this, 'Pass'));
Properties
Name | Type | Description |
---|---|---|
assign? | { [string]: any } | Workflow variables to store in this step. |
comment? | string | A comment describing this state. |
input | string | JSONPath expression to select part of the state to be the input to this state. |
item | Item | Specifies to process a group of items in a single child workflow execution. |
item | IItem | ItemReader. |
item | { [string]: any } | The JSON that you want to override your default iteration input (mutually exclusive with parameters ). |
items? | Provide | The array that the Map state will iterate over. |
items | string | JSONPath expression to select the array to iterate over. |
label? | string | Label. |
map | State | MapExecutionType. |
max | number | MaxConcurrency. |
max | string | MaxConcurrencyPath. |
output | string | JSONPath expression to select part of the state to be the output to this state. |
outputs? | any | Used to specify and transform output from the state. |
query | Query | The name of the query language used by the state. |
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. |
result | Result | Configuration for S3 location in which to save Map Run results. |
state | string | Optional name for this state. |
tolerated | number | ToleratedFailureCount. |
tolerated | string | ToleratedFailureCountPath. |
tolerated | number | ToleratedFailurePercentage. |
tolerated | string | ToleratedFailurePercentagePath. |
assign?
Type:
{ [string]: any }
(optional, default: Not assign variables)
Workflow variables to store in this step.
Using workflow variables, you can store data in a step and retrieve that data in future steps.
comment?
Type:
string
(optional, default: No comment)
A comment describing 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 {}.
itemBatcher?
Type:
Item
(optional, default: No itemBatcher)
Specifies to process a group of items in a single child workflow execution.
itemReader?
Type:
IItem
(optional, default: No itemReader)
ItemReader.
Configuration for where to read items dataset in S3 to iterate
itemSelector?
Type:
{ [string]: any }
(optional, default: $)
The JSON that you want to override your default iteration input (mutually exclusive with parameters
).
items?
Type:
Provide
(optional, default: The state input as is.)
The array that the Map state will iterate over.
itemsPath?
Type:
string
(optional, default: $)
JSONPath expression to select the array to iterate over.
label?
Type:
string
(optional, default: No label)
Label.
Unique name for the Distributed Map state added to each Map Run
mapExecutionType?
Type:
State
(optional, default: StateMachineType.STANDARD)
MapExecutionType.
The execution type of the distributed map state
This property overwrites ProcessorConfig.executionType
maxConcurrency?
Type:
number
(optional, default: full concurrency)
MaxConcurrency.
An upper bound on the number of iterations you want running at once.
maxConcurrencyPath?
Type:
string
(optional, default: full concurrency)
MaxConcurrencyPath.
A JsonPath that specifies the maximum concurrency dynamically from the state input.
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 {}.
outputs?
Type:
any
(optional, default: $states.result or $states.errorOutput)
Used to specify and transform output from the state.
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.
queryLanguage?
Type:
Query
(optional, default: 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.
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.
resultWriter?
Type:
Result
(optional, default: No resultWriter)
Configuration for S3 location in which to save Map Run results.
stateName?
Type:
string
(optional, default: The construct ID will be used as state name)
Optional name for this state.
toleratedFailureCount?
Type:
number
(optional, default: No toleratedFailureCount)
ToleratedFailureCount.
Number of failed items to tolerate in a Map Run, as static number
toleratedFailureCountPath?
Type:
string
(optional, default: No toleratedFailureCountPath)
ToleratedFailureCountPath.
Number of failed items to tolerate in a Map Run, as JsonPath
toleratedFailurePercentage?
Type:
number
(optional, default: No toleratedFailurePercentage)
ToleratedFailurePercentage.
Percentage of failed items to tolerate in a Map Run, as static number
toleratedFailurePercentagePath?
Type:
string
(optional, default: No toleratedFailurePercentagePath)
ToleratedFailurePercentagePath.
Percentage of failed items to tolerate in a Map Run, as JsonPath