powertools-lambda-python icon indicating copy to clipboard operation
powertools-lambda-python copied to clipboard

Feature request: Event Source Data Class for CloudWatch custom connector

Open corey-cole opened this issue 2 years ago • 4 comments

Use case

CloudWatch metrics/alarms now support non-CloudWatch sources via an adapter Lambda function. The request/response structures are complex enough that they would benefit from having a strongly typed wrapper.

Solution/User Experience

The aws_lambda_powertools.utilities.data_classes namespace includes type for the new GetMetricData event and the corresponding MetricDataResults response.

NOTE: Although the event shares a name with an existing API call, it does not have the same structure and the existing definitions cannot be used here.

Alternative solutions

N/A

Acknowledgment

corey-cole avatar Dec 13 '23 15:12 corey-cole

Thank you so much for opening this @corey-cole ! Would you like to take a stab at the implementation, and open a PR? We can of course help you out!

rubenfonseca avatar Dec 13 '23 16:12 rubenfonseca

Hello everyone! This feature is not planned for v2. We will add support for this after we release v3.

Adding tags to keep an eye on this.

leandrodamascena avatar Aug 11 '24 22:08 leandrodamascena

Closing this issue as it's been open for a while now, and we didn't have much customer feedback. Please open a new one if it's still an issue.

anafalcao avatar Jan 24 '25 11:01 anafalcao

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jan 24 '25 11:01 github-actions[bot]