aws-sdk-cloudwatchlogs 1.160.0 → 1.161.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: c1b200667491ac782dd20cdf52122ec35b1615203f6494bab416ab0d829e1334
4
- data.tar.gz: a0ae4310581fe59d8e58ec6f650aba483b97b6ffc4eeb3c73809920361946953
3
+ metadata.gz: b118398e5d33e503c30e524c9c9927dba433b6f4fbb4697795509d3eaadd7a72
4
+ data.tar.gz: 36d9a27673094a461fd06a45da01f0afb6dda78b9cad014f17f8b29eae61d1b2
5
5
  SHA512:
6
- metadata.gz: f207dee45eee8b4e6506bcc4946f5291d68156f5c95b1c611ad4d15e8b3c7f1be57970f9f8ae2d1a077cdf4c84e10ff87bac2cd37863465f4f7f0816fb0c4c62
7
- data.tar.gz: a8beb6d42f772807929b0e2b2b86e47d23414023cfde492224a14c82fdc5b454520034d9b1fd97457611f240c56cb247b1efb3e03e6f92da25566fb75ba9d99a
6
+ metadata.gz: 1602fe95620c8185927a4ab82f49a5a24c1327163b8d2c96c0202238e2953f77305615508bfb2ec37210697c765fe77236d9b2e61ed7e1f646c710cd2c0a29ea
7
+ data.tar.gz: c4d4577f0819389f4eea7c78e78b41418ff5ca547a0d191b9be913d367ab4c49a75dae724d104d9ce0702c5154bb21708ea5063382226b1120c8dd00a46862ee
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.161.0 (2026-08-06)
5
+ ------------------
6
+
7
+ * Feature - This release adds index category support to the CloudWatch Logs DescribeFieldIndexes API. Customers can filter and identify DEFAULT, CUSTOM, AUTO, and INACTIVE field indexes.
8
+
4
9
  1.160.0 (2026-07-31)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.160.0
1
+ 1.161.0
@@ -1371,8 +1371,9 @@ module Aws::CloudWatchLogs
1371
1371
  # You must specify either `tableBody` or `queryId`, but not both.
1372
1372
  #
1373
1373
  # @option params [String] :query_id
1374
- # The ID of a completed CloudWatch Logs query whose results populate the
1375
- # lookup table.
1374
+ # The ID of a completed or cancelled CloudWatch Logs query whose results
1375
+ # populate the lookup table. A cancelled query populates the table with
1376
+ # the partial results that were available when the query was stopped.
1376
1377
  #
1377
1378
  # You must specify either `tableBody` or `queryId`, but not both.
1378
1379
  #
@@ -2663,9 +2664,13 @@ module Aws::CloudWatchLogs
2663
2664
  req.send_request(options)
2664
2665
  end
2665
2666
 
2666
- # Returns a list of custom and default field indexes which are
2667
- # discovered in log data. For more information about field index
2668
- # policies, see [PutIndexPolicy][1].
2667
+ # Returns a list of field indexes discovered in log data. By default,
2668
+ # the response includes the `DEFAULT`, `CUSTOM`, and `INACTIVE` index
2669
+ # categories. To return indexes from other categories, use the
2670
+ # `indexCategories` parameter.
2671
+ #
2672
+ # For more information about field index policies, see
2673
+ # [PutIndexPolicy][1].
2669
2674
  #
2670
2675
  #
2671
2676
  #
@@ -2675,6 +2680,38 @@ module Aws::CloudWatchLogs
2675
2680
  # An array containing the names or ARNs of the log groups that you want
2676
2681
  # to retrieve field indexes for.
2677
2682
  #
