# WindowsEventProperty

The `AWS::ApplicationInsights::Application WindowsEvent` property type specifies a Windows Event to monitor for the component.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const windowsEventProperty: applicationinsights.CfnApplication.WindowsEventProperty = {
  eventLevels: ['eventLevels'],
  eventName: 'eventName',
  logGroupName: 'logGroupName',

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

## Properties

- `eventLevels`: string[] (required) — The levels of event to log.

  You must specify each level to log. Possible values include `INFORMATION` , `WARNING` , `ERROR` , `CRITICAL` , and `VERBOSE` . This field is required for each type of Windows Event to log.

- `eventName`: string (required) — The type of Windows Events to log, equivalent to the Windows Event log channel name.

  For example, System, Security, CustomEventName, and so on. This field is required for each type of Windows event to log.

- `logGroupName`: string (required) — The CloudWatch log group name to be associated with the monitored log.

- `patternSet`: string — The log pattern set.
