@Stability(value=Stable) public static final class CfnCompositeAlarmProps.Builder extends Object implements software.amazon.jsii.Builder<CfnCompositeAlarmProps>
CfnCompositeAlarmProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnCompositeAlarmProps.Builder alarmRule(String alarmRule)
CfnCompositeAlarmProps.getAlarmRule()alarmRule - An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. This parameter is required.
For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the functions in your expression.
You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.
Functions can include the following:
TRUE and FALSE are useful for testing a complex AlarmRule structure, and for testing your alarm actions.
For more information about AlarmRule syntax, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder actionsEnabled(Boolean actionsEnabled)
CfnCompositeAlarmProps.getActionsEnabled()actionsEnabled - Indicates whether actions should be executed during any changes to the alarm state of the composite alarm.
The default is TRUE.this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder actionsEnabled(IResolvable actionsEnabled)
CfnCompositeAlarmProps.getActionsEnabled()actionsEnabled - Indicates whether actions should be executed during any changes to the alarm state of the composite alarm.
The default is TRUE.this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder actionsSuppressor(String actionsSuppressor)
CfnCompositeAlarmProps.getActionsSuppressor()actionsSuppressor - Actions will be suppressed if the suppressor alarm is in the `ALARM` state.
ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder actionsSuppressorExtensionPeriod(Number actionsSuppressorExtensionPeriod)
CfnCompositeAlarmProps.getActionsSuppressorExtensionPeriod()actionsSuppressorExtensionPeriod - The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the `ALARM` state.
After this time, the composite alarm performs its actions.
ExtensionPeriodis required only whenActionsSuppressoris specified.
this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder actionsSuppressorWaitPeriod(Number actionsSuppressorWaitPeriod)
CfnCompositeAlarmProps.getActionsSuppressorWaitPeriod()actionsSuppressorWaitPeriod - The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the `ALARM` state.
After this time, the composite alarm performs its actions.
WaitPeriodis required only whenActionsSuppressoris specified.
this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder alarmActions(List<String> alarmActions)
CfnCompositeAlarmProps.getAlarmActions()alarmActions - The actions to execute when this alarm transitions to the ALARM state from any other state.
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder alarmDescription(String alarmDescription)
CfnCompositeAlarmProps.getAlarmDescription()alarmDescription - The description for the composite alarm.this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder alarmName(String alarmName)
CfnCompositeAlarmProps.getAlarmName()alarmName - The name for the composite alarm.
This name must be unique within your AWS account.this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder insufficientDataActions(List<String> insufficientDataActions)
CfnCompositeAlarmProps.getInsufficientDataActions()insufficientDataActions - The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .this@Stability(value=Stable) public CfnCompositeAlarmProps.Builder okActions(List<String> okActions)
CfnCompositeAlarmProps.getOkActions()okActions - The actions to execute when this alarm transitions to the OK state from any other state.
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .this@Stability(value=Stable) public CfnCompositeAlarmProps build()
build in interface software.amazon.jsii.Builder<CfnCompositeAlarmProps>CfnCompositeAlarmPropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.