Class CustomWidget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.ConcreteWidget
software.amazon.awscdk.services.cloudwatch.CustomWidget
- All Implemented Interfaces:
IWidget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:54.781Z")
@Stability(Stable)
public class CustomWidget
extends ConcreteWidget
A CustomWidget shows the result of a AWS lambda function.
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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudwatch.IWidget
IWidget.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionCustomWidget
(CustomWidgetProps props) protected
CustomWidget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CustomWidget
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.cloudwatch.ConcreteWidget
copyMetricWarnings, getHeight, getWarnings, getWarningsV2, getWidth, getX, getY, position, setX, setY
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CustomWidget
protected CustomWidget(software.amazon.jsii.JsiiObjectRef objRef) -
CustomWidget
protected CustomWidget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CustomWidget
- Parameters:
props
- This parameter is required.
-
-
Method Details
-
toJson
Return the widget JSON for use in the dashboard.- Specified by:
toJson
in interfaceIWidget
- Specified by:
toJson
in classConcreteWidget
-