class Column
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.Column |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#Column |
Java | software.amazon.awscdk.services.cloudwatch.Column |
Python | aws_cdk.aws_cloudwatch.Column |
TypeScript (source) | aws-cdk-lib » aws_cloudwatch » Column |
Implements
IWidget
A widget that contains other widgets in a vertical column.
Widgets will be laid out next to each other
Example
declare const widgetA: cloudwatch.IWidget;
declare const widgetB: cloudwatch.IWidget;
new cloudwatch.Column(widgetA, widgetB);
Initializer
new Column(...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. |
Widget(w)
addpublic 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.
Json()
topublic toJson(): any[]
Returns
any[]
Return the widget JSON for use in the dashboard.