# ItemBatcher

Configuration for processing a group of items in a single child workflow execution.

- Source: [`aws-stepfunctions/lib/states/distributed-map/item-batcher.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-stepfunctions/lib/states/distributed-map/item-batcher.ts#L58)
- Type last changed: v2.127.0 · 10 Feb 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';

declare const batchInput: any;
const itemBatcher = new stepfunctions.ItemBatcher({
  batchInput: batchInput,
  maxInputBytesPerBatch: 123,
  maxInputBytesPerBatchPath: 'maxInputBytesPerBatchPath',
  maxItemsPerBatch: 123,
  maxItemsPerBatchPath: 'maxItemsPerBatchPath',
});
```

## Initializer

```ts
new ItemBatcher(props: ItemBatcherProps)
```

## Methods

- `render(): any` — Render ItemBatcher in ASL JSON format.

- `validateItemBatcher(): string[]` — Validate this ItemBatcher.
