aws-sdk-cloudwatchlogs 1.109.0 → 1.110.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: 9933c2237cedea63fb431280e07206aed9d7d4e6ed2903f6f61972015dbf1487
4
- data.tar.gz: 6ab53515acd6217339a425cebc2bae6f10af87e59dd4a4b9750cc0555ebd50ef
3
+ metadata.gz: 710c640081bd102225217071bb96ca11c5a26bcc07959ad33091e0cca213d02e
4
+ data.tar.gz: c62a419aabe834d25815f6a0ce90fb174c23d3da96b55dc725714a3d2ef55080
5
5
  SHA512:
6
- metadata.gz: 351e88fcdf2ecb17194b0afc5179bd5e6befd4f73795a9a05a4f33543ba71737b3db5daf67fb19f43ad020a40cb923d64794ae4fb8268dc174a5a4ff55da4f42
7
- data.tar.gz: 3305ce0c50d267f89190bad9be59227fb15c0782adf18e6440508bbc480008af867dc566af1e07b21b312ee47a53be09c3803b785337071e47f0b85174323fdf
6
+ metadata.gz: a0b00f176b28d9b797ee0d7a268eb423952d0b410eab6dd7f124c058f145861e3ec09169ff446db358a2ef8a899e91505601a7e5a083d042a5d1eb8c0ef110e3
7
+ data.tar.gz: '028a11906af4c662ae66fcdc2acb7544cb8432eddb053c49cd91475e1c28a6e9b2df0bd5ae07f14fa88a505e63520c03c43fc9474ffb9fbe7fc17e04a8c73e81'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.110.0 (2025-03-13)
5
+ ------------------
6
+
7
+ * Feature - Updated CreateLogAnomalyDetector to accept only kms key arn
8
+
4
9
  1.109.0 (2025-02-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.109.0
1
+ 1.110.0
@@ -936,8 +936,9 @@ module Aws::CloudWatchLogs
936
936
  # this key and for the anomaly detector to retrieve information about
937
937
  # the anomalies that it finds.
938
938
  #
939
- # For more information about using a KMS key and to see the required IAM
940
- # policy, see [Use a KMS key with an anomaly detector][1].
939
+ # Make sure the value provided is a valid KMS key ARN. For more
940
+ # information about using a KMS key and to see the required IAM policy,
941
+ # see [Use a KMS key with an anomaly detector][1].
941
942
  #
942
943
  #
943
944
  #
@@ -973,7 +974,7 @@ module Aws::CloudWatchLogs
973
974
  # detector_name: "DetectorName",
974
975
  # evaluation_frequency: "ONE_MIN", # accepts ONE_MIN, FIVE_MIN, TEN_MIN, FIFTEEN_MIN, THIRTY_MIN, ONE_HOUR
975
976
  # filter_pattern: "FilterPattern",
976
- # kms_key_id: "KmsKeyId",
977
+ # kms_key_id: "DetectorKmsKeyArn",
977
978
  # anomaly_visibility_time: 1,
978
979
  # tags: {
979
980
  # "TagKey" => "TagValue",
@@ -2858,8 +2859,14 @@ module Aws::CloudWatchLogs
2858
2859
  end
2859
2860
 
2860
2861
  # Lists log events from the specified log group. You can list all the
2861
- # log events or filter the results using a filter pattern, a time range,
2862
- # and the name of the log stream.
2862
+ # log events or filter the results using one or more of the following:
2863
+ #
2864
+ # * A filter pattern
2865
+ #
2866
+ # * A time range
2867
+ #
2868
+ # * The log stream name, or a log stream name prefix that matches
2869
+ # mutltiple log streams
2863
2870
  #
2864
2871
  # You must have the `logs:FilterLogEvents` permission to perform this
2865
2872
  # operation.
@@ -2868,13 +2875,28 @@ module Aws::CloudWatchLogs
2868
2875
  # `logGroupIdentifier` or `logGroupName`. You must include one of these
2869
2876
  # two parameters, but you can't include both.
2870
2877
  #
2871
- # By default, this operation returns as many log events as can fit in 1
2872
- # MB (up to 10,000 log events) or all the events found within the
2873
- # specified time range. If the results include a token, that means there
2874
- # are more log events available. You can get additional results by
2875
- # specifying the token in a subsequent call. This operation can return
2876
- # empty results while there are more log events available through the
2877
- # token.
2878
+ # `FilterLogEvents` is a paginated operation. Each page returned can
2879
+ # contain up to 1 MB of log events or up to 10,000 log events. A
2880
+ # returned page might only be partially full, or even empty. For
2881
+ # example, if the result of a query would return 15,000 log events, the
2882
+ # first page isn't guaranteed to have 10,000 log events even if they
2883
+ # all fit into 1 MB.
2884
+ #
2885
+ # Partially full or empty pages don't necessarily mean that pagination
2886
+ # is finished. If the results include a `nextToken`, there might be more
2887
+ # log events available. You can return these additional log events by
2888
+ # providing the nextToken in a subsequent `FilterLogEvents` operation.
2889
+ # If the results don't include a `nextToken`, then pagination is
2890
+ # finished.
2891
+ #
2892
+ # <note markdown="1"> If you set `startFromHead` to `true` and you don’t include `endTime`
2893
+ # in your request, you can end up in a situation where the pagination
2894
+ # doesn't terminate. This can happen when the new log events are being
2895
+ # added to the target log streams faster than they are being read. This
2896
+ # situation is a good use case for the CloudWatch Logs [Live Tail][1]
2897
+ # feature.
2898
+ #
2899
+ # </note>
2878
2900
  #
2879
2901
  # The returned log events are sorted by event timestamp, the timestamp
2880
2902
  # when the event was ingested by CloudWatch Logs, and the ID of the
@@ -2883,11 +2905,21 @@ module Aws::CloudWatchLogs
2883
2905
  # If you are using CloudWatch cross-account observability, you can use
2884
2906
  # this operation in a monitoring account and view data from the linked
2885
2907
  # source accounts. For more information, see [CloudWatch cross-account
2886
- # observability][1].
2908
+ # observability][2].
2909
+ #
2910
+ # <note markdown="1"> If you are using [log transformation][3], the `FilterLogEvents`
2911
+ # operation returns only the original versions of log events, before
2912
+ # they were transformed. To view the transformed versions, you must use
2913
+ # a [CloudWatch Logs query.][4]
2887
2914
  #
2915
+ # </note>
2888
2916
  #
2889
2917
  #
2890
- # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
2918
+ #
2919
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html
2920
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
2921
+ # [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html
2922
+ # [4]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
2891
2923
  #
2892
2924
  # @option params [String] :log_group_name
2893
2925
  # The name of the log group to search.
@@ -3276,6 +3308,7 @@ module Aws::CloudWatchLogs
3276
3308
  end
3277
3309
 
3278
3310
  # Retrieves information about the log anomaly detector that you specify.
3311
+ # The KMS key ARN detected is valid.
3279
3312
  #
3280
3313
  # @option params [required, String] :anomaly_detector_arn
3281
3314
  # The ARN of the anomaly detector to retrieve information about. You can
@@ -3329,24 +3362,51 @@ module Aws::CloudWatchLogs
3329
3362
  # Lists log events from the specified log stream. You can list all of
3330
3363
  # the log events or filter using a time range.
3331
3364
  #
3332
- # By default, this operation returns as many log events as can fit in a
3333
- # response size of 1MB (up to 10,000 log events). You can get additional
3334
- # log events by specifying one of the tokens in a subsequent call. This
3335
- # operation can return empty results while there are more log events
3336
- # available through the token.
3365
+ # `GetLogEvents` is a paginated operation. Each page returned can
3366
+ # contain up to 1 MB of log events or up to 10,000 log events. A
3367
+ # returned page might only be partially full, or even empty. For
3368
+ # example, if the result of a query would return 15,000 log events, the
3369
+ # first page isn't guaranteed to have 10,000 log events even if they
3370
+ # all fit into 1 MB.
3371
+ #
3372
+ # Partially full or empty pages don't necessarily mean that pagination
3373
+ # is finished. As long as the `nextBackwardToken` or `nextForwardToken`
3374
+ # returned is NOT equal to the `nextToken` that you passed into the API
3375
+ # call, there might be more log events available. The token that you use
3376
+ # depends on the direction you want to move in along the log stream. The
3377
+ # returned tokens are never null.
3378
+ #
3379
+ # <note markdown="1"> If you set `startFromHead` to `true` and you don’t include `endTime`
3380
+ # in your request, you can end up in a situation where the pagination
3381
+ # doesn't terminate. This can happen when the new log events are being
3382
+ # added to the target log streams faster than they are being read. This
3383
+ # situation is a good use case for the CloudWatch Logs [Live Tail][1]
3384
+ # feature.
3385
+ #
3386
+ # </note>
3337
3387
  #
3338
3388
  # If you are using CloudWatch cross-account observability, you can use
3339
3389
  # this operation in a monitoring account and view data from the linked
3340
3390
  # source accounts. For more information, see [CloudWatch cross-account
3341
- # observability][1].
3391
+ # observability][2].
3342
3392
  #
3343
3393
  # You can specify the log group to search by using either
3344
3394
  # `logGroupIdentifier` or `logGroupName`. You must include one of these
3345
3395
  # two parameters, but you can't include both.
3346
3396
  #
3397
+ # <note markdown="1"> If you are using [log transformation][3], the `GetLogEvents` operation
3398
+ # returns only the original versions of log events, before they were
3399
+ # transformed. To view the transformed versions, you must use a
3400
+ # [CloudWatch Logs query.][4]
3347
3401
  #
3402
+ # </note>
3348
3403
  #
3349
- # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
3404
+ #
3405
+ #
3406
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html
3407
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
3408
+ # [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html
3409
+ # [4]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
3350
3410
  #
3351
3411
  # @option params [String] :log_group_name
3352
3412
  # The name of the log group.
@@ -7001,7 +7061,7 @@ module Aws::CloudWatchLogs
7001
7061
  tracer: tracer
7002
7062
  )
