aws-cdk-lib.aws_cloudwatch.Row

class Row

LanguageType name
.NETAmazon.CDK.AWS.CloudWatch.Row
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#Row
Javasoftware.amazon.awscdk.services.cloudwatch.Row
Pythonaws_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

NameTypeDescription
heightnumberThe amount of vertical grid units the widget will take up.
widgetsIWidget[]List of contained widgets.
widthnumberThe 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

NameDescription
addWidget(w)Add the widget to this container.
position(x, y)Place the widget at a given position.
toJson()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.