interface TextWidgetProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.TextWidgetProps |
Java | software.amazon.awscdk.services.cloudwatch.TextWidgetProps |
Python | aws_cdk.aws_cloudwatch.TextWidgetProps |
TypeScript (source) | @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.

.NET
Java
Python
TypeScript (