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.99.0 (build 8f757e4)", date="2024-06-13T18:49:15.837Z") @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());
 
  • Constructor Details

    • CustomWidget

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

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

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