Interface CompositeAlarmProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CompositeAlarmProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.854Z")
@Stability(Stable)
public interface CompositeAlarmProps
extends software.amazon.jsii.JsiiSerializable
Properties for creating a Composite Alarm.
Example:
Alarm alarm1; Alarm alarm2; Alarm alarm3; Alarm alarm4; IAlarmRule alarmRule = AlarmRule.anyOf(AlarmRule.allOf(AlarmRule.anyOf(alarm1, AlarmRule.fromAlarm(alarm2, AlarmState.OK), alarm3), AlarmRule.not(AlarmRule.fromAlarm(alarm4, AlarmState.INSUFFICIENT_DATA))), AlarmRule.fromBoolean(false)); CompositeAlarm.Builder.create(this, "MyAwesomeCompositeAlarm") .alarmRule(alarmRule) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCompositeAlarmProps
static final class
An implementation forCompositeAlarmProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeAlarmProps.Builder
builder()
default Boolean
Whether the actions for this alarm are enabled.default String
Description for the alarm.Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.default String
Name of the alarm.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlarmRule
Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. -
getActionsEnabled
Whether the actions for this alarm are enabled.Default: true
-
getAlarmDescription
Description for the alarm.Default: No description
-
getCompositeAlarmName
Name of the alarm.Default: Automatically generated name
-
builder
- Returns:
- a
CompositeAlarmProps.Builder
ofCompositeAlarmProps
-