TextWidgetProps

class aws_cdk.aws_cloudwatch.TextWidgetProps(*, markdown, height=None, width=None)

Bases: object

Properties for a Text widget.

Parameters:
  • markdown (str) – The text to display, in MarkDown format.

  • height (Union[int, float, None]) – Height of the widget. Default: 2

  • width (Union[int, float, None]) – Width of the widget, in a grid of 24 units wide. Default: 6

ExampleMetadata:

infused

Example:

# dashboard: cloudwatch.Dashboard


dashboard.add_widgets(cloudwatch.TextWidget(
    markdown="# Key Performance Indicators"
))

Attributes

height

Height of the widget.

Default:

2

markdown

The text to display, in MarkDown format.

width

Width of the widget, in a grid of 24 units wide.

Default:

6