# EventBatchingConditionProperty

Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

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

  // the properties below are optional
  batchWindow: 123,
};
```

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_glue as glue

event_batching_condition_property = glue.CfnTrigger.EventBatchingConditionProperty(
    batch_size=123,

    # the properties below are optional
    batch_window=123
)
```

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.glue.*;

EventBatchingConditionProperty eventBatchingConditionProperty = EventBatchingConditionProperty.builder()
        .batchSize(123)

        // the properties below are optional
        .batchWindow(123)
        .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.Glue;

var eventBatchingConditionProperty = new EventBatchingConditionProperty {
    BatchSize = 123,

    // the properties below are optional
    BatchWindow = 123
};
```

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"

eventBatchingConditionProperty := &EventBatchingConditionProperty{
	BatchSize: jsii.Number(123),

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

## Properties

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

- `batchWindow`: number — Window of time in seconds after which EventBridge event trigger fires.

  Window starts when first event is received.
