Interface QueryDefinitionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
QueryDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:04.295Z")
@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")) .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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forQueryDefinitionProps
static final class
An implementation forQueryDefinitionProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryDefinitionProps.Builder
builder()
Specify certain log groups for the query definition.Name of the query definition.The query string to use for this query definition.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getQueryDefinitionName
Name of the query definition. -
getQueryString
The query string to use for this query definition. -
getLogGroups
Specify certain log groups for the query definition.Default: - no specified log groups
-
builder
- Returns:
- a
QueryDefinitionProps.Builder
ofQueryDefinitionProps
-