IWidget

class aws_cdk.aws_cloudwatch.IWidget(*args, **kwargs)

Bases: Protocol

A single dashboard widget.

Methods

position(x, y)

Place the widget at a given position.

Parameters:
  • x (Union[int, float]) –

  • y (Union[int, float]) –

Return type:

None

to_json()

Return the widget JSON for use in the dashboard.

Return type:

List[Any]

Attributes

height

The amount of vertical grid units the widget will take up.

warnings

(deprecated) Any warnings that are produced as a result of putting together this widget.

Deprecated:
  • use warningsV2

Stability:

deprecated

warnings_v2

Any warnings that are produced as a result of putting together this widget.

width

The amount of horizontal grid units the widget will take up.