aws-cdk-lib.aws_cloudwatch.Column

class Column

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

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.