# EventConfigurationProperty

Configuration for event-based logging that specifies which event types to log and their logging settings.

Used for account-level logging overrides.

- Source: Generated at build time
- Type last changed: v2.237.0 · 2 Feb 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const eventConfigurationProperty: iot.CfnLogging.EventConfigurationProperty = {
  eventType: 'eventType',

  // the properties below are optional
  logDestination: 'logDestination',
  logLevel: 'logLevel',
};
```

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_iot as iot

event_configuration_property = iot.CfnLogging.EventConfigurationProperty(
    event_type="eventType",

    # the properties below are optional
    log_destination="logDestination",
    log_level="logLevel"
)
```

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

EventConfigurationProperty eventConfigurationProperty = EventConfigurationProperty.builder()
        .eventType("eventType")

        // the properties below are optional
        .logDestination("logDestination")
        .logLevel("logLevel")
        .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.IoT;

var eventConfigurationProperty = new EventConfigurationProperty {
    EventType = "eventType",

    // the properties below are optional
    LogDestination = "logDestination",
    LogLevel = "logLevel"
};
```

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"

eventConfigurationProperty := &EventConfigurationProperty{
	EventType: jsii.String("eventType"),

	// the properties below are optional
	LogDestination: jsii.String("logDestination"),
	LogLevel: jsii.String("logLevel"),
}
```

## Properties

- `eventType`: string (required) — The type of event to log.

  These include event types like Connect, Publish, and Disconnect.

- `logDestination`: string — CloudWatch Log Group for event-based logging.

  Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.

- `logLevel`: string — The logging level for the specified event type.

  Determines the verbosity of log messages generated for this event type.