2683
+ # @option params [Array<String>] :index_categories
2684
+ # The index categories to return. The following values are supported:
2685
+ #
2686
+ # * `DEFAULT`: Fields that CloudWatch Logs indexes by default. Examples
2687
+ # include `@logStream` and `@data_format`.
2688
+ #
2689
+ # * `CUSTOM`: Fields that you added manually to the field index policy.
2690
+ # CloudWatch Logs always indexes these fields. These fields count
2691
+ # toward the quota of 20 fields for each log group.
2692
+ #
2693
+ # * `AUTO`: Fields that CloudWatch Logs indexes automatically based on
2694
+ # your query patterns and usage. These fields do not count toward the
2695
+ # field index quota. CloudWatch Logs might update these fields based
2696
+ # on changes in your query patterns. To keep a field indexed
2697
+ # permanently, add it to an account-level or log-group level field
2698
+ # index policy.
2699
+ #
2700
+ # * `INACTIVE`: Fields that CloudWatch Logs indexed before but does not
2701
+ # index now. This happens if you remove a field from the field index
2702
+ # policy or if CloudWatch Logs automatically selects a different field
2703
+ # based on your queries.
2704
+ #
2705
+ # If you omit this parameter, the response includes the `DEFAULT`,
2706
+ # `CUSTOM`, and `INACTIVE` categories.
2707
+ #
2708
+ # For more information about automatically indexed fields and using the
2709
+ # `AUTO` category, see [Automatically indexed fields][1].
2710
+ #
2711
+ #
2712
+ #
2713
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing-Automatic.html
2714
+ #
2678
2715
  # @option params [String] :next_token
2679
2716
  # The token for the next set of items to return. The token expires after
2680
2717
  # 24 hours.
@@ -2688,6 +2725,7 @@ module Aws::CloudWatchLogs
2688
2725
  #
2689
2726
  # resp = client.describe_field_indexes({
2690
2727
  # log_group_identifiers: ["LogGroupIdentifier"], # required
2728
+ # index_categories: ["DEFAULT"], # accepts DEFAULT, CUSTOM, AUTO, INACTIVE
2691
2729
  # next_token: "NextToken",
2692
2730
  # })
2693
2731
  #
@@ -2700,6 +2738,7 @@ module Aws::CloudWatchLogs
2700
2738
  # resp.field_indexes[0].first_event_time #=> Integer
2701
2739
  # resp.field_indexes[0].last_event_time #=> Integer
2702
2740
  # resp.field_indexes[0].type #=> String, one of "FACET", "FIELD_INDEX"
2741
+ # resp.field_indexes[0].index_category #=> String, one of "DEFAULT", "CUSTOM", "AUTO", "INACTIVE"
2703
2742
  # resp.next_token #=> String
2704
2743
  #
2705
2744
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeFieldIndexes AWS API Documentation
@@ -3737,6 +3776,11 @@ module Aws::CloudWatchLogs
3737
3776
  # after `Jan 1, 1970 00:00:00 UTC`. Events with a timestamp before this
3738
3777
  # time are not returned.
3739
3778
  #
3779
+ # <note markdown="1"> Set `startTime` explicitly to reduce the chances of empty pages in the
3780
+ # response.
3781
+ #
3782
+ # </note>
3783
+ #
3740
3784
  # @option params [Integer] :end_time
3741
3785
  # The end of the time range, expressed as the number of milliseconds
3742
3786
  # after `Jan 1, 1970 00:00:00 UTC`. Events with a timestamp later than
@@ -4236,6 +4280,11 @@ module Aws::CloudWatchLogs
4236
4280
  # this time or later than this time are included. Events with a
4237
4281
  # timestamp earlier than this time are not included.
4238
4282
  #
4283
+ # <note markdown="1"> Set `startTime` explicitly to reduce the chances of empty pages in the
4284
+ # response.
4285
+ #
4286
+ # </note>
4287
+ #
4239
4288
  # @option params [Integer] :end_time
4240
4289
  # The end of the time range, expressed as the number of milliseconds
4241
4290
  # after `Jan 1, 1970 00:00:00 UTC`. Events with a timestamp equal to or
@@ -6841,6 +6890,10 @@ module Aws::CloudWatchLogs
6841
6890
  # @option params [required, String] :log_type
6842
6891
  # Defines the type of log that the source is sending.
6843
6892
  #
6893
+ # * For Application Load Balancer, the valid values are
6894
+ # `ALB_ACCESS_LOGS`, `ALB_CONNECTION_LOGS`, and
6895
+ # `ALB_HEALTH_CHECK_LOGS`.
6896
+ #
6844
6897
  # * For Amazon Bedrock Agents, the valid values are `APPLICATION_LOGS`
6845
6898
  # and `EVENT_LOGS`.
6846
6899
  #
@@ -9410,8 +9463,10 @@ module Aws::CloudWatchLogs
9410
9463
  # You must specify either `tableBody` or `queryId`, but not both.
9411
9464
  #
9412
9465
  # @option params [String] :query_id
