Interface AlarmWidgetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,MetricWidgetProps
- All Known Implementing Classes:
AlarmWidgetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:00.768Z")
@Stability(Stable)
public interface AlarmWidgetProps
extends software.amazon.jsii.JsiiSerializable, MetricWidgetProps
Properties for an AlarmWidget.
Example:
Dashboard dashboard;
Alarm errorAlarm;
dashboard.addWidgets(AlarmWidget.Builder.create()
.title("Errors")
.alarm(errorAlarm)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAlarmWidgetPropsstatic final classAn implementation forAlarmWidgetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AlarmWidgetProps.Builderbuilder()getAlarm()The alarm to show.default YAxisPropsLeft Y axis.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.cloudwatch.MetricWidgetProps
getAccountId, getHeight, getRegion, getTitle, getWidth
-
Method Details
-
getAlarm
The alarm to show. -
getLeftYAxis
Left Y axis.Default: - No minimum or maximum values for the left Y-axis
-
builder
- Returns:
- a
AlarmWidgetProps.BuilderofAlarmWidgetProps
-