aws-sdk-cloudwatchlogs 1.115.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edad62fe137428773e3840f6c574829227a3be32e5b8a89861fd1f714cbf02e9
4
- data.tar.gz: 9192b83d21ffb516a03ee275c7053881cb11420c84bd717b2be85bdfb8b17419
3
+ metadata.gz: a3f05aa5f3992cba19243482e408e0db41d02ac6e93d92541b3e0d46f42c7e7b
4
+ data.tar.gz: 29b906f32e86c2f374f7692472aa19007388a3ef7cd08747b13516617c98a31d
5
5
  SHA512:
6
- metadata.gz: d40dd32ceca8253c05e7a6b9b2af588b762fce9e35f0130e279add4e099833ac8f397b2f52186f9bf01f25e1c2973c88a23d2fc6b898fd8820660531f2beffdc
7
- data.tar.gz: 42aefe487fd8020aa21dcf52e7e3c48c8927dde3f650b3d70afd40a75b0b81b529353faad63ff31f33a567c285906cf199d6cc065a53a2a959097a56522c5eee
6
+ metadata.gz: 9d15df850344c249500543c67981af6bdc8b31510294263e8470e6f5c9c054335eeed2f9ab52fed5fce9d5291c0a401559386234ee8421fb454cb622aa9c9904
7
+ data.tar.gz: df18817c6003b12d70a53055c9af7639508c685c687c28693cb01b2f4e5e410f15b284342244f71cdd51f06043a5a7ebeb8ac93d2ac5dad2c107a661639f3e70
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.115.0 (2025-05-12)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.115.0
1
+ 1.116.0
@@ -2248,9 +2248,9 @@ module Aws::CloudWatchLogs
2248
2248
  req.send_request(options)
2249
2249
  end
2250
2250
 
2251
- # Lists the specified log groups. You can list all your log groups or
2252
- # filter the results by prefix. The results are ASCII-sorted by log
2253
- # 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.
2254
2254
  #
2255
2255
  # CloudWatch Logs doesn't support IAM policies that control access to
2256
2256
  # the `DescribeLogGroups` action by using the `aws:ResourceTag/key-name
@@ -2270,7 +2270,7 @@ module Aws::CloudWatchLogs
2270
2270
  # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
2271
2271
  #
2272
2272
  # @option params [Array<String>] :account_identifiers
2273
- # When `includeLinkedAccounts` is set to `True`, use this parameter to
2273
+ # When `includeLinkedAccounts` is set to `true`, use this parameter to
2274
2274
  # specify the list of accounts to search. You can specify as many as 20
2275
2275
  # account IDs in the array.
2276
2276
  #
@@ -2306,7 +2306,7 @@ module Aws::CloudWatchLogs
2306
2306
  # the default is up to 50 items.
2307
2307
  #
2308
2308
  # @option params [Boolean] :include_linked_accounts
2309
- # If you are using a monitoring account, set this to `True` to have the
2309
+ # If you are using a monitoring account, set this to `true` to have the
2310
2310
  # operation return log groups in the accounts listed in
2311
2311
  # `accountIdentifiers`.
2312
2312
  #
@@ -2315,7 +2315,13 @@ module Aws::CloudWatchLogs
2315
2315
  # account and all log groups in all source accounts that are linked to
2316
2316
  # the monitoring account.
2317
2317
  #
2318
+ # The default for this parameter is `false`.
2319
+ #
2318
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
+ #
2319
2325
  # Specifies the log group class for this log group. There are three
2320
2326
  # classes:
2321
2327
  #
@@ -2337,6 +2343,17 @@ module Aws::CloudWatchLogs
2337
2343
  #
2338
2344
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html
2339
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
+ #
2340
2357
  # @return [Types::DescribeLogGroupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2341
2358
  #
2342
2359
  # * {Types::DescribeLogGroupsResponse#log_groups #log_groups} => Array&lt;Types::LogGroup&gt;
@@ -2354,6 +2371,7 @@ module Aws::CloudWatchLogs
2354
2371
  # limit: 1,
2355
2372
  # include_linked_accounts: false,
