@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:04.249Z") @Stability(value=Experimental) 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()
(experimental) Whether the actions for this alarm are enabled.
|
default String |
getAlarmDescription()
(experimental) Description for the alarm.
|
IAlarmRule |
getAlarmRule()
(experimental) Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.
|
default String |
getCompositeAlarmName()
(experimental) Name of the alarm.
|
@Stability(value=Experimental) @NotNull IAlarmRule getAlarmRule()
@Stability(value=Experimental) @Nullable default Boolean getActionsEnabled()
Default: true
@Stability(value=Experimental) @Nullable default String getAlarmDescription()
Default: No description
@Stability(value=Experimental) @Nullable default String getCompositeAlarmName()
Default: Automatically generated name
@Stability(value=Experimental) static CompositeAlarmProps.Builder builder()
CompositeAlarmProps.Builder of CompositeAlarmPropsCopyright © 2022. All rights reserved.