7003
7063
  context[:gem_name] = 'aws-sdk-cloudwatchlogs'
7004
- context[:gem_version] = '1.109.0'
7064
+ context[:gem_version] = '1.110.0'
7005
7065
  Seahorse::Client::Request.new(handlers, context)
7006
7066
  end
7007
7067
 
@@ -152,6 +152,7 @@ module Aws::CloudWatchLogs
152
152
  DestinationField = Shapes::StringShape.new(name: 'DestinationField')
153
153
  DestinationName = Shapes::StringShape.new(name: 'DestinationName')
154
154
  Destinations = Shapes::ListShape.new(name: 'Destinations')
155
+ DetectorKmsKeyArn = Shapes::StringShape.new(name: 'DetectorKmsKeyArn')
155
156
  DetectorName = Shapes::StringShape.new(name: 'DetectorName')
156
157
  Dimensions = Shapes::MapShape.new(name: 'Dimensions')
157
158
  DimensionsKey = Shapes::StringShape.new(name: 'DimensionsKey')
@@ -664,7 +665,7 @@ module Aws::CloudWatchLogs
664
665
  CreateLogAnomalyDetectorRequest.add_member(:detector_name, Shapes::ShapeRef.new(shape: DetectorName, location_name: "detectorName"))
665
666
  CreateLogAnomalyDetectorRequest.add_member(:evaluation_frequency, Shapes::ShapeRef.new(shape: EvaluationFrequency, location_name: "evaluationFrequency"))
