@Stability(value=Stable) public static final class AlarmStatusWidget.Builder extends Object implements software.amazon.jsii.Builder<AlarmStatusWidget>
AlarmStatusWidget.| Modifier and Type | Method and Description |
|---|---|
AlarmStatusWidget.Builder |
alarms(List<? extends IAlarm> alarms)
CloudWatch Alarms to show in widget.
|
AlarmStatusWidget |
build() |
static AlarmStatusWidget.Builder |
create() |
AlarmStatusWidget.Builder |
height(Number height)
Height of the widget.
|
AlarmStatusWidget.Builder |
sortBy(AlarmStatusWidgetSortBy sortBy)
Specifies how to sort the alarms in the widget.
|
AlarmStatusWidget.Builder |
states(List<? extends AlarmState> states)
Use this field to filter the list of alarms displayed in the widget to only those alarms currently in the specified states.
|
AlarmStatusWidget.Builder |
title(String title)
The title of the widget.
|
AlarmStatusWidget.Builder |
width(Number width)
Width of the widget, in a grid of 24 units wide.
|
@Stability(value=Stable) public static AlarmStatusWidget.Builder create()
AlarmStatusWidget.Builder.@Stability(value=Stable) public AlarmStatusWidget.Builder alarms(List<? extends IAlarm> alarms)
alarms - CloudWatch Alarms to show in widget. This parameter is required.this@Stability(value=Stable) public AlarmStatusWidget.Builder height(Number height)
Default: 3
height - Height of the widget. This parameter is required.this@Stability(value=Stable) public AlarmStatusWidget.Builder sortBy(AlarmStatusWidgetSortBy sortBy)
Default: - alphabetical order
sortBy - Specifies how to sort the alarms in the widget. This parameter is required.this@Stability(value=Stable) public AlarmStatusWidget.Builder states(List<? extends AlarmState> states)
You can specify one or more alarm states in the value for this field. The alarm states that you can specify are ALARM, INSUFFICIENT_DATA, and OK.
If you omit this field or specify an empty array, all the alarms specifed in alarms are displayed.
Default: - all the alarms specified in alarms are displayed.
states - Use this field to filter the list of alarms displayed in the widget to only those alarms currently in the specified states. This parameter is required.this@Stability(value=Stable) public AlarmStatusWidget.Builder title(String title)
Default: 'Alarm Status'
title - The title of the widget. This parameter is required.this@Stability(value=Stable) public AlarmStatusWidget.Builder width(Number width)
Default: 6
width - Width of the widget, in a grid of 24 units wide. This parameter is required.this@Stability(value=Stable) public AlarmStatusWidget build()
build in interface software.amazon.jsii.Builder<AlarmStatusWidget>Copyright © 2022. All rights reserved.