# ItemBatcherProps

Interface for ItemBatcher configuration properties.

Used as props by: [ItemBatcher](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.ItemBatcher.html)

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

## Example

TypeScript:

```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 itemBatcherProps: stepfunctions.ItemBatcherProps = {
  batchInput: batchInput,
  maxInputBytesPerBatch: 123,
  maxInputBytesPerBatchPath: 'maxInputBytesPerBatchPath',
  maxItemsPerBatch: 123,
  maxItemsPerBatchPath: 'maxItemsPerBatchPath',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions

# batch_input: Any

item_batcher_props = stepfunctions.ItemBatcherProps(
    batch_input=batch_input,
    max_input_bytes_per_batch=123,
    max_input_bytes_per_batch_path="maxInputBytesPerBatchPath",
    max_items_per_batch=123,
    max_items_per_batch_path="maxItemsPerBatchPath"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;

Object batchInput;

ItemBatcherProps itemBatcherProps = ItemBatcherProps.builder()
        .batchInput(batchInput)
        .maxInputBytesPerBatch(123)
        .maxInputBytesPerBatchPath("maxInputBytesPerBatchPath")
        .maxItemsPerBatch(123)
        .maxItemsPerBatchPath("maxItemsPerBatchPath")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;

var batchInput;

var itemBatcherProps = new ItemBatcherProps {
    BatchInput = batchInput,
    MaxInputBytesPerBatch = 123,
    MaxInputBytesPerBatchPath = "maxInputBytesPerBatchPath",
    MaxItemsPerBatch = 123,
    MaxItemsPerBatchPath = "maxItemsPerBatchPath"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var batchInput interface{}

itemBatcherProps := &ItemBatcherProps{
	BatchInput: batchInput,
	MaxInputBytesPerBatch: jsii.Number(123),
	MaxInputBytesPerBatchPath: jsii.String("maxInputBytesPerBatchPath"),
	MaxItemsPerBatch: jsii.Number(123),
	MaxItemsPerBatchPath: jsii.String("maxItemsPerBatchPath"),
}
```

## Properties

- `batchInput`: json — BatchInput.

  **Default:** No batchInput

  Fixed JSON input to include in each batch passed to each child workflow execution

- `maxInputBytesPerBatch`: number — MaxInputBytesPerBatch.

  **Default:** uses value of `maxInputBytesPerBatchPath` as the max size per batch, no limits on the batch size under the 256KB limit if that property was also not provided

  Specifies the maximum number of bytes that each child workflow execution processes, as static number

- `maxInputBytesPerBatchPath`: string — MaxInputBytesPerBatchPath.

  **Default:** uses value of `maxInputBytesPerBatch` as the max size per batch, no limits on the batch size under the 256KB limit if that property was also not provided

  Specifies the maximum number of bytes that each child workflow execution processes, as JsonPath

- `maxItemsPerBatch`: number — MaxItemsPerBatch.

  **Default:** uses value of `maxItemsPerBatchPath` as the max items per batch, no limits on the number of items in a batch under the 256KB limit if that property was also not provided

  Specifies the maximum number of items that each child workflow execution processes, as static number

- `maxItemsPerBatchPath`: string — MaxItemsPerBatchPath.

  **Default:** uses value of `maxItemsPerBatch` as the max items per batch, no limits on the number of items in a batch under the 256KB limit if that property was also not provided

  Specifies the maximum number of items that each child workflow execution processes, as JsonPath
