Interface QueryDefinitionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
QueryDefinitionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.131Z") @Stability(Stable) public interface QueryDefinitionProps extends software.amazon.jsii.JsiiSerializable
Properties for a QueryDefinition.

Example:

 QueryDefinition.Builder.create(this, "QueryDefinition")
         .queryDefinitionName("MyQuery")
         .queryString(QueryString.Builder.create()
                 .fields(List.of("@timestamp", "@message"))
                 .sort("@timestamp desc")
                 .limit(20)
                 .build())
         .build();
 
  • Method Details

    • getQueryDefinitionName

      @Stability(Stable) @NotNull String getQueryDefinitionName()
      Name of the query definition.
    • getQueryString

      @Stability(Stable) @NotNull QueryString getQueryString()
      The query string to use for this query definition.
    • getLogGroups

      @Stability(Stable) @Nullable default List<ILogGroup> getLogGroups()
      Specify certain log groups for the query definition.

      Default: - no specified log groups

    • builder

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