Show / Hide Table of Contents

Class CustomWidget

A CustomWidget shows the result of a AWS lambda function.

Inheritance
System.Object
ConcreteWidget
CustomWidget
Implements
IWidget
Inherited Members
ConcreteWidget.CopyMetricWarnings(IMetric[])
ConcreteWidget.Position(Double, Double)
ConcreteWidget.Height
ConcreteWidget.Width
ConcreteWidget.Warnings
ConcreteWidget.X
ConcreteWidget.Y
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class CustomWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class CustomWidget
    Inherits ConcreteWidget
    Implements IWidget
Remarks

ExampleMetadata: infused

Examples
Dashboard dashboard;


// Import or create a lambda function
var fn = Function.FromFunctionArn(dashboard, "Function", "arn:aws:lambda:us-east-1:123456789012:function:MyFn");

dashboard.AddWidgets(new CustomWidget(new CustomWidgetProps {
    FunctionArn = fn.FunctionArn,
    Title = "My lambda baked widget"
}));

Synopsis

Constructors

CustomWidget(ICustomWidgetProps)
CustomWidget(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CustomWidget(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Methods

ToJson()

Return the widget JSON for use in the dashboard.

Constructors

CustomWidget(ICustomWidgetProps)

public CustomWidget(ICustomWidgetProps props)
Parameters
props ICustomWidgetProps

CustomWidget(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CustomWidget(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CustomWidget(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CustomWidget(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Methods

ToJson()

Return the widget JSON for use in the dashboard.

public override object[] ToJson()
Returns

System.Object[]

Overrides
ConcreteWidget.ToJson()

Implements

IWidget
Back to top Generated by DocFX