interface TextWidgetProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.TextWidgetProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#TextWidgetProps |
Java | software.amazon.awscdk.services.cloudwatch.TextWidgetProps |
Python | aws_cdk.aws_cloudwatch.TextWidgetProps |
TypeScript (source) | aws-cdk-lib » 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. |
| background? | Text | Background for the widget. |
| 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.
background?
Type:
Text
(optional, default: solid)
Background for the widget.
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
Go
Java
Python
TypeScript (