Class CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogAlarm.ScheduledQueryConfigurationProperty>
- Enclosing interface:
CfnLogAlarm.ScheduledQueryConfigurationProperty
@Stability(Stable)
public static final class CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogAlarm.ScheduledQueryConfigurationProperty>
A builder for
CfnLogAlarm.ScheduledQueryConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationExpression(String aggregationExpression) build()Builds the configured instance.logGroupIdentifiers(List<String> logGroupIdentifiers) Sets the value ofCfnLogAlarm.ScheduledQueryConfigurationProperty.getLogGroupIdentifiers()queryLanguage(String queryLanguage) Sets the value ofCfnLogAlarm.ScheduledQueryConfigurationProperty.getQueryLanguage()queryString(String queryString) Sets the value ofCfnLogAlarm.ScheduledQueryConfigurationProperty.getQueryString()scheduleConfiguration(IResolvable scheduleConfiguration) scheduleConfiguration(CfnLogAlarm.ScheduleConfigurationProperty scheduleConfiguration) scheduledQueryRoleArn(String scheduledQueryRoleArn)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationExpression
@Stability(Stable) public CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder aggregationExpression(String aggregationExpression) - Parameters:
aggregationExpression- The aggregation expression for the scheduled query, e.g. count(*) or avg(latency) by host. This parameter is required.- Returns:
this
-
logGroupIdentifiers
@Stability(Stable) public CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder logGroupIdentifiers(List<String> logGroupIdentifiers) Sets the value ofCfnLogAlarm.ScheduledQueryConfigurationProperty.getLogGroupIdentifiers()- Parameters:
logGroupIdentifiers- The log groups to query. This parameter is required.- Returns:
this
-
queryLanguage
@Stability(Stable) public CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder queryLanguage(String queryLanguage) Sets the value ofCfnLogAlarm.ScheduledQueryConfigurationProperty.getQueryLanguage()- Parameters:
queryLanguage- The query language to use for the scheduled query (CWLI or SQL). This parameter is required.- Returns:
this
-
queryString
@Stability(Stable) public CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder queryString(String queryString) Sets the value ofCfnLogAlarm.ScheduledQueryConfigurationProperty.getQueryString()- Parameters:
queryString- The query string to execute against the specified log groups. This parameter is required.- Returns:
this
-
scheduleConfiguration
@Stability(Stable) public CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder scheduleConfiguration(IResolvable scheduleConfiguration) - Parameters:
scheduleConfiguration- The schedule configuration for the scheduled query. This parameter is required.- Returns:
this
-
scheduleConfiguration
@Stability(Stable) public CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder scheduleConfiguration(CfnLogAlarm.ScheduleConfigurationProperty scheduleConfiguration) - Parameters:
scheduleConfiguration- The schedule configuration for the scheduled query. This parameter is required.- Returns:
this
-
scheduledQueryRoleArn
@Stability(Stable) public CfnLogAlarm.ScheduledQueryConfigurationProperty.Builder scheduledQueryRoleArn(String scheduledQueryRoleArn) - Parameters:
scheduledQueryRoleArn- The ARN of the IAM role that grants permissions to execute the scheduled query. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLogAlarm.ScheduledQueryConfigurationProperty>- Returns:
- a new instance of
CfnLogAlarm.ScheduledQueryConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-