aws-sdk-cloudwatchlogs 1.155.0 → 1.156.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cb54db34708b79eef1f663f649caa1543e0beea1ec953787c513af57e138b20
4
- data.tar.gz: 7c2b3338d21ec391652ea509537a3736dfe5b0d077795b470a139d96e3dd3314
3
+ metadata.gz: ab5f10c38ad4b140617f81629c5c33fe31a425a7b29d0398c453c58d744ac83b
4
+ data.tar.gz: 2634cd67d159f34c96a1d507798ce93ac9ba928e7286015bb77c0c940cee3cce
5
5
  SHA512:
6
- metadata.gz: 757e844b7ae76bd1899f55c2ffe80b374a716e4b517c2a2e49d4e1482823c0b44c6cfab62cea9c6fff49a7017decc1cfa0fe3c185e3502cd167657bef46511b7
7
- data.tar.gz: 2c00ef8f1e975e246b586c649bf01ed965a83026614776ca35492b423d4452213dbd9cf21ca4bb05318422400b8335837b65eb2028cdf23cdf0e9f4bb7c6fb76
6
+ metadata.gz: 4050525b4cb469868446a2e193a4b3ed21f99a68faffec806f38ae0e632be1c0caa376ed55fd9fedc1e1ff585e76c5b443ca40060b6f9dea39ed670f08fbb4db
7
+ data.tar.gz: b885687169b410826ded26e838f9967837536e3b1c3e9b82e0b6a974278883f9b87b264f061e1b37dba2d448d93bd5b1dc265b56b017fae4009056662ab95f25
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.156.0 (2026-06-18)
5
+ ------------------
6
+
7
+ * Feature - Added optional startFromHead parameter to FilterLogEvents enabling descending timestamp order (newest first) when set to false. Default true preserves existing ascending order. Reverse sorting requires a startTime on or after Jan 1, 2024.
8
+
4
9
  1.155.0 (2026-06-15)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.155.0
1
+ 1.156.0
@@ -3626,7 +3626,10 @@ module Aws::CloudWatchLogs
3626
3626
  #
3627
3627
  # The returned log events are sorted by event timestamp, the timestamp
3628
3628
  # when the event was ingested by CloudWatch Logs, and the ID of the
3629
- # `PutLogEvents` request.
3629
+ # `PutLogEvents` request. By default, the events are returned in
3630
+ # ascending timestamp order (oldest first). To return events in
3631
+ # descending timestamp order (newest first), set the `startFromHead`
3632
+ # parameter to `false`.
3630
3633
  #
3631
3634
  # If you are using CloudWatch cross-account observability, you can use
3632
3635
  # this operation in a monitoring account and view data from the linked
@@ -3706,6 +3709,24 @@ module Aws::CloudWatchLogs
3706
3709
  # @option params [Integer] :limit
3707
3710
  # The maximum number of events to return. The default is 10,000 events.
3708
3711
  #
3712
+ # @option params [Boolean] :start_from_head
3713
+ # If the value is true, the earliest log events are returned first. If
3714
+ # the value is false, the latest log events are returned first. The
3715
+ # default value is true.
3716
+ #
3717
+ # The `startFromHead` parameter sets the sort direction on the first
3718
+ # request. On subsequent requests, the `nextToken` determines the sort
3719
+ # direction. To continue paginating in the same direction, provide the
3720
+ # returned `nextToken`. If you provide both `nextToken` and
3721
+ # `startFromHead`, the direction of the `nextToken` is used.
3722
+ #
3723
+ # <note markdown="1"> Setting `startFromHead` to `false` is supported only when `startTime`
3724
+ # is on or after `Jan 1, 2024 00:00:00 UTC`. A request with
3725
+ # `startFromHead` set to `false` and a `startTime` before this date
3726
+ # returns an `InvalidParameterException`.
3727
+ #
3728
+ # </note>
3729
+ #
3709
3730
  # @option params [Boolean] :interleaved
3710
3731
  # If the value is true, the operation attempts to provide responses that
3711
3732
  # contain events from multiple log streams within the log group,
@@ -3744,6 +3765,7 @@ module Aws::CloudWatchLogs
3744
3765
  # filter_pattern: "FilterPattern",
3745
3766
  # next_token: "NextToken",
3746
3767
  # limit: 1,
3768
+ # start_from_head: false,
3747
3769
  # interleaved: false,
3748
3770
  # unmask: false,
3749
3771
  # })
@@ -9325,7 +9347,7 @@ module Aws::CloudWatchLogs
9325
9347
  tracer: tracer
9326
9348
  )
9327
9349
  context[:gem_name] = 'aws-sdk-cloudwatchlogs'
