IWidget

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

Bases: typing_extensions.Protocol

A single dashboard widget.

__init__(*args, **kwargs)

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.

Return type

Union[int, float]

width

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

Return type

Union[int, float]