9413
- # The ID of a completed CloudWatch Logs query whose results replace the
9414
- # lookup table content.
9466
+ # The ID of a completed or cancelled CloudWatch Logs query whose results
9467
+ # replace the lookup table content. A cancelled query replaces the
9468
+ # content with the partial results that were available when the query
9469
+ # was stopped.
9415
9470
  #
9416
9471
  # You must specify either `tableBody` or `queryId`, but not both.
9417
9472
  #
@@ -9618,7 +9673,7 @@ module Aws::CloudWatchLogs
9618
9673
  tracer: tracer
9619
9674
  )
9620
9675
  context[:gem_name] = 'aws-sdk-cloudwatchlogs'
9621
- context[:gem_version] = '1.160.0'
9676
+ context[:gem_version] = '1.161.0'
9622
9677
  Seahorse::Client::Request.new(handlers, context)
9623
9678
  end
9624
9679
 
@@ -323,6 +323,8 @@ module Aws::CloudWatchLogs
323
323
  ImportStatus = Shapes::StringShape.new(name: 'ImportStatus')
324
324
  ImportStatusList = Shapes::ListShape.new(name: 'ImportStatusList')
325
325
  IncludeLinkedAccounts = Shapes::BooleanShape.new(name: 'IncludeLinkedAccounts')
326
+ IndexCategories = Shapes::ListShape.new(name: 'IndexCategories')
327
+ IndexCategory = Shapes::StringShape.new(name: 'IndexCategory')
326
328
  IndexPolicies = Shapes::ListShape.new(name: 'IndexPolicies')
327
329
  IndexPolicy = Shapes::StructureShape.new(name: 'IndexPolicy')
328
330
  IndexSource = Shapes::StringShape.new(name: 'IndexSource')
@@ -1171,6 +1173,7 @@ module Aws::CloudWatchLogs
1171
1173
  DescribeFieldIndexesLogGroupIdentifiers.member = Shapes::ShapeRef.new(shape: LogGroupIdentifier)
1172
1174
 
1173
1175
  DescribeFieldIndexesRequest.add_member(:log_group_identifiers, Shapes::ShapeRef.new(shape: DescribeFieldIndexesLogGroupIdentifiers, required: true, location_name: "logGroupIdentifiers"))
1176
+ DescribeFieldIndexesRequest.add_member(:index_categories, Shapes::ShapeRef.new(shape: IndexCategories, location_name: "indexCategories"))
1174
1177
  DescribeFieldIndexesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1175
1178
  DescribeFieldIndexesRequest.struct_class = Types::DescribeFieldIndexesRequest
1176
1179
 
@@ -1376,6 +1379,7 @@ module Aws::CloudWatchLogs
1376
1379
  FieldIndex.add_member(:first_event_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "firstEventTime"))
