java.lang.Object
java.lang.Enum<Level>
software.amazon.awscdk.services.events.Level
All Implemented Interfaces:
Serializable, Comparable<Level>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-22T11:33:06.759Z") @Stability(Stable) public enum Level extends Enum<Level>
The level of logging detail to include.

This applies to all log destinations for the event bus.

Example:

 import software.amazon.awscdk.services.events.EventBus;
 import software.amazon.awscdk.services.events.IncludeDetail;
 import software.amazon.awscdk.services.events.Level;
 EventBus bus = EventBus.Builder.create(this, "Bus")
         .logConfig(LogConfig.builder()
                 .includeDetail(IncludeDetail.FULL)
                 .level(Level.TRACE)
                 .build())
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    ERROR: EventBridge sends any logs related to errors generated during event processing and target delivery.
    INFO: EventBridge sends any logs related to errors, as well as major steps performed during event processing.
    OFF: EventBridge does not send any logs.
    TRACE: EventBridge sends any logs generated during all steps in the event processing.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Level
    Returns the enum constant of this type with the specified name.
    static Level[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INFO

      @Stability(Stable) public static final Level INFO
      INFO: EventBridge sends any logs related to errors, as well as major steps performed during event processing.
    • ERROR

      @Stability(Stable) public static final Level ERROR
      ERROR: EventBridge sends any logs related to errors generated during event processing and target delivery.
    • TRACE

      @Stability(Stable) public static final Level TRACE
      TRACE: EventBridge sends any logs generated during all steps in the event processing.
    • OFF

      @Stability(Stable) public static final Level OFF
      OFF: EventBridge does not send any logs.

      This is the default.

  • Method Details

    • values

      public static Level[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Level valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null