class Row
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.Row |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#Row |
Java | software.amazon.awscdk.services.cloudwatch.Row |
Python | aws_cdk.aws_cloudwatch.Row |
TypeScript (source) | aws-cdk-lib » aws_cloudwatch » Row |
Implements
IWidget
A widget that contains other widgets in a horizontal row.
Widgets will be laid out next to each other
Example
declare const widgetA: cloudwatch.IWidget;
declare const widgetB: cloudwatch.IWidget;
new cloudwatch.Row(widgetA, widgetB);
Initializer
new Row(...widgets: IWidget[])
Parameters
- widgets
IWidget
Properties
| Name | Type | Description |
|---|---|---|
| height | number | The amount of vertical grid units the widget will take up. |
| widgets | IWidget[] | List of contained widgets. |
| width | number | The amount of horizontal grid units the widget will take up. |
height
Type:
number
The amount of vertical grid units the widget will take up.
widgets
Type:
IWidget[]
List of contained widgets.
width
Type:
number
The amount of horizontal grid units the widget will take up.
Methods
| Name | Description |
|---|---|
| add | Add the widget to this container. |
| position(x, y) | Place the widget at a given position. |
| to | Return the widget JSON for use in the dashboard. |
addWidget(w)
public addWidget(w: IWidget): void
Parameters
- w
IWidget
Add the widget to this container.
position(x, y)
public position(x: number, y: number): void
Parameters
- x
number - y
number
Place the widget at a given position.
toJson()
public toJson(): any[]
Returns
any[]
Return the widget JSON for use in the dashboard.

.NET
Go
Java
Python
TypeScript (