1377
1380
  FieldIndex.add_member(:last_event_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastEventTime"))
1378
1381
  FieldIndex.add_member(:type, Shapes::ShapeRef.new(shape: IndexType, location_name: "type"))
1382
+ FieldIndex.add_member(:index_category, Shapes::ShapeRef.new(shape: IndexCategory, location_name: "indexCategory"))
1379
1383
  FieldIndex.struct_class = Types::FieldIndex
1380
1384
 
1381
1385
  FieldIndexNames.member = Shapes::ShapeRef.new(shape: FieldIndexName)
@@ -1638,6 +1642,8 @@ module Aws::CloudWatchLogs
1638
1642
 
1639
1643
  ImportStatusList.member = Shapes::ShapeRef.new(shape: ImportStatus)
1640
1644
 
1645
+ IndexCategories.member = Shapes::ShapeRef.new(shape: IndexCategory)
1646
+
1641
1647
  IndexPolicies.member = Shapes::ShapeRef.new(shape: IndexPolicy)
1642
1648
 
1643
1649
  IndexPolicy.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
@@ -1164,8 +1164,10 @@ module Aws::CloudWatchLogs
1164
1164
  # @return [String]
1165
1165
  #
1166
1166
  # @!attribute [rw] query_id
1167
- # The ID of a completed CloudWatch Logs query whose results populate
1168
- # the lookup table.
1167
+ # The ID of a completed or cancelled CloudWatch Logs query whose
1168
+ # results populate the lookup table. A cancelled query populates the
1169
+ # table with the partial results that were available when the query
1170
+ # was stopped.
1169
1171
  #
1170
1172
  # You must specify either `tableBody` or `queryId`, but not both.
1171
1173
  # @return [String]
@@ -2488,6 +2490,39 @@ module Aws::CloudWatchLogs
2488
2490
  # want to retrieve field indexes for.
2489
2491
  # @return [Array<String>]
2490
2492
  #
2493
+ # @!attribute [rw] index_categories
2494
+ # The index categories to return. The following values are supported:
2495
+ #
2496
+ # * `DEFAULT`: Fields that CloudWatch Logs indexes by default.
2497
+ # Examples include `@logStream` and `@data_format`.
2498
+ #
2499
+ # * `CUSTOM`: Fields that you added manually to the field index
2500
+ # policy. CloudWatch Logs always indexes these fields. These fields
2501
+ # count toward the quota of 20 fields for each log group.
2502
+ #
2503
+ # * `AUTO`: Fields that CloudWatch Logs indexes automatically based on
2504
+ # your query patterns and usage. These fields do not count toward
2505
+ # the field index quota. CloudWatch Logs might update these fields
2506
+ # based on changes in your query patterns. To keep a field indexed
2507
+ # permanently, add it to an account-level or log-group level field
2508
+ # index policy.
2509
+ #
2510
+ # * `INACTIVE`: Fields that CloudWatch Logs indexed before but does
2511
+ # not index now. This happens if you remove a field from the field
2512
+ # index policy or if CloudWatch Logs automatically selects a
2513
+ # different field based on your queries.
2514
+ #
2515
+ # If you omit this parameter, the response includes the `DEFAULT`,
2516
+ # `CUSTOM`, and `INACTIVE` categories.
2517
+ #
2518
+ # For more information about automatically indexed fields and using
2519
+ # the `AUTO` category, see [Automatically indexed fields][1].
2520
+ #
2521
+ #
2522
+ #
2523
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing-Automatic.html
2524
+ # @return [Array<String>]
2525
+ #
2491
2526
  # @!attribute [rw] next_token
2492
2527
  # The token for the next set of items to return. The token expires
2493
2528
  # after 24 hours.
@@ -2497,6 +2532,7 @@ module Aws::CloudWatchLogs
2497
2532
  #
2498
2533
  class DescribeFieldIndexesRequest < Struct.new(
2499
2534
  :log_group_identifiers,
2535
+ :index_categories,
2500
2536
  :next_token)
2501
2537
  SENSITIVE = []
2502
2538
  include Aws::Structure
@@ -3508,6 +3544,36 @@ module Aws::CloudWatchLogs
3508
3544
  # field is indexed and can be queried.
3509
3545
  # @return [String]
3510
3546
  #
3547
+ # @!attribute [rw] index_category
3548
+ # The category of the field index:
3549
+ #
3550
+ # * `DEFAULT`: Fields that CloudWatch Logs indexes by default.
3551
+ # Examples include `@logStream` and `@data_format`.
3552
+ #
3553
+ # * `CUSTOM`: Fields that you added manually to the field index
3554
+ # policy. CloudWatch Logs always indexes these fields. These fields
3555
+ # count toward the quota of 20 fields for each log group.
3556
+ #
3557
+ # * `AUTO`: Fields that CloudWatch Logs indexes automatically based on
3558
+ # your query patterns and usage. These fields do not count toward
3559
+ # the field index quota. CloudWatch Logs might update these fields
3560
+ # based on changes in your query patterns. To keep a field indexed
3561
+ # permanently, add it to an account-level or log-group level field
3562
+ # index policy.
3563
+ #
3564
+ # * `INACTIVE`: Fields that CloudWatch Logs indexed before but does
3565
+ # not index now. This happens if you remove a field from the field
3566
+ # index policy or if CloudWatch Logs automatically selects a
3567
+ # different field based on your queries.
3568
+ #
3569
+ # For more information about automatically indexed fields, see
3570
+ # [Automatically indexed fields][1].
3571
+ #
3572
+ #
3573
+ #
3574
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing-Automatic.html
3575
+ # @return [String]
3576
+ #
3511
3577
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FieldIndex AWS API Documentation
3512
3578
  #
3513
3579
  class FieldIndex < Struct.new(
@@ -3516,7 +3582,8 @@ module Aws::CloudWatchLogs
3516
3582
  :last_scan_time,
3517
3583
  :first_event_time,
3518
3584
  :last_event_time,
3519
- :type)
3585
+ :type,
3586
+ :index_category)
3520
3587
  SENSITIVE = []
