# ProcessorConfig

Specifies the configuration for the processor Map state.

- Source: [`aws-stepfunctions/lib/types.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions/lib/types.ts#L245)
- Type last changed: v2.147.0 · 20 Jun 2024

## 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

- `executionType`: [ProcessorType](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.ProcessorType.html) — Specifies the execution type for the Map workflow.

  **Default:** no execution type

  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`: [ProcessorMode](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.ProcessorMode.html) — Specifies the execution mode for the Map workflow.

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