# AggregationConfigurationProperty

An object that contains configuration settings for aggregating events.

- Source: Generated at build time
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudtrail as cloudtrail } from 'aws-cdk-lib';
const aggregationConfigurationProperty: cloudtrail.CfnTrail.AggregationConfigurationProperty = {
  eventCategory: 'eventCategory',
  templates: ['templates'],
};
```

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_cloudtrail as cloudtrail

aggregation_configuration_property = cloudtrail.CfnTrail.AggregationConfigurationProperty(
    event_category="eventCategory",
    templates=["templates"]
)
```

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

AggregationConfigurationProperty aggregationConfigurationProperty = AggregationConfigurationProperty.builder()
        .eventCategory("eventCategory")
        .templates(List.of("templates"))
        .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.CloudTrail;

var aggregationConfigurationProperty = new AggregationConfigurationProperty {
    EventCategory = "eventCategory",
    Templates = new [] { "templates" }
};
```

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"

aggregationConfigurationProperty := &AggregationConfigurationProperty{
	EventCategory: jsii.String("eventCategory"),
	Templates: []*string{
		jsii.String("templates"),
	},
}
```

## Properties

- `eventCategory`: string (required) — Specifies the event category for which aggregation should be performed.

- `templates`: string[] (required) — A list of aggregation templates that can be used to configure event aggregation.