666
667
  CreateLogAnomalyDetectorRequest.add_member(:filter_pattern, Shapes::ShapeRef.new(shape: FilterPattern, location_name: "filterPattern"))
667
- CreateLogAnomalyDetectorRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
668
+ CreateLogAnomalyDetectorRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: DetectorKmsKeyArn, location_name: "kmsKeyId"))
668
669
  CreateLogAnomalyDetectorRequest.add_member(:anomaly_visibility_time, Shapes::ShapeRef.new(shape: AnomalyVisibilityTime, location_name: "anomalyVisibilityTime"))
669
670
  CreateLogAnomalyDetectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
670
671
  CreateLogAnomalyDetectorRequest.struct_class = Types::CreateLogAnomalyDetectorRequest
@@ -298,7 +298,7 @@ module Aws::CloudWatchLogs
298
298
  # @return [String]
299
299
  #
300
300
  # @!attribute [rw] kms_key_id
301
- # The ID of the KMS key assigned to this anomaly detector, if any.
301
+ # The ARN of the KMS key assigned to this anomaly detector, if any.
302
302
  # @return [String]
303
303
  #
304
304
  # @!attribute [rw] creation_time_stamp
@@ -815,8 +815,9 @@ module Aws::CloudWatchLogs
815
815
  # both this key and for the anomaly detector to retrieve information
816
816
  # about the anomalies that it finds.
817
817
  #
818
- # For more information about using a KMS key and to see the required
819
- # IAM policy, see [Use a KMS key with an anomaly detector][1].
818
+ # Make sure the value provided is a valid KMS key ARN. For more
819
+ # information about using a KMS key and to see the required IAM
820
+ # policy, see [Use a KMS key with an anomaly detector][1].
820
821
  #
821
822
  #
822
823
  #
@@ -2843,6 +2844,9 @@ module Aws::CloudWatchLogs
2843
2844
  # @!attribute [rw] next_token
2844
2845
  # The token to use when requesting the next set of items. The token
2845
2846
  # expires after 24 hours.
2847
+ #
2848
+ # If the results don't include a `nextToken`, then pagination is
2849
+ # finished.
2846
2850
  # @return [String]
2847
2851
  #
2848
2852
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEventsResponse AWS API Documentation
@@ -3124,7 +3128,7 @@ module Aws::CloudWatchLogs
3124
3128
  # @return [String]
3125
3129
  #
3126
3130
  # @!attribute [rw] kms_key_id
3127
- # The ID of the KMS key assigned to this anomaly detector, if any.
3131
+ # The ARN of the KMS key assigned to this anomaly detector, if any.
3128
3132
  # @return [String]
3129
3133
  #
3130
3134
  # @!attribute [rw] creation_time_stamp
@@ -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.109.0'
58
+ GEM_VERSION = '1.110.0'
59
59
 
60
60
  end
61
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatchlogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.109.0
4
+ version: 1.110.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core