Class AlarmStatusWidget

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.ConcreteWidget
software.amazon.awscdk.services.cloudwatch.AlarmStatusWidget
All Implemented Interfaces:
IWidget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:23:58.458Z") @Stability(Stable) public class AlarmStatusWidget extends ConcreteWidget
A dashboard widget that displays alarms in a grid view.

Example:

 Dashboard dashboard;
 Alarm errorAlarm;
 dashboard.addWidgets(
 AlarmStatusWidget.Builder.create()
         .alarms(List.of(errorAlarm))
         .build());
 
  • Constructor Details

    • AlarmStatusWidget

      protected AlarmStatusWidget(software.amazon.jsii.JsiiObjectRef objRef)
    • AlarmStatusWidget

      protected AlarmStatusWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • AlarmStatusWidget

      @Stability(Stable) public AlarmStatusWidget(@NotNull AlarmStatusWidgetProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • position

      @Stability(Stable) public void position(@NotNull Number x, @NotNull Number y)
      Place the widget at a given position.

      Specified by:
      position in interface IWidget
      Overrides:
      position in class ConcreteWidget
      Parameters:
      x - This parameter is required.
      y - This parameter is required.
    • toJson

      @Stability(Stable) @NotNull public List<Object> toJson()
      Return the widget JSON for use in the dashboard.
      Specified by:
      toJson in interface IWidget
      Specified by:
      toJson in class ConcreteWidget