interface ProcessorConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.ProcessorConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#ProcessorConfig |
Java | software.amazon.awscdk.services.stepfunctions.ProcessorConfig |
Python | aws_cdk.aws_stepfunctions.ProcessorConfig |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions » ProcessorConfig |
Specifies the configuration for the processor Map state.
Example
const map = new sfn.Map(this, 'Map State', {
maxConcurrency: 1,
itemsPath: sfn.JsonPath.stringAt('$.inputForMap'),
itemSelector: {
item: sfn.JsonPath.stringAt('$$.Map.Item.Value'),
},
resultPath: '$.mapOutput',
});
map.itemProcessor(new sfn.Pass(this, 'Pass State'), {
mode: sfn.ProcessorMode.DISTRIBUTED,
executionType: sfn.ProcessorType.STANDARD,
});
Properties
Name | Type | Description |
---|---|---|
execution | Processor | Specifies the execution type for the Map workflow. |
mode? | Processor | Specifies the execution mode for the Map workflow. |
executionType?
Type:
Processor
(optional, default: no execution type)
Specifies the execution type for the Map workflow.
If you use the Map
class, you must provide this field if you specified DISTRIBUTED
for the mode
sub-field.
If you use the DistributedMap
class, this property is ignored.
Use the mapExecutionType
in the DistributedMap
class instead.
mode?
Type:
Processor
(optional, default: ProcessorMode.INLINE if using the Map
class, ProcessorMode.DISTRIBUTED if using the DistributedMap
class)
Specifies the execution mode for the Map workflow.