9328
- context[:gem_version] = '1.155.0'
9350
+ context[:gem_version] = '1.156.0'
9329
9351
  Seahorse::Client::Request.new(handlers, context)
9330
9352
  end
9331
9353
 
@@ -1373,6 +1373,7 @@ module Aws::CloudWatchLogs
1373
1373
  FilterLogEventsRequest.add_member(:filter_pattern, Shapes::ShapeRef.new(shape: FilterPattern, location_name: "filterPattern"))
1374
1374
  FilterLogEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1375
1375
  FilterLogEventsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: EventsLimit, location_name: "limit"))
1376
+ FilterLogEventsRequest.add_member(:start_from_head, Shapes::ShapeRef.new(shape: StartFromHead, location_name: "startFromHead"))
1376
1377
  FilterLogEventsRequest.add_member(:interleaved, Shapes::ShapeRef.new(shape: Interleaved, deprecated: true, location_name: "interleaved", metadata: {"deprecatedMessage" => "Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group."}))
1377
1378
  FilterLogEventsRequest.add_member(:unmask, Shapes::ShapeRef.new(shape: Unmask, location_name: "unmask"))
1378
1379
  FilterLogEventsRequest.struct_class = Types::FilterLogEventsRequest
@@ -3572,6 +3572,25 @@ module Aws::CloudWatchLogs
3572
3572
  # events.
3573
3573
  # @return [Integer]
3574
3574
  #
3575
+ # @!attribute [rw] start_from_head
3576
+ # If the value is true, the earliest log events are returned first. If
3577
+ # the value is false, the latest log events are returned first. The
3578
+ # default value is true.
3579
+ #
3580
+ # The `startFromHead` parameter sets the sort direction on the first
3581
+ # request. On subsequent requests, the `nextToken` determines the sort
3582
+ # direction. To continue paginating in the same direction, provide the
3583
+ # returned `nextToken`. If you provide both `nextToken` and
3584
+ # `startFromHead`, the direction of the `nextToken` is used.
3585
+ #
3586
+ # <note markdown="1"> Setting `startFromHead` to `false` is supported only when
3587
+ # `startTime` is on or after `Jan 1, 2024 00:00:00 UTC`. A request
3588
+ # with `startFromHead` set to `false` and a `startTime` before this
3589
+ # date returns an `InvalidParameterException`.
3590
+ #
3591
+ # </note>
3592
+ # @return [Boolean]
3593
+ #
3575
3594
  # @!attribute [rw] interleaved
3576
3595
  # If the value is true, the operation attempts to provide responses
3577
3596
  # that contain events from multiple log streams within the log group,
@@ -3604,6 +3623,7 @@ module Aws::CloudWatchLogs
3604
3623
  :filter_pattern,
3605
3624
  :next_token,
3606
3625
  :limit,
3626
+ :start_from_head,
3607
3627
  :interleaved,
3608
3628
  :unmask)
3609
3629
  SENSITIVE = []
@@ -3623,8 +3643,9 @@ module Aws::CloudWatchLogs
3623
3643
  # @return [Array<Types::SearchedLogStream>]
3624
3644
  #
3625
3645
  # @!attribute [rw] next_token
3626
- # The token to use when requesting the next set of items. The token
3627
- # expires after 24 hours.
3646
+ # The token for the next set of items in the sorting direction
3647
+ # specified by the `startFromHead` parameter in the first request. The
3648
+ # token expires after 24 hours.
3628
3649
  #
3629
3650
  # If the results don't include a `nextToken`, then pagination is
3630
3651
  # finished.
@@ -55,7 +55,7 @@ module Aws::CloudWatchLogs
55
55
  autoload :Endpoints, 'aws-sdk-cloudwatchlogs/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-cloudwatchlogs/event_streams'
57
57
 
58
- GEM_VERSION = '1.155.0'
58
+ GEM_VERSION = '1.156.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -691,6 +691,7 @@ module Aws
691
691
  ?filter_pattern: ::String,
692
692
  ?next_token: ::String,
693
693
  ?limit: ::Integer,
694
+ ?start_from_head: bool,
694
695
  ?interleaved: bool,
695
696
  ?unmask: bool
696
697
  ) -> _FilterLogEventsResponseSuccess
data/sig/types.rbs CHANGED
@@ -839,6 +839,7 @@ module Aws::CloudWatchLogs
839
839
  attr_accessor filter_pattern: ::String
840
840
  attr_accessor next_token: ::String
841
841
  attr_accessor limit: ::Integer
842
+ attr_accessor start_from_head: bool
842
843
  attr_accessor interleaved: bool
843
844
  attr_accessor unmask: bool
844
845
  SENSITIVE: []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatchlogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.155.0
4
+ version: 1.156.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services