TextWidgetProps

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

Bases: object

Properties for a Text widget.

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

  • background (Optional[TextWidgetBackground]) – Background for the widget. Default: solid

  • 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

background

Background for the widget.

Default:

solid

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