Class CfnQueryDefinitionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnQueryDefinitionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueryDefinitionMixinProps>
- Enclosing interface:
CfnQueryDefinitionMixinProps
@Stability(Stable)
public static final class CfnQueryDefinitionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQueryDefinitionMixinProps>
A builder for
CfnQueryDefinitionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.logGroupNames(List<? extends Object> logGroupNames) Sets the value ofCfnQueryDefinitionMixinProps.getLogGroupNames()Sets the value ofCfnQueryDefinitionMixinProps.getName()parameters(List<? extends Object> parameters) Sets the value ofCfnQueryDefinitionMixinProps.getParameters()parameters(IResolvable parameters) Sets the value ofCfnQueryDefinitionMixinProps.getParameters()queryLanguage(String queryLanguage) Sets the value ofCfnQueryDefinitionMixinProps.getQueryLanguage()queryString(String queryString) Sets the value ofCfnQueryDefinitionMixinProps.getQueryString()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroupNames
@Stability(Stable) public CfnQueryDefinitionMixinProps.Builder logGroupNames(List<? extends Object> logGroupNames) Sets the value ofCfnQueryDefinitionMixinProps.getLogGroupNames()- Parameters:
logGroupNames- Use this parameter if you want the query to query only certain log groups.- Returns:
this
-
name
Sets the value ofCfnQueryDefinitionMixinProps.getName()- Parameters:
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*.- Returns:
this
-
parameters
Sets the value ofCfnQueryDefinitionMixinProps.getParameters()- Parameters:
parameters- Use this parameter to include specific query parameters as part of your query definition. Query parameters are supported only for Logs Insights QL queries. Query parameters allow you to use placeholder variables in your query string that are substituted with values at execution time. Use the {{parameterName}} syntax in your query string to reference a parameter.- Returns:
this
-
parameters
@Stability(Stable) public CfnQueryDefinitionMixinProps.Builder parameters(List<? extends Object> parameters) Sets the value ofCfnQueryDefinitionMixinProps.getParameters()- Parameters:
parameters- Use this parameter to include specific query parameters as part of your query definition. Query parameters are supported only for Logs Insights QL queries. Query parameters allow you to use placeholder variables in your query string that are substituted with values at execution time. Use the {{parameterName}} syntax in your query string to reference a parameter.- Returns:
this
-
queryLanguage
Sets the value ofCfnQueryDefinitionMixinProps.getQueryLanguage()- Parameters:
queryLanguage- The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages .- Returns:
this
-
queryString
Sets the value ofCfnQueryDefinitionMixinProps.getQueryString()- Parameters:
queryString- The query string to use for this query definition. For more information, see CloudWatch Logs Insights Query Syntax .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnQueryDefinitionMixinProps>- Returns:
- a new instance of
CfnQueryDefinitionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-