CloudWatch: Handle new error codes for MetricInsights (#47033)

* CloudWatch: Handle new error codes for MetricInsights

* Changes/test to support case where only the first GetMetricDataOutput returns errors and refactoring

* Fix Potential file inclusion via variable

* Fix gosec 304 by assigning a new variable

* fix goimports issue
This commit is contained in:
Gabriel Santos
2022-04-04 15:44:19 +02:00
committed by GitHub
parent 04d1c4a6d4
commit b5bacce819
6 changed files with 192 additions and 29 deletions
@@ -0,0 +1,8 @@
package cloudwatch
const (
maxMetricsExceeded = "MaxMetricsExceeded"
maxQueryTimeRangeExceeded = "MaxQueryTimeRangeExceeded"
maxQueryResultsExceeded = "MaxQueryResultsExceeded"
maxMatchingResultsExceeded = "MaxMatchingResultsExceeded"
)