Update aws-sdk-go-v2 monorepo to v1.76.0

Signed-off-by: Mend Renovate <bot@renovateapp.com>
This commit is contained in:
Mend Renovate
2026-06-18 19:36:40 +00:00
parent 19e5ed711a
commit dd1688ac98
15 changed files with 142 additions and 13 deletions

View File

@@ -1,3 +1,7 @@
# v1.76.0 (2026-06-15)
* **Feature**: Added endTimeOffset parameter to Scheduled Queries APIs (Create, Update, Get) enabling bounded time window configuration. Introduced scheduleType filter (CUSTOMER MANAGED, AWS MANAGED) for ListScheduledQueries and exposed it in Get and Update responses.
# v1.75.2 (2026-06-08)
* **Dependency Update**: Updated to the latest SDK module versions

View File

@@ -40,8 +40,7 @@ type CreateScheduledQueryInput struct {
ExecutionRoleArn *string
// The name of the scheduled query. The name must be unique within your account
// and region. Valid characters are alphanumeric characters, hyphens, underscores,
// and periods. Length must be between 1 and 255 characters.
// and region. Length must be between 1 and 300 characters.
//
// This member is required.
Name *string
@@ -73,6 +72,11 @@ type CreateScheduledQueryInput struct {
// destinations for storing query output.
DestinationConfiguration *types.DestinationConfiguration
// The time offset in seconds that defines the end of the lookback period for the
// query. Together with startTimeOffset , this determines the time window relative
// to the execution time over which the query runs.
EndTimeOffset *int64
// An array of log group names or ARNs to query. You can specify between 1 and 50
// log groups. Log groups can be identified by name or full ARN.
LogGroupIdentifiers []string

View File

@@ -32,6 +32,8 @@ import (
// You can retrieve up to 100,000 log event results from a query, if available, by
// using pagination. Use the nextToken returned in the response to request
// additional pages of results, with each page returning up to 10,000 log events.
// This is only supported for Logs Insights QL and is currently not supported for
// PPL and SQL query languages.
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account to start queries in linked source accounts.
@@ -86,7 +88,8 @@ type GetQueryResultsOutput struct {
// If there are more log events remaining in the results, the response includes a
// nextToken . You can use this token in a subsequent GetQueryResults request to
// get the next set of results. You can retrieve up to 100,000 log event results
// from a query by paginating with this token.
// from a query by paginating with this token. This is only supported for Logs
// Insights QL and is currently not supported for PPL and SQL query languages.
NextToken *string
// The query language used for this query. For more information about the query

View File

@@ -49,6 +49,10 @@ type GetScheduledQueryOutput struct {
// Configuration for where query results are delivered.
DestinationConfiguration *types.DestinationConfiguration
// The time offset in seconds that defines the end of the lookback period for the
// query.
EndTimeOffset *int64
// The ARN of the IAM role used to execute the query and deliver results.
ExecutionRoleArn *string
@@ -82,6 +86,10 @@ type GetScheduledQueryOutput struct {
// The start time for the scheduled query in Unix epoch format.
ScheduleStartTime *int64
// The schedule type of the scheduled query. Valid values are CUSTOMER_MANAGED and
// AWS_MANAGED .
ScheduleType types.ScheduleType
// The ARN of the scheduled query.
ScheduledQueryArn *string

View File

@@ -36,6 +36,11 @@ type ListScheduledQueriesInput struct {
// The token for the next set of items to return. The token expires after 24 hours.
NextToken *string
// Filter scheduled queries by schedule type. Valid values are CUSTOMER_MANAGED
// and AWS_MANAGED . If not specified, scheduled queries of all schedule types are
// returned.
ScheduleType types.ScheduleType
// Filter scheduled queries by state. Valid values are ENABLED and DISABLED . If
// not specified, all scheduled queries are returned.
State types.ScheduledQueryState

View File

@@ -100,11 +100,12 @@ type StartQueryInput struct {
// This member is required.
StartTime *int64
// The maximum number of log events to return in the query. If the query string
// uses the fields command, only the specified fields and their values are
// returned. The default is 10,000.
//
// The maximum value is 100,000.
// The maximum number of log events to return from the query. The maximum limit is
// 100,000. The maximum events returned in a single GetQueryResults API call is
// 10,000 log events per request. You can retrieve up to 100,000 log event results
// from a query by paginating with the nextToken . 100,000 limit is only supported
// for Logs Insights QL and is currently not supported for PPL and SQL query
// languages.
Limit *int32
// The list of log groups to query. You can include up to 50 log groups.

View File

@@ -63,6 +63,10 @@ type UpdateScheduledQueryInput struct {
// The updated configuration for where to deliver query results.
DestinationConfiguration *types.DestinationConfiguration
// The updated time offset in seconds that defines the end of the lookback period
// for the query.
EndTimeOffset *int64
// The updated array of log group names or ARNs to query.
LogGroupIdentifiers []string
@@ -96,6 +100,9 @@ type UpdateScheduledQueryOutput struct {
// The destination configuration of the updated scheduled query.
DestinationConfiguration *types.DestinationConfiguration
// The end time offset in seconds of the updated scheduled query.
EndTimeOffset *int64
// The execution role ARN of the updated scheduled query.
ExecutionRoleArn *string
@@ -129,6 +136,9 @@ type UpdateScheduledQueryOutput struct {
// The start time of the updated scheduled query.
ScheduleStartTime *int64
// The schedule type of the updated scheduled query.
ScheduleType types.ScheduleType
// The ARN of the updated scheduled query.
ScheduledQueryArn *string

View File

@@ -12832,6 +12832,9 @@ func awsAwsjson11_deserializeOpErrorUpdateScheduledQuery(response *smithyhttp.Re
case strings.EqualFold("AccessDeniedException", errorCode):
return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsAwsjson11_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody)
@@ -23677,6 +23680,15 @@ func awsAwsjson11_deserializeDocumentScheduledQuerySummary(v **types.ScheduledQu
sv.ScheduleExpression = ptr.String(jtv)
}
case "scheduleType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected ScheduleType to be of type string, got %T instead", value)
}
sv.ScheduleType = types.ScheduleType(jtv)
}
case "state":
if value != nil {
jtv, ok := value.(string)
@@ -27351,6 +27363,19 @@ func awsAwsjson11_deserializeOpDocumentGetScheduledQueryOutput(v **GetScheduledQ
return err
}
case "endTimeOffset":
if value != nil {
jtv, ok := value.(json.Number)
if !ok {
return fmt.Errorf("expected EndTimeOffset to be json.Number, got %T instead", value)
}
i64, err := jtv.Int64()
if err != nil {
return err
}
sv.EndTimeOffset = ptr.Int64(i64)
}
case "executionRoleArn":
if value != nil {
jtv, ok := value.(string)
@@ -27471,6 +27496,15 @@ func awsAwsjson11_deserializeOpDocumentGetScheduledQueryOutput(v **GetScheduledQ
sv.ScheduleStartTime = ptr.Int64(i64)
}
case "scheduleType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected ScheduleType to be of type string, got %T instead", value)
}
sv.ScheduleType = types.ScheduleType(jtv)
}
case "startTimeOffset":
if value != nil {
jtv, ok := value.(json.Number)
@@ -28752,6 +28786,19 @@ func awsAwsjson11_deserializeOpDocumentUpdateScheduledQueryOutput(v **UpdateSche
return err
}
case "endTimeOffset":
if value != nil {
jtv, ok := value.(json.Number)
if !ok {
return fmt.Errorf("expected EndTimeOffset to be json.Number, got %T instead", value)
}
i64, err := jtv.Int64()
if err != nil {
return err
}
sv.EndTimeOffset = ptr.Int64(i64)
}
case "executionRoleArn":
if value != nil {
jtv, ok := value.(string)
@@ -28872,6 +28919,15 @@ func awsAwsjson11_deserializeOpDocumentUpdateScheduledQueryOutput(v **UpdateSche
sv.ScheduleStartTime = ptr.Int64(i64)
}
case "scheduleType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected ScheduleType to be of type string, got %T instead", value)
}
sv.ScheduleType = types.ScheduleType(jtv)
}
case "startTimeOffset":
if value != nil {
jtv, ok := value.(json.Number)

View File

@@ -3,4 +3,4 @@
package cloudwatchlogs
// goModuleVersion is the tagged release for this module
const goModuleVersion = "1.75.2"
const goModuleVersion = "1.76.0"

View File

@@ -8838,6 +8838,11 @@ func awsAwsjson11_serializeOpDocumentCreateScheduledQueryInput(v *CreateSchedule
}
}
if v.EndTimeOffset != nil {
ok := object.Key("endTimeOffset")
ok.Long(*v.EndTimeOffset)
}
if v.ExecutionRoleArn != nil {
ok := object.Key("executionRoleArn")
ok.String(*v.ExecutionRoleArn)
@@ -10333,6 +10338,11 @@ func awsAwsjson11_serializeOpDocumentListScheduledQueriesInput(v *ListScheduledQ
ok.String(*v.NextToken)
}
if len(v.ScheduleType) > 0 {
ok := object.Key("scheduleType")
ok.String(string(v.ScheduleType))
}
if len(v.State) > 0 {
ok := object.Key("state")
ok.String(string(v.State))
@@ -11253,6 +11263,11 @@ func awsAwsjson11_serializeOpDocumentUpdateScheduledQueryInput(v *UpdateSchedule
}
}
if v.EndTimeOffset != nil {
ok := object.Key("endTimeOffset")
ok.Long(*v.EndTimeOffset)
}
if v.ExecutionRoleArn != nil {
ok := object.Key("executionRoleArn")
ok.String(*v.ExecutionRoleArn)

View File

@@ -728,6 +728,25 @@ func (ScheduledQueryState) Values() []ScheduledQueryState {
}
}
type ScheduleType string
// Enum values for ScheduleType
const (
ScheduleTypeCustomerManaged ScheduleType = "CUSTOMER_MANAGED"
ScheduleTypeAwsManaged ScheduleType = "AWS_MANAGED"
)
// Values returns all known values for ScheduleType. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (ScheduleType) Values() []ScheduleType {
return []ScheduleType{
"CUSTOMER_MANAGED",
"AWS_MANAGED",
}
}
type Scope string
// Enum values for Scope

View File

@@ -2851,6 +2851,10 @@ type ScheduledQuerySummary struct {
// The cron expression that defines when the scheduled query runs.
ScheduleExpression *string
// The schedule type of the scheduled query. Valid values are CUSTOMER_MANAGED and
// AWS_MANAGED .
ScheduleType ScheduleType
// The ARN of the scheduled query.
ScheduledQueryArn *string