Enum LogQueryLanguage

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

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-02T11:25:28.111Z") @Stability(Stable) public enum LogQueryLanguage extends Enum<LogQueryLanguage>
Logs Query Language.

Example:

 Dashboard dashboard;
 dashboard.addWidgets(LogQueryWidget.Builder.create()
         .logGroupNames(List.of("my-log-group"))
         .view(LogQueryVisualizationType.TABLE)
         .queryString("SELECT count(*) as count FROM 'my-log-group'")
         .queryLanguage(LogQueryLanguage.SQL)
         .build());
 
  • Enum Constant Details

    • LOGS_INSIGHTS

      @Stability(Stable) public static final LogQueryLanguage LOGS_INSIGHTS
      Logs Insights QL.
    • SQL

      @Stability(Stable) public static final LogQueryLanguage SQL
      OpenSearch SQL.
    • PPL

      @Stability(Stable) public static final LogQueryLanguage PPL
      OpenSearch PPL.
  • Method Details

    • values

      public static LogQueryLanguage[] 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 LogQueryLanguage 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