Class CfnLogAlarmMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnLogAlarmMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogAlarmMixinProps>
- Enclosing interface:
CfnLogAlarmMixinProps
@Stability(Stable)
public static final class CfnLogAlarmMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogAlarmMixinProps>
A builder for
CfnLogAlarmMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionLogLineCount(Number actionLogLineCount) Sets the value ofCfnLogAlarmMixinProps.getActionLogLineCount()actionLogLineRoleArn(String actionLogLineRoleArn) Sets the value ofCfnLogAlarmMixinProps.getActionLogLineRoleArn()actionsEnabled(Boolean actionsEnabled) Sets the value ofCfnLogAlarmMixinProps.getActionsEnabled()actionsEnabled(IResolvable actionsEnabled) Sets the value ofCfnLogAlarmMixinProps.getActionsEnabled()alarmActions(List<String> alarmActions) Sets the value ofCfnLogAlarmMixinProps.getAlarmActions()alarmDescription(String alarmDescription) Sets the value ofCfnLogAlarmMixinProps.getAlarmDescription()Sets the value ofCfnLogAlarmMixinProps.getAlarmName()build()Builds the configured instance.comparisonOperator(String comparisonOperator) Sets the value ofCfnLogAlarmMixinProps.getComparisonOperator()insufficientDataActions(List<String> insufficientDataActions) Sets the value ofCfnLogAlarmMixinProps.getInsufficientDataActions()Sets the value ofCfnLogAlarmMixinProps.getOkActions()queryResultsToAlarm(Number queryResultsToAlarm) Sets the value ofCfnLogAlarmMixinProps.getQueryResultsToAlarm()queryResultsToEvaluate(Number queryResultsToEvaluate) Sets the value ofCfnLogAlarmMixinProps.getQueryResultsToEvaluate()scheduledQueryConfiguration(CfnLogAlarmPropsMixin.ScheduledQueryConfigurationProperty scheduledQueryConfiguration) Sets the value ofCfnLogAlarmMixinProps.getScheduledQueryConfiguration()scheduledQueryConfiguration(IResolvable scheduledQueryConfiguration) Sets the value ofCfnLogAlarmMixinProps.getScheduledQueryConfiguration()Sets the value ofCfnLogAlarmMixinProps.getTags()Sets the value ofCfnLogAlarmMixinProps.getThreshold()treatMissingData(String treatMissingData) Sets the value ofCfnLogAlarmMixinProps.getTreatMissingData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionLogLineCount
@Stability(Stable) public CfnLogAlarmMixinProps.Builder actionLogLineCount(Number actionLogLineCount) Sets the value ofCfnLogAlarmMixinProps.getActionLogLineCount()- Parameters:
actionLogLineCount- The number of log lines to include in alarm notifications. Valid values are 0 to 50.- Returns:
this
-
actionLogLineRoleArn
@Stability(Stable) public CfnLogAlarmMixinProps.Builder actionLogLineRoleArn(String actionLogLineRoleArn) Sets the value ofCfnLogAlarmMixinProps.getActionLogLineRoleArn()- Parameters:
actionLogLineRoleArn- The ARN of the IAM role that grants CloudWatch permissions to fetch log lines for alarm notifications. Required when ActionLogLineCount is greater than 0.- Returns:
this
-
actionsEnabled
Sets the value ofCfnLogAlarmMixinProps.getActionsEnabled()- Parameters:
actionsEnabled- Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.- Returns:
this
-
actionsEnabled
Sets the value ofCfnLogAlarmMixinProps.getActionsEnabled()- Parameters:
actionsEnabled- Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.- Returns:
this
-
alarmActions
Sets the value ofCfnLogAlarmMixinProps.getAlarmActions()- Parameters:
alarmActions- The list of actions to execute when this alarm transitions into an ALARM state from any other state.- Returns:
this
-
alarmDescription
Sets the value ofCfnLogAlarmMixinProps.getAlarmDescription()- Parameters:
alarmDescription- The description of the log alarm.- Returns:
this
-
alarmName
Sets the value ofCfnLogAlarmMixinProps.getAlarmName()- Parameters:
alarmName- The name of the log alarm.- Returns:
this
-
comparisonOperator
@Stability(Stable) public CfnLogAlarmMixinProps.Builder comparisonOperator(String comparisonOperator) Sets the value ofCfnLogAlarmMixinProps.getComparisonOperator()- Parameters:
comparisonOperator- The arithmetic operation to use when comparing the specified threshold and the query results. Valid values are GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, and LessThanOrEqualToThreshold.- Returns:
this
-
insufficientDataActions
@Stability(Stable) public CfnLogAlarmMixinProps.Builder insufficientDataActions(List<String> insufficientDataActions) Sets the value ofCfnLogAlarmMixinProps.getInsufficientDataActions()- Parameters:
insufficientDataActions- The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.- Returns:
this
-
okActions
Sets the value ofCfnLogAlarmMixinProps.getOkActions()- Parameters:
okActions- The actions to execute when this alarm transitions to the OK state from any other state.- Returns:
this
-
queryResultsToAlarm
@Stability(Stable) public CfnLogAlarmMixinProps.Builder queryResultsToAlarm(Number queryResultsToAlarm) Sets the value ofCfnLogAlarmMixinProps.getQueryResultsToAlarm()- Parameters:
queryResultsToAlarm- The number of query results that must be breaching to trigger the alarm.- Returns:
this
-
queryResultsToEvaluate
@Stability(Stable) public CfnLogAlarmMixinProps.Builder queryResultsToEvaluate(Number queryResultsToEvaluate) Sets the value ofCfnLogAlarmMixinProps.getQueryResultsToEvaluate()- Parameters:
queryResultsToEvaluate- The number of query results over which data is compared to the specified threshold.- Returns:
this
-
scheduledQueryConfiguration
@Stability(Stable) public CfnLogAlarmMixinProps.Builder scheduledQueryConfiguration(IResolvable scheduledQueryConfiguration) Sets the value ofCfnLogAlarmMixinProps.getScheduledQueryConfiguration()- Parameters:
scheduledQueryConfiguration- The scheduled query configuration for the log alarm.- Returns:
this
-
scheduledQueryConfiguration
@Stability(Stable) public CfnLogAlarmMixinProps.Builder scheduledQueryConfiguration(CfnLogAlarmPropsMixin.ScheduledQueryConfigurationProperty scheduledQueryConfiguration) Sets the value ofCfnLogAlarmMixinProps.getScheduledQueryConfiguration()- Parameters:
scheduledQueryConfiguration- The scheduled query configuration for the log alarm.- Returns:
this
-
tags
Sets the value ofCfnLogAlarmMixinProps.getTags()- Parameters:
tags- A list of key-value pairs to associate with the log alarm.- Returns:
this
-
threshold
Sets the value ofCfnLogAlarmMixinProps.getThreshold()- Parameters:
threshold- The value to compare against the results of the scheduled query evaluation.- Returns:
this
-
treatMissingData
Sets the value ofCfnLogAlarmMixinProps.getTreatMissingData()- Parameters:
treatMissingData- Sets how this alarm is to handle missing data points. Valid values are breaching, notBreaching, ignore, and missing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLogAlarmMixinProps>- Returns:
- a new instance of
CfnLogAlarmMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-