aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.68k stars 3.93k forks source link

(cloudwatch): allow period override on LogQueryWidget #32132

Open straygar opened 1 day ago

straygar commented 1 day ago

Describe the feature

Allow overriding the default period on a LogQueryWidget.

This is possible on GraphWidget but not on LogQueryWidget. (there are in fact quite a few props other that don't exist on LogQueryWidget).

Use Case

I want to run a Logs Insights query over a large time period, ignoring whatever the global setting is in the dashboard.

Proposed Solution

Extend LogQueryWidget with those of GraphWidget.

Other Information

No response

Acknowledgements

CDK version used

2.166.0

Environment details (OS name and version, etc.)

MacOS

khushail commented 23 hours ago

Hi @straygar , thanks for reaching out. Yes, the LogQueryWidgetProps does not have the Period property as of now so you can not overrride the period value. Although it would be good to have the missing properties as compared to GraphWidgetPropsI am marking this request as P2 which would mean it won't be immediately addressed by the team but would be on their radar. Also its open for community contribution.