@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:02.407Z") @Stability(value=Experimental) public interface CustomWidgetProps extends software.amazon.jsii.JsiiSerializable
Example:
Dashboard dashboard;
// Import or create a lambda function
IFunction fn = Function.fromFunctionArn(dashboard, "Function", "arn:aws:lambda:us-east-1:123456789012:function:MyFn");
dashboard.addWidgets(CustomWidget.Builder.create()
.functionArn(fn.getFunctionArn())
.title("My lambda baked widget")
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomWidgetProps.Builder
A builder for
CustomWidgetProps |
static class |
CustomWidgetProps.Jsii$Proxy
An implementation for
CustomWidgetProps |
| Modifier and Type | Method and Description |
|---|---|
static CustomWidgetProps.Builder |
builder() |
String |
getFunctionArn()
(experimental) The Arn of the AWS Lambda function that returns HTML or JSON that will be displayed in the widget.
|
default Number |
getHeight()
(experimental) Height of the widget.
|
default Object |
getParams()
(experimental) Parameters passed to the lambda function.
|
String |
getTitle()
(experimental) The title of the widget.
|
default Boolean |
getUpdateOnRefresh()
(experimental) Update the widget on refresh.
|
default Boolean |
getUpdateOnResize()
(experimental) Update the widget on resize.
|
default Boolean |
getUpdateOnTimeRangeChange()
(experimental) Update the widget on time range change.
|
default Number |
getWidth()
(experimental) Width of the widget, in a grid of 24 units wide.
|
@Stability(value=Experimental) @NotNull String getFunctionArn()
@Stability(value=Experimental) @NotNull String getTitle()
@Stability(value=Experimental) @Nullable default Number getHeight()
Default: - 6 for Alarm and Graph widgets. 3 for single value widgets where most recent value of a metric is displayed.
@Stability(value=Experimental) @Nullable default Object getParams()
Default: - no parameters are passed to the lambda function
@Stability(value=Experimental) @Nullable default Boolean getUpdateOnRefresh()
Default: true
@Stability(value=Experimental) @Nullable default Boolean getUpdateOnResize()
Default: true
@Stability(value=Experimental) @Nullable default Boolean getUpdateOnTimeRangeChange()
Default: true
@Stability(value=Experimental) @Nullable default Number getWidth()
Default: 6
@Stability(value=Experimental) static CustomWidgetProps.Builder builder()
CustomWidgetProps.Builder of CustomWidgetPropsCopyright © 2022. All rights reserved.