interface TextWidgetProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudWatch.TextWidgetProps |
![]() | software.amazon.awscdk.services.cloudwatch.TextWidgetProps |
![]() | aws_cdk.aws_cloudwatch.TextWidgetProps |
![]() | @aws-cdk/aws-cloudwatch » TextWidgetProps |
Properties for a Text widget.
Example
declare const dashboard: cloudwatch.Dashboard;
dashboard.addWidgets(new cloudwatch.TextWidget({
markdown: '# Key Performance Indicators'
}));
Properties
Name | Type | Description |
---|---|---|
markdown | string | The text to display, in MarkDown format. |
height? | number | Height of the widget. |
width? | number | Width of the widget, in a grid of 24 units wide. |
markdown
Type:
string
The text to display, in MarkDown format.
height?
Type:
number
(optional, default: 2)
Height of the widget.
width?
Type:
number
(optional, default: 6)
Width of the widget, in a grid of 24 units wide.