3521
3588
  include Aws::Structure
3522
3589
  end
@@ -3581,6 +3648,11 @@ module Aws::CloudWatchLogs
3581
3648
  # The start of the time range, expressed as the number of milliseconds
3582
3649
  # after `Jan 1, 1970 00:00:00 UTC`. Events with a timestamp before
3583
3650
  # this time are not returned.
3651
+ #
3652
+ # <note markdown="1"> Set `startTime` explicitly to reduce the chances of empty pages in
3653
+ # the response.
3654
+ #
3655
+ # </note>
3584
3656
  # @return [Integer]
3585
3657
  #
3586
3658
  # @!attribute [rw] end_time
@@ -4031,6 +4103,11 @@ module Aws::CloudWatchLogs
4031
4103
  # after `Jan 1, 1970 00:00:00 UTC`. Events with a timestamp equal to
4032
4104
  # this time or later than this time are included. Events with a
4033
4105
  # timestamp earlier than this time are not included.
4106
+ #
4107
+ # <note markdown="1"> Set `startTime` explicitly to reduce the chances of empty pages in
4108
+ # the response.
4109
+ #
4110
+ # </note>
4034
4111
  # @return [Integer]
4035
4112
  #
4036
4113
  # @!attribute [rw] end_time
@@ -8044,6 +8121,10 @@ module Aws::CloudWatchLogs
8044
8121
  # @!attribute [rw] log_type
8045
8122
  # Defines the type of log that the source is sending.
8046
8123
  #
8124
+ # * For Application Load Balancer, the valid values are
8125
+ # `ALB_ACCESS_LOGS`, `ALB_CONNECTION_LOGS`, and
8126
+ # `ALB_HEALTH_CHECK_LOGS`.
8127
+ #
8047
8128
  # * For Amazon Bedrock Agents, the valid values are `APPLICATION_LOGS`
8048
8129
  # and `EVENT_LOGS`.
8049
8130
  #
@@ -10662,8 +10743,10 @@ module Aws::CloudWatchLogs
10662
10743
  # @return [String]
10663
10744
  #
10664
10745
  # @!attribute [rw] query_id
10665
- # The ID of a completed CloudWatch Logs query whose results replace
10666
- # the lookup table content.
10746
+ # The ID of a completed or cancelled CloudWatch Logs query whose
10747
+ # results replace the lookup table content. A cancelled query replaces
10748
+ # the content with the partial results that were available when the
10749
+ # query was stopped.
10667
10750
  #
10668
10751
  # You must specify either `tableBody` or `queryId`, but not both.
10669
10752
  # @return [String]
@@ -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.160.0'
58
+ GEM_VERSION = '1.161.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -497,6 +497,7 @@ module Aws
497
497
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_field_indexes-instance_method
498
498
  def describe_field_indexes: (
499
499
  log_group_identifiers: Array[::String],
500
+ ?index_categories: Array[("DEFAULT" | "CUSTOM" | "AUTO" | "INACTIVE")],
500
501
  ?next_token: ::String
501
502
  ) -> _DescribeFieldIndexesResponseSuccess
502
503
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeFieldIndexesResponseSuccess
data/sig/types.rbs CHANGED
@@ -584,6 +584,7 @@ module Aws::CloudWatchLogs
584
584
 
585
585
  class DescribeFieldIndexesRequest
586
586
  attr_accessor log_group_identifiers: ::Array[::String]
587
+ attr_accessor index_categories: ::Array[("DEFAULT" | "CUSTOM" | "AUTO" | "INACTIVE")]
587
588
  attr_accessor next_token: ::String
588
589
  SENSITIVE: []
589
590
  end
@@ -828,6 +829,7 @@ module Aws::CloudWatchLogs
828
829
  attr_accessor first_event_time: ::Integer
829
830
  attr_accessor last_event_time: ::Integer
830
831
  attr_accessor type: ("FACET" | "FIELD_INDEX")
832
+ attr_accessor index_category: ("DEFAULT" | "CUSTOM" | "AUTO" | "INACTIVE")
831
833
  SENSITIVE: []
832
834
  end
833
835
 
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.160.0
4
+ version: 1.161.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services