@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.267Z") @Stability(value=Stable) public interface CompositeAlarmProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CompositeAlarmProps.Builder
A builder for
CompositeAlarmProps |
static class |
CompositeAlarmProps.Jsii$Proxy
An implementation for
CompositeAlarmProps |
| Modifier and Type | Method and Description |
|---|---|
static CompositeAlarmProps.Builder |
builder() |
default Boolean |
getActionsEnabled()
Whether the actions for this alarm are enabled.
|
default String |
getAlarmDescription()
Description for the alarm.
|
IAlarmRule |
getAlarmRule()
Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.
|
default String |
getCompositeAlarmName()
Name of the alarm.
|
@Stability(value=Stable) @NotNull IAlarmRule getAlarmRule()
@Stability(value=Stable) @Nullable default Boolean getActionsEnabled()
Default: true
@Stability(value=Stable) @Nullable default String getAlarmDescription()
Default: No description
@Stability(value=Stable) @Nullable default String getCompositeAlarmName()
Default: Automatically generated name
@Stability(value=Stable) static CompositeAlarmProps.Builder builder()
CompositeAlarmProps.Builder of CompositeAlarmPropsCopyright © 2023. All rights reserved.