2356
2373
  # log_group_class: "STANDARD", # accepts STANDARD, INFREQUENT_ACCESS, DELIVERY
2374
+ # log_group_identifiers: ["LogGroupIdentifier"],
2357
2375
  # })
2358
2376
  #
2359
2377
  # @example Response structure
@@ -3999,6 +4017,108 @@ module Aws::CloudWatchLogs
3999
4017
  req.send_request(options)
4000
4018
  end
4001
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&lt;Types::LogGroupSummary&gt;
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
+
4002
4122
  # Returns a list of the log groups that were analyzed during a single
4003
4123
  # CloudWatch Logs Insights query. This can be useful for queries that
4004
4124
  # use log group name prefixes or the `filterIndex` command, because the
@@ -7078,7 +7198,7 @@ module Aws::CloudWatchLogs
7078
7198
  tracer: tracer
7079
7199
  )
7080
7200
  context[:gem_name] = 'aws-sdk-cloudwatchlogs'
7081
- context[:gem_version] = '1.115.0'
7201
+ context[:gem_version] = '1.116.0'
7082
7202
  Seahorse::Client::Request.new(handlers, context)
7083
7203
  end
7084
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')
@@ -892,6 +899,8 @@ module Aws::CloudWatchLogs
892
899
  DescribeIndexPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
893
900
  DescribeIndexPoliciesResponse.struct_class = Types::DescribeIndexPoliciesResponse
894
901
 
902
+ DescribeLogGroupsLogGroupIdentifiers.member = Shapes::ShapeRef.new(shape: LogGroupIdentifier)
903
+
895
904
  DescribeLogGroupsRequest.add_member(:account_identifiers, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIdentifiers"))
896
905
  DescribeLogGroupsRequest.add_member(:log_group_name_prefix, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupNamePrefix"))
897
906
  DescribeLogGroupsRequest.add_member(:log_group_name_pattern, Shapes::ShapeRef.new(shape: LogGroupNamePattern, location_name: "logGroupNamePattern"))
@@ -899,6 +908,7 @@ module Aws::CloudWatchLogs
899
908
  DescribeLogGroupsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
900
909
  DescribeLogGroupsRequest.add_member(:include_linked_accounts, Shapes::ShapeRef.new(shape: IncludeLinkedAccounts, location_name: "includeLinkedAccounts"))
901
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"))
902
912
  DescribeLogGroupsRequest.struct_class = Types::DescribeLogGroupsRequest
903
913
 
904
914
  DescribeLogGroupsResponse.add_member(:log_groups, Shapes::ShapeRef.new(shape: LogGroups, location_name: "logGroups"))
@@ -1248,6 +1258,18 @@ module Aws::CloudWatchLogs
1248
1258
  ListLogGroupsForQueryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1249
1259
  ListLogGroupsForQueryResponse.struct_class = Types::ListLogGroupsForQueryResponse
1250
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
+
1251
1273
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "resourceArn"))
1252
1274
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
1253
1275
 
@@ -1321,6 +1343,13 @@ module Aws::CloudWatchLogs
1321
1343
 
1322
1344
  LogGroupNames.member = Shapes::ShapeRef.new(shape: LogGroupName)
1323
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
+
1324
1353
  LogGroups.member = Shapes::ShapeRef.new(shape: LogGroup)
1325
1354
 
1326
1355
  LogRecord.key = Shapes::ShapeRef.new(shape: Field)
@@ -2719,6 +2748,16 @@ module Aws::CloudWatchLogs
2719
2748
  )
2720
2749
  end)
2721
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
+
2722
2761
  api.add_operation(:list_log_groups_for_query, Seahorse::Model::Operation.new.tap do |o|
2723
2762
  o.name = "ListLogGroupsForQuery"
2724
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 `True`, use this parameter 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 `True` to have
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
- # The log groups.
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
@@ -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
  #
@@ -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
  #
@@ -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.115.0'
58
+ GEM_VERSION = '1.116.0'
59
59
 
60
60
  end
61
61
 
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
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.115.0
4
+ version: 1.116.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services