Skip to content

(cloudwatch): Row class to use list of widgets #18466

@TomaszSzusterTR

Description

@TomaszSzusterTR

Description

Can class Row accepts list of widgets or maybe implement a method for adding new widgets?

Now we need to explicitly write all widgets when defining a new row as below:
cloudwatch.Row(widget1, widget2, widgetN)

Use Case

To generate widgets in a loop and add them in batch in a programmatic way.

Proposed Solution

Thus there is no option to add a generated list of widgets or add widgets in a loop

  • cloudwatch.Row(widget_list=[])
  • cloudwatch.Row().add_widget(widget)

Other information

No response

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudwatchRelated to Amazon CloudWatcheffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions