# EventBatchingCondition

Represents event trigger batch condition.

- Source: [`aws-glue/lib/triggers/trigger-options.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-glue/lib/triggers/trigger-options.ts#L295)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_glue as glue } from 'aws-cdk-lib';
const eventBatchingCondition: glue.EventBatchingCondition = {
  batchSize: 123,

  // the properties below are optional
  batchWindow: cdk.Duration.minutes(30),
};
```

Python:

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

event_batching_condition = glue.EventBatchingCondition(
    batch_size=123,

    # the properties below are optional
    batch_window=cdk.Duration.minutes(30)
)
```

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.*;
import software.amazon.awscdk.services.glue.*;

EventBatchingCondition eventBatchingCondition = EventBatchingCondition.builder()
        .batchSize(123)

        // the properties below are optional
        .batchWindow(Duration.minutes(30))
        .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;
using Amazon.CDK.AWS.Glue;

var eventBatchingCondition = new EventBatchingCondition {
    BatchSize = 123,

    // the properties below are optional
    BatchWindow = Duration.Minutes(30)
};
```

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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

eventBatchingCondition := &EventBatchingCondition{
	BatchSize: jsii.Number(123),

	// the properties below are optional
	BatchWindow: cdk.Duration_Minutes(jsii.Number(30)),
}
```

## Properties

- `batchSize`: number (required) — Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.

- `batchWindow`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — Window of time in seconds after which EventBridge event trigger fires.

  **Default:** 900 seconds
