Class CfnQueryDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnQueryDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueryDefinition>
- Enclosing class:
CfnQueryDefinition
@Stability(Stable)
public static final class CfnQueryDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQueryDefinition>
A fluent builder for
CfnQueryDefinition
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnQueryDefinition.Builder
logGroupNames
(List<String> logGroupNames) Use this parameter if you want the query to query only certain log groups.A name for the query definition.queryString
(String queryString) The query string to use for this query definition.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnQueryDefinition.Builder
.
-
name
A name for the query definition.- Parameters:
name
- A name for the query definition. This parameter is required.- Returns:
this
-
queryString
The query string to use for this query definition.For more information, see CloudWatch Logs Insights Query Syntax .
- Parameters:
queryString
- The query string to use for this query definition. This parameter is required.- Returns:
this
-
logGroupNames
Use this parameter if you want the query to query only certain log groups.- Parameters:
logGroupNames
- Use this parameter if you want the query to query only certain log groups. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnQueryDefinition>
- Returns:
- a newly built instance of
CfnQueryDefinition
.
-