Class CfnQueryDefinitionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnQueryDefinitionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueryDefinitionPropsMixin>
- Enclosing class:
CfnQueryDefinitionPropsMixin
@Stability(Stable)
public static final class CfnQueryDefinitionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQueryDefinitionPropsMixin>
A fluent builder for
CfnQueryDefinitionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) logGroupNames(List<? extends Object> logGroupNames) Use this parameter if you want the query to query only certain log groups.A name for the query definition.queryLanguage(String queryLanguage) The query language used for this query.queryString(String queryString) The query string to use for this query definition.
-
Method Details
-
create
@Stability(Stable) public static CfnQueryDefinitionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnQueryDefinitionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnQueryDefinitionPropsMixin.Builder.
-
logGroupNames
@Stability(Stable) public CfnQueryDefinitionPropsMixin.Builder logGroupNames(List<? extends Object> 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:
-
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:
-
queryLanguage
The query language used for this query.For more information about the query languages that CloudWatch Logs supports, see Supported query languages .
Default: - "CWLI"
- Parameters:
queryLanguage- The query language used for this query. 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:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQueryDefinitionPropsMixin>- Returns:
- a newly built instance of
CfnQueryDefinitionPropsMixin.
-