Class QueryString

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.QueryString
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:12.523Z") @Stability(Stable) public class QueryString extends software.amazon.jsii.JsiiObject
Define a QueryString.

Example:

 QueryDefinition.Builder.create(this, "QueryDefinition")
         .queryDefinitionName("MyQuery")
         .queryString(QueryString.Builder.create()
                 .fields(List.of("@timestamp", "@message"))
                 .parseStatements(List.of("@message \"[*] *\" as loggingType, loggingMessage", "@message \"<*>: *\" as differentLoggingType, differentLoggingMessage"))
                 .filterStatements(List.of("loggingType = \"ERROR\"", "loggingMessage = \"A very strange error occurred!\""))
                 .sort("@timestamp desc")
                 .limit(20)
                 .build())
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for QueryString.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
     
     
    protected
    QueryString(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    QueryString(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    String representation of this QueryString.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • QueryString

      protected QueryString(software.amazon.jsii.JsiiObjectRef objRef)
    • QueryString

      protected QueryString(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • QueryString

      @Stability(Stable) public QueryString(@Nullable QueryStringProps props)
      Parameters:
      props -
    • QueryString

      @Stability(Stable) public QueryString()
  • Method Details

    • toString

      @Stability(Stable) @NotNull public String toString()
      String representation of this QueryString.
      Overrides:
      toString in class Object