CloudWatch: Backport aws-sdk-go-v2 update from external plugin (#107136)

* CloudWatch: Backport aws-sdk-go-v2 update from external plugin

* Review feedback & cleaning up a couple typos
This commit is contained in:
Nathan Vērzemnieks
2025-06-26 15:56:50 +02:00
committed by GitHub
parent 069598c454
commit a18ea34688
91 changed files with 2468 additions and 2988 deletions
@@ -6,11 +6,11 @@ import (
"strconv"
)
const defaultLogGroupLimit = int64(50)
const defaultLogGroupLimit = int32(50)
type LogGroupsRequest struct {
ResourceRequest
Limit int64
Limit int32
LogGroupNamePrefix, LogGroupNamePattern *string
ListAllLogGroups bool
}
@@ -45,11 +45,11 @@ func setIfNotEmptyString(paramValue string) *string {
return &paramValue
}
func getLimit(limit string) int64 {
func getLimit(limit string) int32 {
logGroupLimit := defaultLogGroupLimit
intLimit, err := strconv.ParseInt(limit, 10, 64)
intLimit, err := strconv.ParseInt(limit, 10, 32)
if err == nil && intLimit > 0 {
logGroupLimit = intLimit
logGroupLimit = int32(intLimit)
}
return logGroupLimit
}