class Row
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.Row |
Java | software.amazon.awscdk.services.cloudwatch.Row |
Python | aws_cdk.aws_cloudwatch.Row |
TypeScript (source) | @aws-cdk/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
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
declare const widget: cloudwatch.IWidget;
const row = new cloudwatch.Row(widget);
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 |
---|---|
position(x, y) | Place the widget at a given position. |
to | Return the widget JSON for use in the dashboard. |
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.