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