aws-cdk-lib.aws_applicationinsights.CfnApplication.WindowsEventProperty

interface WindowsEventProperty

LanguageType name
.NETAmazon.CDK.AWS.ApplicationInsights.CfnApplication.WindowsEventProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapplicationinsights#CfnApplication_WindowsEventProperty
Javasoftware.amazon.awscdk.services.applicationinsights.CfnApplication.WindowsEventProperty
Pythonaws_cdk.aws_applicationinsights.CfnApplication.WindowsEventProperty
TypeScript aws-cdk-lib » aws_applicationinsights » CfnApplication » WindowsEventProperty

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

Example

// 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

NameTypeDescription
eventLevelsstring[]The levels of event to log.
eventNamestringThe type of Windows Events to log, equivalent to the Windows Event log channel name.
logGroupNamestringThe CloudWatch log group name to be associated with the monitored log.
patternSet?stringThe log pattern set.

eventLevels

Type: string[]

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

Type: string

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

Type: string

The CloudWatch log group name to be associated with the monitored log.


patternSet?

Type: string (optional)

The log pattern set.