Interface CfnApplication.WindowsEventProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnApplication.WindowsEventProperty.Jsii$Proxy
Enclosing class:
CfnApplication

@Stability(Stable) public static interface CfnApplication.WindowsEventProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.applicationinsights.*;
 WindowsEventProperty windowsEventProperty = WindowsEventProperty.builder()
         .eventLevels(List.of("eventLevels"))
         .eventName("eventName")
         .logGroupName("logGroupName")
         // the properties below are optional
         .patternSet("patternSet")
         .build();
 
  • Method Details

    • getEventLevels

      @Stability(Stable) @NotNull List<String> getEventLevels()
      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.

    • getEventName

      @Stability(Stable) @NotNull String getEventName()
      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.

    • getLogGroupName

      @Stability(Stable) @NotNull String getLogGroupName()
      The CloudWatch log group name to be associated with the monitored log.
    • getPatternSet

      @Stability(Stable) @Nullable default String getPatternSet()
      The log pattern set.
    • builder

      @Stability(Stable) static CfnApplication.WindowsEventProperty.Builder builder()
      Returns:
      a CfnApplication.WindowsEventProperty.Builder of CfnApplication.WindowsEventProperty