aws-sdk-cloudwatchlogs 1.113.0 → 1.116.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 +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +138 -25
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +41 -1
- data/lib/aws-sdk-cloudwatchlogs/types.rb +144 -9
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- data/sig/client.rbs +18 -1
- data/sig/types.rbs +24 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3f05aa5f3992cba19243482e408e0db41d02ac6e93d92541b3e0d46f42c7e7b
|
4
|
+
data.tar.gz: 29b906f32e86c2f374f7692472aa19007388a3ef7cd08747b13516617c98a31d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d15df850344c249500543c67981af6bdc8b31510294263e8470e6f5c9c054335eeed2f9ab52fed5fce9d5291c0a401559386234ee8421fb454cb622aa9c9904
|
7
|
+
data.tar.gz: df18817c6003b12d70a53055c9af7639508c685c687c28693cb01b2f4e5e410f15b284342244f71cdd51f06043a5a7ebeb8ac93d2ac5dad2c107a661639f3e70
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.116.0 (2025-05-14)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds a new API "ListLogGroups" and an improvement in API "DescribeLogGroups"
|
8
|
+
|
9
|
+
1.115.0 (2025-05-12)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.114.0 (2025-05-09)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - We are pleased to announce limit increases to our grok processor logs transformation feature. Now you can define 20 Grok patterns in their configurations, with an expanded total pattern matching limit of 512 characters.
|
18
|
+
|
4
19
|
1.113.0 (2025-05-01)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.116.0
|
@@ -202,8 +202,7 @@ module Aws::CloudWatchLogs
|
|
202
202
|
# accepted modes and the configuration defaults that are included.
|
203
203
|
#
|
204
204
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
205
|
-
#
|
206
|
-
# to default service endpoint when available.
|
205
|
+
# When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
|
207
206
|
#
|
208
207
|
# @option options [Boolean] :disable_request_compression (false)
|
209
208
|
# When set to 'true' the request body will not be compressed
|
@@ -2249,9 +2248,9 @@ module Aws::CloudWatchLogs
|
|
2249
2248
|
req.send_request(options)
|
2250
2249
|
end
|
2251
2250
|
|
2252
|
-
#
|
2253
|
-
# filter the results by prefix. The results are ASCII-sorted
|
2254
|
-
# group name.
|
2251
|
+
# Returns information about log groups. You can return all your log
|
2252
|
+
# groups or filter the results by prefix. The results are ASCII-sorted
|
2253
|
+
# by log group name.
|
2255
2254
|
#
|
2256
2255
|
# CloudWatch Logs doesn't support IAM policies that control access to
|
2257
2256
|
# the `DescribeLogGroups` action by using the `aws:ResourceTag/key-name
|
@@ -2271,7 +2270,7 @@ module Aws::CloudWatchLogs
|
|
2271
2270
|
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
2272
2271
|
#
|
2273
2272
|
# @option params [Array<String>] :account_identifiers
|
2274
|
-
# When `includeLinkedAccounts` is set to `
|
2273
|
+
# When `includeLinkedAccounts` is set to `true`, use this parameter to
|
2275
2274
|
# specify the list of accounts to search. You can specify as many as 20
|
2276
2275
|
# account IDs in the array.
|
2277
2276
|
#
|
@@ -2307,7 +2306,7 @@ module Aws::CloudWatchLogs
|
|
2307
2306
|
# the default is up to 50 items.
|
2308
2307
|
#
|
2309
2308
|
# @option params [Boolean] :include_linked_accounts
|
2310
|
-
# If you are using a monitoring account, set this to `
|
2309
|
+
# If you are using a monitoring account, set this to `true` to have the
|
2311
2310
|
# operation return log groups in the accounts listed in
|
2312
2311
|
# `accountIdentifiers`.
|
2313
2312
|
#
|
@@ -2316,7 +2315,13 @@ module Aws::CloudWatchLogs
|
|
2316
2315
|
# account and all log groups in all source accounts that are linked to
|
2317
2316
|
# the monitoring account.
|
2318
2317
|
#
|
2318
|
+
# The default for this parameter is `false`.
|
2319
|
+
#
|
2319
2320
|
# @option params [String] :log_group_class
|
2321
|
+
# Use this parameter to limit the results to only those log groups in
|
2322
|
+
# the specified log group class. If you omit this parameter, log groups
|
2323
|
+
# of all classes can be returned.
|
2324
|
+
#
|
2320
2325
|
# Specifies the log group class for this log group. There are three
|
2321
2326
|
# classes:
|
2322
2327
|
#
|
@@ -2338,6 +2343,17 @@ module Aws::CloudWatchLogs
|
|
2338
2343
|
#
|
2339
2344
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html
|
2340
2345
|
#
|
2346
|
+
# @option params [Array<String>] :log_group_identifiers
|
2347
|
+
# Use this array to filter the list of log groups returned. If you
|
2348
|
+
# specify this parameter, the only other filter that you can choose to
|
2349
|
+
# specify is `includeLinkedAccounts`.
|
2350
|
+
#
|
2351
|
+
# If you are using this operation in a monitoring account, you can
|
2352
|
+
# specify the ARNs of log groups in source accounts and in the
|
2353
|
+
# monitoring account itself. If you are using this operation in an
|
2354
|
+
# account that is not a cross-account monitoring account, you can
|
2355
|
+
# specify only log group names in the same account as the operation.
|
2356
|
+
#
|
2341
2357
|
# @return [Types::DescribeLogGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2342
2358
|
#
|
2343
2359
|
# * {Types::DescribeLogGroupsResponse#log_groups #log_groups} => Array<Types::LogGroup>
|
@@ -2355,6 +2371,7 @@ module Aws::CloudWatchLogs
|
|
2355
2371
|
# limit: 1,
|
2356
2372
|
# include_linked_accounts: false,
|
2357
2373
|
# log_group_class: "STANDARD", # accepts STANDARD, INFREQUENT_ACCESS, DELIVERY
|
2374
|
+
# log_group_identifiers: ["LogGroupIdentifier"],
|
2358
2375
|
# })
|
2359
2376
|
#
|
2360
2377
|
# @example Response structure
|
@@ -2901,14 +2918,9 @@ module Aws::CloudWatchLogs
|
|
2901
2918
|
# If the results don't include a `nextToken`, then pagination is
|
2902
2919
|
# finished.
|
2903
2920
|
#
|
2904
|
-
#
|
2905
|
-
#
|
2906
|
-
#
|
2907
|
-
# added to the target log streams faster than they are being read. This
|
2908
|
-
# situation is a good use case for the CloudWatch Logs [Live Tail][1]
|
2909
|
-
# feature.
|
2910
|
-
#
|
2911
|
-
# </note>
|
2921
|
+
# Specifying the `limit` parameter only guarantees that a single page
|
2922
|
+
# doesn't return more log events than the specified limit, but it might
|
2923
|
+
# return fewer events than the limit. This is the expected API behavior.
|
2912
2924
|
#
|
2913
2925
|
# The returned log events are sorted by event timestamp, the timestamp
|
2914
2926
|
# when the event was ingested by CloudWatch Logs, and the ID of the
|
@@ -2917,21 +2929,20 @@ module Aws::CloudWatchLogs
|
|
2917
2929
|
# If you are using CloudWatch cross-account observability, you can use
|
2918
2930
|
# this operation in a monitoring account and view data from the linked
|
2919
2931
|
# source accounts. For more information, see [CloudWatch cross-account
|
2920
|
-
# observability][
|
2932
|
+
# observability][1].
|
2921
2933
|
#
|
2922
|
-
# <note markdown="1"> If you are using [log transformation][
|
2934
|
+
# <note markdown="1"> If you are using [log transformation][2], the `FilterLogEvents`
|
2923
2935
|
# operation returns only the original versions of log events, before
|
2924
2936
|
# they were transformed. To view the transformed versions, you must use
|
2925
|
-
# a [CloudWatch Logs query.][
|
2937
|
+
# a [CloudWatch Logs query.][3]
|
2926
2938
|
#
|
2927
2939
|
# </note>
|
2928
2940
|
#
|
2929
2941
|
#
|
2930
2942
|
#
|
2931
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/
|
2932
|
-
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/
|
2933
|
-
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/
|
2934
|
-
# [4]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
|
2943
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
2944
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html
|
2945
|
+
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
|
2935
2946
|
#
|
2936
2947
|
# @option params [String] :log_group_name
|
2937
2948
|
# The name of the log group to search.
|
@@ -4006,6 +4017,108 @@ module Aws::CloudWatchLogs
|
|
4006
4017
|
req.send_request(options)
|
4007
4018
|
end
|
4008
4019
|
|
4020
|
+
# Returns a list of log groups in the Region in your account. If you are
|
4021
|
+
# performing this action in a monitoring account, you can choose to also
|
4022
|
+
# return log groups from source accounts that are linked to the
|
4023
|
+
# monitoring account. For more information about using cross-account
|
4024
|
+
# observability to set up monitoring accounts and source accounts, see [
|
4025
|
+
# CloudWatch cross-account observability][1].
|
4026
|
+
#
|
4027
|
+
# You can optionally filter the list by log group class and by using
|
4028
|
+
# regular expressions in your request to match strings in the log group
|
4029
|
+
# names.
|
4030
|
+
#
|
4031
|
+
# This operation is paginated. By default, your first use of this
|
4032
|
+
# operation returns 50 results, and includes a token to use in a
|
4033
|
+
# subsequent operation to return more results.
|
4034
|
+
#
|
4035
|
+
#
|
4036
|
+
#
|
4037
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
4038
|
+
#
|
4039
|
+
# @option params [String] :log_group_name_pattern
|
4040
|
+
# Use this parameter to limit the returned log groups to only those with
|
4041
|
+
# names that match the pattern that you specify. This parameter is a
|
4042
|
+
# regular expression that can match prefixes and substrings, and
|
4043
|
+
# supports wildcard matching and matching multiple patterns, as in the
|
4044
|
+
# following examples.
|
4045
|
+
#
|
4046
|
+
# * Use `^` to match log group names by prefix.
|
4047
|
+
#
|
4048
|
+
# * For a substring match, specify the string to match. All matches are
|
4049
|
+
# case sensitive
|
4050
|
+
#
|
4051
|
+
# * To match multiple patterns, separate them with a `|` as in the
|
4052
|
+
# example `^/aws/lambda|discovery`
|
4053
|
+
#
|
4054
|
+
# You can specify as many as five different regular expression patterns
|
4055
|
+
# in this field, each of which must be between 3 and 24 characters. You
|
4056
|
+
# can include the `^` symbol as many as five times, and include the `|`
|
4057
|
+
# symbol as many as four times.
|
4058
|
+
#
|
4059
|
+
# @option params [String] :log_group_class
|
4060
|
+
# Use this parameter to limit the results to only those log groups in
|
4061
|
+
# the specified log group class. If you omit this parameter, log groups
|
4062
|
+
# of all classes can be returned.
|
4063
|
+
#
|
4064
|
+
# @option params [Boolean] :include_linked_accounts
|
4065
|
+
# If you are using a monitoring account, set this to `true` to have the
|
4066
|
+
# operation return log groups in the accounts listed in
|
4067
|
+
# `accountIdentifiers`.
|
4068
|
+
#
|
4069
|
+
# If this parameter is set to `true` and `accountIdentifiers` contains a
|
4070
|
+
# null value, the operation returns all log groups in the monitoring
|
4071
|
+
# account and all log groups in all source accounts that are linked to
|
4072
|
+
# the monitoring account.
|
4073
|
+
#
|
4074
|
+
# The default for this parameter is `false`.
|
4075
|
+
#
|
4076
|
+
# @option params [Array<String>] :account_identifiers
|
4077
|
+
# When `includeLinkedAccounts` is set to `true`, use this parameter to
|
4078
|
+
# specify the list of accounts to search. You can specify as many as 20
|
4079
|
+
# account IDs in the array.
|
4080
|
+
#
|
4081
|
+
# @option params [String] :next_token
|
4082
|
+
# The token for the next set of items to return. The token expires after
|
4083
|
+
# 24 hours.
|
4084
|
+
#
|
4085
|
+
# @option params [Integer] :limit
|
4086
|
+
# The maximum number of log groups to return. If you omit this
|
4087
|
+
# parameter, the default is up to 50 log groups.
|
4088
|
+
#
|
4089
|
+
# @return [Types::ListLogGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4090
|
+
#
|
4091
|
+
# * {Types::ListLogGroupsResponse#log_groups #log_groups} => Array<Types::LogGroupSummary>
|
4092
|
+
# * {Types::ListLogGroupsResponse#next_token #next_token} => String
|
4093
|
+
#
|
4094
|
+
# @example Request syntax with placeholder values
|
4095
|
+
#
|
4096
|
+
# resp = client.list_log_groups({
|
4097
|
+
# log_group_name_pattern: "LogGroupNameRegexPattern",
|
4098
|
+
# log_group_class: "STANDARD", # accepts STANDARD, INFREQUENT_ACCESS, DELIVERY
|
4099
|
+
# include_linked_accounts: false,
|
4100
|
+
# account_identifiers: ["AccountId"],
|
4101
|
+
# next_token: "NextToken",
|
4102
|
+
# limit: 1,
|
4103
|
+
# })
|
4104
|
+
#
|
4105
|
+
# @example Response structure
|
4106
|
+
#
|
4107
|
+
# resp.log_groups #=> Array
|
4108
|
+
# resp.log_groups[0].log_group_name #=> String
|
4109
|
+
# resp.log_groups[0].log_group_arn #=> String
|
4110
|
+
# resp.log_groups[0].log_group_class #=> String, one of "STANDARD", "INFREQUENT_ACCESS", "DELIVERY"
|
4111
|
+
# resp.next_token #=> String
|
4112
|
+
#
|
4113
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogGroups AWS API Documentation
|
4114
|
+
#
|
4115
|
+
# @overload list_log_groups(params = {})
|
4116
|
+
# @param [Hash] params ({})
|
4117
|
+
def list_log_groups(params = {}, options = {})
|
4118
|
+
req = build_request(:list_log_groups, params)
|
4119
|
+
req.send_request(options)
|
4120
|
+
end
|
4121
|
+
|
4009
4122
|
# Returns a list of the log groups that were analyzed during a single
|
4010
4123
|
# CloudWatch Logs Insights query. This can be useful for queries that
|
4011
4124
|
# use log group name prefixes or the `filterIndex` command, because the
|
@@ -5959,7 +6072,7 @@ module Aws::CloudWatchLogs
|
|
5959
6072
|
# entries: [ # required
|
5960
6073
|
# {
|
5961
6074
|
# source: "Source", # required
|
5962
|
-
# delimiter: "
|
6075
|
+
# delimiter: "SplitStringDelimiter", # required
|
5963
6076
|
# },
|
5964
6077
|
# ],
|
5965
6078
|
# },
|
@@ -6759,7 +6872,7 @@ module Aws::CloudWatchLogs
|
|
6759
6872
|
# entries: [ # required
|
6760
6873
|
# {
|
6761
6874
|
# source: "Source", # required
|
6762
|
-
# delimiter: "
|
6875
|
+
# delimiter: "SplitStringDelimiter", # required
|
6763
6876
|
# },
|
6764
6877
|
# ],
|
6765
6878
|
# },
|
@@ -7085,7 +7198,7 @@ module Aws::CloudWatchLogs
|
|
7085
7198
|
tracer: tracer
|
7086
7199
|
)
|
7087
7200
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
7088
|
-
context[:gem_version] = '1.
|
7201
|
+
context[:gem_version] = '1.116.0'
|
7089
7202
|
Seahorse::Client::Request.new(handlers, context)
|
7090
7203
|
end
|
7091
7204
|
|
@@ -131,6 +131,7 @@ module Aws::CloudWatchLogs
|
|
131
131
|
DescribeIndexPoliciesRequest = Shapes::StructureShape.new(name: 'DescribeIndexPoliciesRequest')
|
132
132
|
DescribeIndexPoliciesResponse = Shapes::StructureShape.new(name: 'DescribeIndexPoliciesResponse')
|
133
133
|
DescribeLimit = Shapes::IntegerShape.new(name: 'DescribeLimit')
|
134
|
+
DescribeLogGroupsLogGroupIdentifiers = Shapes::ListShape.new(name: 'DescribeLogGroupsLogGroupIdentifiers')
|
134
135
|
DescribeLogGroupsRequest = Shapes::StructureShape.new(name: 'DescribeLogGroupsRequest')
|
135
136
|
DescribeLogGroupsResponse = Shapes::StructureShape.new(name: 'DescribeLogGroupsResponse')
|
136
137
|
DescribeLogStreamsRequest = Shapes::StructureShape.new(name: 'DescribeLogStreamsRequest')
|
@@ -266,12 +267,15 @@ module Aws::CloudWatchLogs
|
|
266
267
|
ListAnomaliesResponse = Shapes::StructureShape.new(name: 'ListAnomaliesResponse')
|
267
268
|
ListIntegrationsRequest = Shapes::StructureShape.new(name: 'ListIntegrationsRequest')
|
268
269
|
ListIntegrationsResponse = Shapes::StructureShape.new(name: 'ListIntegrationsResponse')
|
270
|
+
ListLimit = Shapes::IntegerShape.new(name: 'ListLimit')
|
269
271
|
ListLogAnomalyDetectorsLimit = Shapes::IntegerShape.new(name: 'ListLogAnomalyDetectorsLimit')
|
270
272
|
ListLogAnomalyDetectorsRequest = Shapes::StructureShape.new(name: 'ListLogAnomalyDetectorsRequest')
|
271
273
|
ListLogAnomalyDetectorsResponse = Shapes::StructureShape.new(name: 'ListLogAnomalyDetectorsResponse')
|
272
274
|
ListLogGroupsForQueryMaxResults = Shapes::IntegerShape.new(name: 'ListLogGroupsForQueryMaxResults')
|
273
275
|
ListLogGroupsForQueryRequest = Shapes::StructureShape.new(name: 'ListLogGroupsForQueryRequest')
|
274
276
|
ListLogGroupsForQueryResponse = Shapes::StructureShape.new(name: 'ListLogGroupsForQueryResponse')
|
277
|
+
ListLogGroupsRequest = Shapes::StructureShape.new(name: 'ListLogGroupsRequest')
|
278
|
+
ListLogGroupsResponse = Shapes::StructureShape.new(name: 'ListLogGroupsResponse')
|
275
279
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
276
280
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
277
281
|
ListTagsLogGroupRequest = Shapes::StructureShape.new(name: 'ListTagsLogGroupRequest')
|
@@ -295,7 +299,10 @@ module Aws::CloudWatchLogs
|
|
295
299
|
LogGroupIdentifiers = Shapes::ListShape.new(name: 'LogGroupIdentifiers')
|
296
300
|
LogGroupName = Shapes::StringShape.new(name: 'LogGroupName')
|
297
301
|
LogGroupNamePattern = Shapes::StringShape.new(name: 'LogGroupNamePattern')
|
302
|
+
LogGroupNameRegexPattern = Shapes::StringShape.new(name: 'LogGroupNameRegexPattern')
|
298
303
|
LogGroupNames = Shapes::ListShape.new(name: 'LogGroupNames')
|
304
|
+
LogGroupSummaries = Shapes::ListShape.new(name: 'LogGroupSummaries')
|
305
|
+
LogGroupSummary = Shapes::StructureShape.new(name: 'LogGroupSummary')
|
299
306
|
LogGroups = Shapes::ListShape.new(name: 'LogGroups')
|
300
307
|
LogRecord = Shapes::MapShape.new(name: 'LogRecord')
|
301
308
|
LogRecordPointer = Shapes::StringShape.new(name: 'LogRecordPointer')
|
@@ -452,6 +459,7 @@ module Aws::CloudWatchLogs
|
|
452
459
|
Source = Shapes::StringShape.new(name: 'Source')
|
453
460
|
SourceTimezone = Shapes::StringShape.new(name: 'SourceTimezone')
|
454
461
|
SplitString = Shapes::StructureShape.new(name: 'SplitString')
|
462
|
+
SplitStringDelimiter = Shapes::StringShape.new(name: 'SplitStringDelimiter')
|
455
463
|
SplitStringEntries = Shapes::ListShape.new(name: 'SplitStringEntries')
|
456
464
|
SplitStringEntry = Shapes::StructureShape.new(name: 'SplitStringEntry')
|
457
465
|
StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
|
@@ -891,6 +899,8 @@ module Aws::CloudWatchLogs
|
|
891
899
|
DescribeIndexPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
892
900
|
DescribeIndexPoliciesResponse.struct_class = Types::DescribeIndexPoliciesResponse
|
893
901
|
|
902
|
+
DescribeLogGroupsLogGroupIdentifiers.member = Shapes::ShapeRef.new(shape: LogGroupIdentifier)
|
903
|
+
|
894
904
|
DescribeLogGroupsRequest.add_member(:account_identifiers, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIdentifiers"))
|
895
905
|
DescribeLogGroupsRequest.add_member(:log_group_name_prefix, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupNamePrefix"))
|
896
906
|
DescribeLogGroupsRequest.add_member(:log_group_name_pattern, Shapes::ShapeRef.new(shape: LogGroupNamePattern, location_name: "logGroupNamePattern"))
|
@@ -898,6 +908,7 @@ module Aws::CloudWatchLogs
|
|
898
908
|
DescribeLogGroupsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
|
899
909
|
DescribeLogGroupsRequest.add_member(:include_linked_accounts, Shapes::ShapeRef.new(shape: IncludeLinkedAccounts, location_name: "includeLinkedAccounts"))
|
900
910
|
DescribeLogGroupsRequest.add_member(:log_group_class, Shapes::ShapeRef.new(shape: LogGroupClass, location_name: "logGroupClass"))
|
911
|
+
DescribeLogGroupsRequest.add_member(:log_group_identifiers, Shapes::ShapeRef.new(shape: DescribeLogGroupsLogGroupIdentifiers, location_name: "logGroupIdentifiers"))
|
901
912
|
DescribeLogGroupsRequest.struct_class = Types::DescribeLogGroupsRequest
|
902
913
|
|
903
914
|
DescribeLogGroupsResponse.add_member(:log_groups, Shapes::ShapeRef.new(shape: LogGroups, location_name: "logGroups"))
|
@@ -1247,6 +1258,18 @@ module Aws::CloudWatchLogs
|
|
1247
1258
|
ListLogGroupsForQueryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1248
1259
|
ListLogGroupsForQueryResponse.struct_class = Types::ListLogGroupsForQueryResponse
|
1249
1260
|
|
1261
|
+
ListLogGroupsRequest.add_member(:log_group_name_pattern, Shapes::ShapeRef.new(shape: LogGroupNameRegexPattern, location_name: "logGroupNamePattern"))
|
1262
|
+
ListLogGroupsRequest.add_member(:log_group_class, Shapes::ShapeRef.new(shape: LogGroupClass, location_name: "logGroupClass"))
|
1263
|
+
ListLogGroupsRequest.add_member(:include_linked_accounts, Shapes::ShapeRef.new(shape: IncludeLinkedAccounts, location_name: "includeLinkedAccounts"))
|
1264
|
+
ListLogGroupsRequest.add_member(:account_identifiers, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIdentifiers"))
|
1265
|
+
ListLogGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1266
|
+
ListLogGroupsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: ListLimit, location_name: "limit"))
|
1267
|
+
ListLogGroupsRequest.struct_class = Types::ListLogGroupsRequest
|
1268
|
+
|
1269
|
+
ListLogGroupsResponse.add_member(:log_groups, Shapes::ShapeRef.new(shape: LogGroupSummaries, location_name: "logGroups"))
|
1270
|
+
ListLogGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1271
|
+
ListLogGroupsResponse.struct_class = Types::ListLogGroupsResponse
|
1272
|
+
|
1250
1273
|
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "resourceArn"))
|
1251
1274
|
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
1252
1275
|
|
@@ -1320,6 +1343,13 @@ module Aws::CloudWatchLogs
|
|
1320
1343
|
|
1321
1344
|
LogGroupNames.member = Shapes::ShapeRef.new(shape: LogGroupName)
|
1322
1345
|
|
1346
|
+
LogGroupSummaries.member = Shapes::ShapeRef.new(shape: LogGroupSummary)
|
1347
|
+
|
1348
|
+
LogGroupSummary.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
1349
|
+
LogGroupSummary.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "logGroupArn"))
|
1350
|
+
LogGroupSummary.add_member(:log_group_class, Shapes::ShapeRef.new(shape: LogGroupClass, location_name: "logGroupClass"))
|
1351
|
+
LogGroupSummary.struct_class = Types::LogGroupSummary
|
1352
|
+
|
1323
1353
|
LogGroups.member = Shapes::ShapeRef.new(shape: LogGroup)
|
1324
1354
|
|
1325
1355
|
LogRecord.key = Shapes::ShapeRef.new(shape: Field)
|
@@ -1764,7 +1794,7 @@ module Aws::CloudWatchLogs
|
|
1764
1794
|
SplitStringEntries.member = Shapes::ShapeRef.new(shape: SplitStringEntry)
|
1765
1795
|
|
1766
1796
|
SplitStringEntry.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
1767
|
-
SplitStringEntry.add_member(:delimiter, Shapes::ShapeRef.new(shape:
|
1797
|
+
SplitStringEntry.add_member(:delimiter, Shapes::ShapeRef.new(shape: SplitStringDelimiter, required: true, location_name: "delimiter"))
|
1768
1798
|
SplitStringEntry.struct_class = Types::SplitStringEntry
|
1769
1799
|
|
1770
1800
|
StartLiveTailLogGroupIdentifiers.member = Shapes::ShapeRef.new(shape: LogGroupIdentifier)
|
@@ -2718,6 +2748,16 @@ module Aws::CloudWatchLogs
|
|
2718
2748
|
)
|
2719
2749
|
end)
|
2720
2750
|
|
2751
|
+
api.add_operation(:list_log_groups, Seahorse::Model::Operation.new.tap do |o|
|
2752
|
+
o.name = "ListLogGroups"
|
2753
|
+
o.http_method = "POST"
|
2754
|
+
o.http_request_uri = "/"
|
2755
|
+
o.input = Shapes::ShapeRef.new(shape: ListLogGroupsRequest)
|
2756
|
+
o.output = Shapes::ShapeRef.new(shape: ListLogGroupsResponse)
|
2757
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2758
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
2759
|
+
end)
|
2760
|
+
|
2721
2761
|
api.add_operation(:list_log_groups_for_query, Seahorse::Model::Operation.new.tap do |o|
|
2722
2762
|
o.name = "ListLogGroupsForQuery"
|
2723
2763
|
o.http_method = "POST"
|
@@ -2008,7 +2008,7 @@ module Aws::CloudWatchLogs
|
|
2008
2008
|
end
|
2009
2009
|
|
2010
2010
|
# @!attribute [rw] account_identifiers
|
2011
|
-
# When `includeLinkedAccounts` is set to `
|
2011
|
+
# When `includeLinkedAccounts` is set to `true`, use this parameter to
|
2012
2012
|
# specify the list of accounts to search. You can specify as many as
|
2013
2013
|
# 20 account IDs in the array.
|
2014
2014
|
# @return [Array<String>]
|
@@ -2050,7 +2050,7 @@ module Aws::CloudWatchLogs
|
|
2050
2050
|
# @return [Integer]
|
2051
2051
|
#
|
2052
2052
|
# @!attribute [rw] include_linked_accounts
|
2053
|
-
# If you are using a monitoring account, set this to `
|
2053
|
+
# If you are using a monitoring account, set this to `true` to have
|
2054
2054
|
# the operation return log groups in the accounts listed in
|
2055
2055
|
# `accountIdentifiers`.
|
2056
2056
|
#
|
@@ -2058,9 +2058,15 @@ module Aws::CloudWatchLogs
|
|
2058
2058
|
# a null value, the operation returns all log groups in the monitoring
|
2059
2059
|
# account and all log groups in all source accounts that are linked to
|
2060
2060
|
# the monitoring account.
|
2061
|
+
#
|
2062
|
+
# The default for this parameter is `false`.
|
2061
2063
|
# @return [Boolean]
|
2062
2064
|
#
|
2063
2065
|
# @!attribute [rw] log_group_class
|
2066
|
+
# Use this parameter to limit the results to only those log groups in
|
2067
|
+
# the specified log group class. If you omit this parameter, log
|
2068
|
+
# groups of all classes can be returned.
|
2069
|
+
#
|
2064
2070
|
# Specifies the log group class for this log group. There are three
|
2065
2071
|
# classes:
|
2066
2072
|
#
|
@@ -2083,6 +2089,18 @@ module Aws::CloudWatchLogs
|
|
2083
2089
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html
|
2084
2090
|
# @return [String]
|
2085
2091
|
#
|
2092
|
+
# @!attribute [rw] log_group_identifiers
|
2093
|
+
# Use this array to filter the list of log groups returned. If you
|
2094
|
+
# specify this parameter, the only other filter that you can choose to
|
2095
|
+
# specify is `includeLinkedAccounts`.
|
2096
|
+
#
|
2097
|
+
# If you are using this operation in a monitoring account, you can
|
2098
|
+
# specify the ARNs of log groups in source accounts and in the
|
2099
|
+
# monitoring account itself. If you are using this operation in an
|
2100
|
+
# account that is not a cross-account monitoring account, you can
|
2101
|
+
# specify only log group names in the same account as the operation.
|
2102
|
+
# @return [Array<String>]
|
2103
|
+
#
|
2086
2104
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroupsRequest AWS API Documentation
|
2087
2105
|
#
|
2088
2106
|
class DescribeLogGroupsRequest < Struct.new(
|
@@ -2092,16 +2110,15 @@ module Aws::CloudWatchLogs
|
|
2092
2110
|
:next_token,
|
2093
2111
|
:limit,
|
2094
2112
|
:include_linked_accounts,
|
2095
|
-
:log_group_class
|
2113
|
+
:log_group_class,
|
2114
|
+
:log_group_identifiers)
|
2096
2115
|
SENSITIVE = []
|
2097
2116
|
include Aws::Structure
|
2098
2117
|
end
|
2099
2118
|
|
2100
2119
|
# @!attribute [rw] log_groups
|
2101
|
-
#
|
2102
|
-
#
|
2103
|
-
# If the `retentionInDays` value is not included for a log group, then
|
2104
|
-
# that log group's events do not expire.
|
2120
|
+
# An array of structures, where each structure contains the
|
2121
|
+
# information about one log group.
|
2105
2122
|
# @return [Array<Types::LogGroup>]
|
2106
2123
|
#
|
2107
2124
|
# @!attribute [rw] next_token
|
@@ -3513,7 +3530,7 @@ module Aws::CloudWatchLogs
|
|
3513
3530
|
#
|
3514
3531
|
#
|
3515
3532
|
#
|
3516
|
-
# [1]: https://docs.aws.amazon.com/
|
3533
|
+
# [1]: https://docs.aws.amazon.com/mazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#Grok-Patterns
|
3517
3534
|
# @return [String]
|
3518
3535
|
#
|
3519
3536
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Grok AWS API Documentation
|
@@ -3863,6 +3880,94 @@ module Aws::CloudWatchLogs
|
|
3863
3880
|
include Aws::Structure
|
3864
3881
|
end
|
3865
3882
|
|
3883
|
+
# @!attribute [rw] log_group_name_pattern
|
3884
|
+
# Use this parameter to limit the returned log groups to only those
|
3885
|
+
# with names that match the pattern that you specify. This parameter
|
3886
|
+
# is a regular expression that can match prefixes and substrings, and
|
3887
|
+
# supports wildcard matching and matching multiple patterns, as in the
|
3888
|
+
# following examples.
|
3889
|
+
#
|
3890
|
+
# * Use `^` to match log group names by prefix.
|
3891
|
+
#
|
3892
|
+
# * For a substring match, specify the string to match. All matches
|
3893
|
+
# are case sensitive
|
3894
|
+
#
|
3895
|
+
# * To match multiple patterns, separate them with a `|` as in the
|
3896
|
+
# example `^/aws/lambda|discovery`
|
3897
|
+
#
|
3898
|
+
# You can specify as many as five different regular expression
|
3899
|
+
# patterns in this field, each of which must be between 3 and 24
|
3900
|
+
# characters. You can include the `^` symbol as many as five times,
|
3901
|
+
# and include the `|` symbol as many as four times.
|
3902
|
+
# @return [String]
|
3903
|
+
#
|
3904
|
+
# @!attribute [rw] log_group_class
|
3905
|
+
# Use this parameter to limit the results to only those log groups in
|
3906
|
+
# the specified log group class. If you omit this parameter, log
|
3907
|
+
# groups of all classes can be returned.
|
3908
|
+
# @return [String]
|
3909
|
+
#
|
3910
|
+
# @!attribute [rw] include_linked_accounts
|
3911
|
+
# If you are using a monitoring account, set this to `true` to have
|
3912
|
+
# the operation return log groups in the accounts listed in
|
3913
|
+
# `accountIdentifiers`.
|
3914
|
+
#
|
3915
|
+
# If this parameter is set to `true` and `accountIdentifiers` contains
|
3916
|
+
# a null value, the operation returns all log groups in the monitoring
|
3917
|
+
# account and all log groups in all source accounts that are linked to
|
3918
|
+
# the monitoring account.
|
3919
|
+
#
|
3920
|
+
# The default for this parameter is `false`.
|
3921
|
+
# @return [Boolean]
|
3922
|
+
#
|
3923
|
+
# @!attribute [rw] account_identifiers
|
3924
|
+
# When `includeLinkedAccounts` is set to `true`, use this parameter to
|
3925
|
+
# specify the list of accounts to search. You can specify as many as
|
3926
|
+
# 20 account IDs in the array.
|
3927
|
+
# @return [Array<String>]
|
3928
|
+
#
|
3929
|
+
# @!attribute [rw] next_token
|
3930
|
+
# The token for the next set of items to return. The token expires
|
3931
|
+
# after 24 hours.
|
3932
|
+
# @return [String]
|
3933
|
+
#
|
3934
|
+
# @!attribute [rw] limit
|
3935
|
+
# The maximum number of log groups to return. If you omit this
|
3936
|
+
# parameter, the default is up to 50 log groups.
|
3937
|
+
# @return [Integer]
|
3938
|
+
#
|
3939
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogGroupsRequest AWS API Documentation
|
3940
|
+
#
|
3941
|
+
class ListLogGroupsRequest < Struct.new(
|
3942
|
+
:log_group_name_pattern,
|
3943
|
+
:log_group_class,
|
3944
|
+
:include_linked_accounts,
|
3945
|
+
:account_identifiers,
|
3946
|
+
:next_token,
|
3947
|
+
:limit)
|
3948
|
+
SENSITIVE = []
|
3949
|
+
include Aws::Structure
|
3950
|
+
end
|
3951
|
+
|
3952
|
+
# @!attribute [rw] log_groups
|
3953
|
+
# An array of structures, where each structure contains the
|
3954
|
+
# information about one log group.
|
3955
|
+
# @return [Array<Types::LogGroupSummary>]
|
3956
|
+
#
|
3957
|
+
# @!attribute [rw] next_token
|
3958
|
+
# The token for the next set of items to return. The token expires
|
3959
|
+
# after 24 hours.
|
3960
|
+
# @return [String]
|
3961
|
+
#
|
3962
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogGroupsResponse AWS API Documentation
|
3963
|
+
#
|
3964
|
+
class ListLogGroupsResponse < Struct.new(
|
3965
|
+
:log_groups,
|
3966
|
+
:next_token)
|
3967
|
+
SENSITIVE = []
|
3968
|
+
include Aws::Structure
|
3969
|
+
end
|
3970
|
+
|
3866
3971
|
# @!attribute [rw] resource_arn
|
3867
3972
|
# The ARN of the resource that you want to view tags for.
|
3868
3973
|
#
|
@@ -3932,7 +4037,7 @@ module Aws::CloudWatchLogs
|
|
3932
4037
|
#
|
3933
4038
|
#
|
3934
4039
|
#
|
3935
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-listToMap
|
4040
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#CloudWatch-Logs-Transformation-listToMap
|
3936
4041
|
#
|
3937
4042
|
# @!attribute [rw] source
|
3938
4043
|
# The key in the log event that has a list of objects that will be
|
@@ -4299,6 +4404,36 @@ module Aws::CloudWatchLogs
|
|
4299
4404
|
include Aws::Structure
|
4300
4405
|
end
|
4301
4406
|
|
4407
|
+
# This structure contains information about one log group in your
|
4408
|
+
# account.
|
4409
|
+
#
|
4410
|
+
# @!attribute [rw] log_group_name
|
4411
|
+
# The name of the log group.
|
4412
|
+
# @return [String]
|
4413
|
+
#
|
4414
|
+
# @!attribute [rw] log_group_arn
|
4415
|
+
# The Amazon Resource Name (ARN) of the log group.
|
4416
|
+
# @return [String]
|
4417
|
+
#
|
4418
|
+
# @!attribute [rw] log_group_class
|
4419
|
+
# The log group class for this log group. For details about the
|
4420
|
+
# features supported by each log group class, see [Log classes][1]
|
4421
|
+
#
|
4422
|
+
#
|
4423
|
+
#
|
4424
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html
|
4425
|
+
# @return [String]
|
4426
|
+
#
|
4427
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/LogGroupSummary AWS API Documentation
|
4428
|
+
#
|
4429
|
+
class LogGroupSummary < Struct.new(
|
4430
|
+
:log_group_name,
|
4431
|
+
:log_group_arn,
|
4432
|
+
:log_group_class)
|
4433
|
+
SENSITIVE = []
|
4434
|
+
include Aws::Structure
|
4435
|
+
end
|
4436
|
+
|
4302
4437
|
# Represents a log stream, which is a sequence of log events from a
|
4303
4438
|
# single emitter of logs.
|
4304
4439
|
#
|
data/sig/client.rbs
CHANGED
@@ -414,7 +414,8 @@ module Aws
|
|
414
414
|
?next_token: ::String,
|
415
415
|
?limit: ::Integer,
|
416
416
|
?include_linked_accounts: bool,
|
417
|
-
?log_group_class: ("STANDARD" | "INFREQUENT_ACCESS" | "DELIVERY")
|
417
|
+
?log_group_class: ("STANDARD" | "INFREQUENT_ACCESS" | "DELIVERY"),
|
418
|
+
?log_group_identifiers: Array[::String]
|
418
419
|
) -> _DescribeLogGroupsResponseSuccess
|
419
420
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeLogGroupsResponseSuccess
|
420
421
|
|
@@ -727,6 +728,22 @@ module Aws
|
|
727
728
|
) -> _ListLogAnomalyDetectorsResponseSuccess
|
728
729
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLogAnomalyDetectorsResponseSuccess
|
729
730
|
|
731
|
+
interface _ListLogGroupsResponseSuccess
|
732
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListLogGroupsResponse]
|
733
|
+
def log_groups: () -> ::Array[Types::LogGroupSummary]
|
734
|
+
def next_token: () -> ::String
|
735
|
+
end
|
736
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#list_log_groups-instance_method
|
737
|
+
def list_log_groups: (
|
738
|
+
?log_group_name_pattern: ::String,
|
739
|
+
?log_group_class: ("STANDARD" | "INFREQUENT_ACCESS" | "DELIVERY"),
|
740
|
+
?include_linked_accounts: bool,
|
741
|
+
?account_identifiers: Array[::String],
|
742
|
+
?next_token: ::String,
|
743
|
+
?limit: ::Integer
|
744
|
+
) -> _ListLogGroupsResponseSuccess
|
745
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLogGroupsResponseSuccess
|
746
|
+
|
730
747
|
interface _ListLogGroupsForQueryResponseSuccess
|
731
748
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListLogGroupsForQueryResponse]
|
732
749
|
def log_group_identifiers: () -> ::Array[::String]
|
data/sig/types.rbs
CHANGED
@@ -478,6 +478,7 @@ module Aws::CloudWatchLogs
|
|
478
478
|
attr_accessor limit: ::Integer
|
479
479
|
attr_accessor include_linked_accounts: bool
|
480
480
|
attr_accessor log_group_class: ("STANDARD" | "INFREQUENT_ACCESS" | "DELIVERY")
|
481
|
+
attr_accessor log_group_identifiers: ::Array[::String]
|
481
482
|
SENSITIVE: []
|
482
483
|
end
|
483
484
|
|
@@ -920,6 +921,22 @@ module Aws::CloudWatchLogs
|
|
920
921
|
SENSITIVE: []
|
921
922
|
end
|
922
923
|
|
924
|
+
class ListLogGroupsRequest
|
925
|
+
attr_accessor log_group_name_pattern: ::String
|
926
|
+
attr_accessor log_group_class: ("STANDARD" | "INFREQUENT_ACCESS" | "DELIVERY")
|
927
|
+
attr_accessor include_linked_accounts: bool
|
928
|
+
attr_accessor account_identifiers: ::Array[::String]
|
929
|
+
attr_accessor next_token: ::String
|
930
|
+
attr_accessor limit: ::Integer
|
931
|
+
SENSITIVE: []
|
932
|
+
end
|
933
|
+
|
934
|
+
class ListLogGroupsResponse
|
935
|
+
attr_accessor log_groups: ::Array[Types::LogGroupSummary]
|
936
|
+
attr_accessor next_token: ::String
|
937
|
+
SENSITIVE: []
|
938
|
+
end
|
939
|
+
|
923
940
|
class ListTagsForResourceRequest
|
924
941
|
attr_accessor resource_arn: ::String
|
925
942
|
SENSITIVE: []
|
@@ -1009,6 +1026,13 @@ module Aws::CloudWatchLogs
|
|
1009
1026
|
SENSITIVE: []
|
1010
1027
|
end
|
1011
1028
|
|
1029
|
+
class LogGroupSummary
|
1030
|
+
attr_accessor log_group_name: ::String
|
1031
|
+
attr_accessor log_group_arn: ::String
|
1032
|
+
attr_accessor log_group_class: ("STANDARD" | "INFREQUENT_ACCESS" | "DELIVERY")
|
1033
|
+
SENSITIVE: []
|
1034
|
+
end
|
1035
|
+
|
1012
1036
|
class LogStream
|
1013
1037
|
attr_accessor log_stream_name: ::String
|
1014
1038
|
attr_accessor creation_time: ::Integer
|