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.BuilderlogGroupNames(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
@Stability(Stable) public static CfnQueryDefinition.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnQueryDefinition.Builder.
-
name
A name for the query definition.You can use the name to create a folder structure for your queries. To create a folder, use a forward slash (/) to prefix your desired query name with your desired folder name. For example,
*folder-name* / *query-name*.- Parameters:
name- A name for the query definition. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
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- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQueryDefinition>- Returns:
- a newly built instance of
CfnQueryDefinition.
-