Interface CompositeAlarmProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CompositeAlarmProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.453Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCompositeAlarmPropsstatic final classAn implementation forCompositeAlarmProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeAlarmProps.Builderbuilder()default BooleanWhether the actions for this alarm are enabled.default IAlarmActions will be suppressed if the suppressor alarm is in the ALARM state.default DurationThe maximum duration that the composite alarm waits after suppressor alarm goes out of the ALARM state.default DurationThe maximum duration that the composite alarm waits for the suppressor alarm to go into the ALARM state.default StringDescription for the alarm.Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.default StringName 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
-
getActionsSuppressor
Actions will be suppressed if the suppressor alarm is in the ALARM state.Default: - alarm will not be suppressed.
-
getActionsSuppressorExtensionPeriod
The maximum duration that the composite alarm waits after suppressor alarm goes out of the ALARM state.After this time, the composite alarm performs its actions.
Default: - 1 minute extension period will be set.
-
getActionsSuppressorWaitPeriod
The maximum duration that the composite alarm waits for the suppressor alarm to go into the ALARM state.After this time, the composite alarm performs its actions.
Default: - 1 minute wait period will be set.
-
getAlarmDescription
Description for the alarm.Default: - No description.
-
getCompositeAlarmName
Name of the alarm.Default: - Automatically generated name.
-
builder
- Returns:
- a
CompositeAlarmProps.BuilderofCompositeAlarmProps
-