Class QueryDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.logs.QueryDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<QueryDefinition>
- Enclosing class:
QueryDefinition
@Stability(Stable)
public static final class QueryDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<QueryDefinition>
A fluent builder for
QueryDefinition
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static QueryDefinition.Builder
Specify certain log groups for the query definition.queryDefinitionName
(String queryDefinitionName) Name of the query definition.queryString
(QueryString queryString) The query string to use for this query definition.
-
Method Details
-
create
@Stability(Stable) public static QueryDefinition.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
QueryDefinition.Builder
.
-
queryDefinitionName
Name of the query definition.- Parameters:
queryDefinitionName
- Name of the query definition. This parameter is required.- Returns:
this
-
queryString
The query string to use for this query definition.- Parameters:
queryString
- The query string to use for this query definition. This parameter is required.- Returns:
this
-
logGroups
Specify certain log groups for the query definition.Default: - no specified log groups
- Parameters:
logGroups
- Specify certain log groups for the query definition. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<QueryDefinition>
- Returns:
- a newly built instance of
QueryDefinition
.
-