@Stability(value=Stable) public static final class CustomWidget.Builder extends Object implements software.amazon.jsii.Builder<CustomWidget>
CustomWidget.| Modifier and Type | Method and Description |
|---|---|
CustomWidget |
build() |
static CustomWidget.Builder |
create() |
CustomWidget.Builder |
functionArn(String functionArn)
The Arn of the AWS Lambda function that returns HTML or JSON that will be displayed in the widget.
|
CustomWidget.Builder |
height(Number height)
Height of the widget.
|
CustomWidget.Builder |
params(Object params)
Parameters passed to the lambda function.
|
CustomWidget.Builder |
title(String title)
The title of the widget.
|
CustomWidget.Builder |
updateOnRefresh(Boolean updateOnRefresh)
Update the widget on refresh.
|
CustomWidget.Builder |
updateOnResize(Boolean updateOnResize)
Update the widget on resize.
|
CustomWidget.Builder |
updateOnTimeRangeChange(Boolean updateOnTimeRangeChange)
Update the widget on time range change.
|
CustomWidget.Builder |
width(Number width)
Width of the widget, in a grid of 24 units wide.
|
@Stability(value=Stable) public static CustomWidget.Builder create()
CustomWidget.Builder.@Stability(value=Stable) public CustomWidget.Builder functionArn(String functionArn)
functionArn - The Arn of the AWS Lambda function that returns HTML or JSON that will be displayed in the widget. This parameter is required.this@Stability(value=Stable) public CustomWidget.Builder title(String title)
title - The title of the widget. This parameter is required.this@Stability(value=Stable) public CustomWidget.Builder height(Number height)
Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
height - Height of the widget. This parameter is required.this@Stability(value=Stable) public CustomWidget.Builder params(Object params)
Default: - no parameters are passed to the lambda function
params - Parameters passed to the lambda function. This parameter is required.this@Stability(value=Stable) public CustomWidget.Builder updateOnRefresh(Boolean updateOnRefresh)
Default: true
updateOnRefresh - Update the widget on refresh. This parameter is required.this@Stability(value=Stable) public CustomWidget.Builder updateOnResize(Boolean updateOnResize)
Default: true
updateOnResize - Update the widget on resize. This parameter is required.this@Stability(value=Stable) public CustomWidget.Builder updateOnTimeRangeChange(Boolean updateOnTimeRangeChange)
Default: true
updateOnTimeRangeChange - Update the widget on time range change. This parameter is required.this@Stability(value=Stable) public CustomWidget.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 CustomWidget build()
build in interface software.amazon.jsii.Builder<CustomWidget>Copyright © 2022. All rights reserved.