Skip to content
v2.274.0

ProcessorConfig Struct ​

Specifies the configuration for the processor Map state.

Example ​

ts
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 ​

executionTypeoptionalProcessorTypeexecution_typeoptionalProcessorTypeexecutionTypeoptionalProcessorTypeExecutionTypeoptionalProcessorTypeExecutionTypeoptionalProcessorType#
Specifies the execution type for the Map workflow.

Default: no execution type

notes

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.

modeoptionalProcessorModemodeoptionalProcessorModemodeoptionalProcessorModeModeoptionalProcessorModeModeoptionalProcessorMode#
Specifies the execution mode for the Map workflow.

Default: ProcessorMode.INLINE if using the Map class, ProcessorMode.DISTRIBUTED if using the DistributedMap class