aws-sdk-cloudwatchlogs 1.59.0 → 1.60.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +40 -14
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +4 -4
- data/lib/aws-sdk-cloudwatchlogs/types.rb +15 -5
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 341bed9e6e853a58919d069b60c8b1413f1a7666e0762854bbd785b737854924
|
4
|
+
data.tar.gz: a1de67b3ce6a3edbca499540ce24062fc897149b4bfb57446057f8beaf2cbe0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 906d9d57ddff2ebb8857bbacf59854aac40317c8ac219b6894bbc97529f2c749e02df8641db9c85a70a47a176121dbb506a6ccef3dc329f398e96641535c1029
|
7
|
+
data.tar.gz: 58f26fff52290987bc0be5631c86f13c042e6f07870ce0e2023ab0bdfa3561849128ecdb7ff344839552a37c74ecf9d1c7a866484a5670ec15464643404ac937
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.60.0 (2023-01-12)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Bug fix: logGroupName is now not a required field in GetLogEvents, FilterLogEvents, GetLogGroupFields, and DescribeLogStreams APIs as logGroupIdentifier can be provided instead
|
8
|
+
|
4
9
|
1.59.0 (2023-01-04)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.60.0
|
@@ -1146,6 +1146,10 @@ module Aws::CloudWatchLogs
|
|
1146
1146
|
# the log streams or filter the results by prefix. You can also control
|
1147
1147
|
# how the results are ordered.
|
1148
1148
|
#
|
1149
|
+
# You can specify the log group to search by using either
|
1150
|
+
# `logGroupIdentifier` or `logGroupName`. You must include one of these
|
1151
|
+
# two parameters, but you can't include both.
|
1152
|
+
#
|
1149
1153
|
# This operation has a limit of five transactions per second, after
|
1150
1154
|
# which transactions are throttled.
|
1151
1155
|
#
|
@@ -1158,7 +1162,7 @@ module Aws::CloudWatchLogs
|
|
1158
1162
|
#
|
1159
1163
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
1160
1164
|
#
|
1161
|
-
# @option params [
|
1165
|
+
# @option params [String] :log_group_name
|
1162
1166
|
# The name of the log group.
|
1163
1167
|
#
|
1164
1168
|
# <note markdown="1"> If you specify values for both `logGroupName` and
|
@@ -1172,10 +1176,12 @@ module Aws::CloudWatchLogs
|
|
1172
1176
|
# group is in a source account and you are using a monitoring account,
|
1173
1177
|
# you must use the log group ARN.
|
1174
1178
|
#
|
1175
|
-
# If you specify values for both `logGroupName` and
|
1179
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1176
1180
|
# `logGroupIdentifier`, the action returns an
|
1177
1181
|
# `InvalidParameterException` error.
|
1178
1182
|
#
|
1183
|
+
# </note>
|
1184
|
+
#
|
1179
1185
|
# @option params [String] :log_stream_name_prefix
|
1180
1186
|
# The prefix to match.
|
1181
1187
|
#
|
@@ -1219,7 +1225,7 @@ module Aws::CloudWatchLogs
|
|
1219
1225
|
# @example Request syntax with placeholder values
|
1220
1226
|
#
|
1221
1227
|
# resp = client.describe_log_streams({
|
1222
|
-
# log_group_name: "LogGroupName",
|
1228
|
+
# log_group_name: "LogGroupName",
|
1223
1229
|
# log_group_identifier: "LogGroupIdentifier",
|
1224
1230
|
# log_stream_name_prefix: "LogStreamName",
|
1225
1231
|
# order_by: "LogStreamName", # accepts LogStreamName, LastEventTime
|
@@ -1560,6 +1566,10 @@ module Aws::CloudWatchLogs
|
|
1560
1566
|
# You must have the `logs;FilterLogEvents` permission to perform this
|
1561
1567
|
# operation.
|
1562
1568
|
#
|
1569
|
+
# You can specify the log group to search by using either
|
1570
|
+
# `logGroupIdentifier` or `logGroupName`. You must include one of these
|
1571
|
+
# two parameters, but you can't include both.
|
1572
|
+
#
|
1563
1573
|
# By default, this operation returns as many log events as can fit in 1
|
1564
1574
|
# MB (up to 10,000 log events) or all the events found within the
|
1565
1575
|
# specified time range. If the results include a token, that means there
|
@@ -1581,7 +1591,7 @@ module Aws::CloudWatchLogs
|
|
1581
1591
|
#
|
1582
1592
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
1583
1593
|
#
|
1584
|
-
# @option params [
|
1594
|
+
# @option params [String] :log_group_name
|
1585
1595
|
# The name of the log group to search.
|
1586
1596
|
#
|
1587
1597
|
# <note markdown="1"> If you specify values for both `logGroupName` and
|
@@ -1595,10 +1605,12 @@ module Aws::CloudWatchLogs
|
|
1595
1605
|
# from. If the log group is in a source account and you are using a
|
1596
1606
|
# monitoring account, you must use the log group ARN.
|
1597
1607
|
#
|
1598
|
-
# If you specify values for both `logGroupName` and
|
1608
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1599
1609
|
# `logGroupIdentifier`, the action returns an
|
1600
1610
|
# `InvalidParameterException` error.
|
1601
1611
|
#
|
1612
|
+
# </note>
|
1613
|
+
#
|
1602
1614
|
# @option params [Array<String>] :log_stream_names
|
1603
1615
|
# Filters the results to only logs from the log streams in this list.
|
1604
1616
|
#
|
@@ -1671,7 +1683,7 @@ module Aws::CloudWatchLogs
|
|
1671
1683
|
# @example Request syntax with placeholder values
|
1672
1684
|
#
|
1673
1685
|
# resp = client.filter_log_events({
|
1674
|
-
# log_group_name: "LogGroupName",
|
1686
|
+
# log_group_name: "LogGroupName",
|
1675
1687
|
# log_group_identifier: "LogGroupIdentifier",
|
1676
1688
|
# log_stream_names: ["LogStreamName"],
|
1677
1689
|
# log_stream_name_prefix: "LogStreamName",
|
@@ -1753,11 +1765,15 @@ module Aws::CloudWatchLogs
|
|
1753
1765
|
# source accounts. For more information, see [CloudWatch cross-account
|
1754
1766
|
# observability][1].
|
1755
1767
|
#
|
1768
|
+
# You can specify the log group to search by using either
|
1769
|
+
# `logGroupIdentifier` or `logGroupName`. You must include one of these
|
1770
|
+
# two parameters, but you can't include both.
|
1771
|
+
#
|
1756
1772
|
#
|
1757
1773
|
#
|
1758
1774
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
1759
1775
|
#
|
1760
|
-
# @option params [
|
1776
|
+
# @option params [String] :log_group_name
|
1761
1777
|
# The name of the log group.
|
1762
1778
|
#
|
1763
1779
|
# <note markdown="1"> If you specify values for both `logGroupName` and
|
@@ -1771,10 +1787,12 @@ module Aws::CloudWatchLogs
|
|
1771
1787
|
# If the log group is in a source account and you are using a monitoring
|
1772
1788
|
# account, you must use the log group ARN.
|
1773
1789
|
#
|
1774
|
-
# If you specify values for both `logGroupName` and
|
1790
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1775
1791
|
# `logGroupIdentifier`, the action returns an
|
1776
1792
|
# `InvalidParameterException` error.
|
1777
1793
|
#
|
1794
|
+
# </note>
|
1795
|
+
#
|
1778
1796
|
# @option params [required, String] :log_stream_name
|
1779
1797
|
# The name of the log stream.
|
1780
1798
|
#
|
@@ -1825,7 +1843,7 @@ module Aws::CloudWatchLogs
|
|
1825
1843
|
# @example Request syntax with placeholder values
|
1826
1844
|
#
|
1827
1845
|
# resp = client.get_log_events({
|
1828
|
-
# log_group_name: "LogGroupName",
|
1846
|
+
# log_group_name: "LogGroupName",
|
1829
1847
|
# log_group_identifier: "LogGroupIdentifier",
|
1830
1848
|
# log_stream_name: "LogStreamName", # required
|
1831
1849
|
# start_time: 1,
|
@@ -1859,6 +1877,10 @@ module Aws::CloudWatchLogs
|
|
1859
1877
|
# contain each field. The search is limited to a time period that you
|
1860
1878
|
# specify.
|
1861
1879
|
#
|
1880
|
+
# You can specify the log group to search by using either
|
1881
|
+
# `logGroupIdentifier` or `logGroupName`. You must specify one of these
|
1882
|
+
# parameters, but you can't specify both.
|
1883
|
+
#
|
1862
1884
|
# In the results, fields that start with `@` are fields generated by
|
1863
1885
|
# CloudWatch Logs. For example, `@timestamp` is the timestamp of each
|
1864
1886
|
# log event. For more information about the fields that are generated by
|
@@ -1877,13 +1899,15 @@ module Aws::CloudWatchLogs
|
|
1877
1899
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html
|
1878
1900
|
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
1879
1901
|
#
|
1880
|
-
# @option params [
|
1902
|
+
# @option params [String] :log_group_name
|
1881
1903
|
# The name of the log group to search.
|
1882
1904
|
#
|
1883
|
-
# If you specify values for both `logGroupName` and
|
1905
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1884
1906
|
# `logGroupIdentifier`, the action returns an
|
1885
1907
|
# `InvalidParameterException` error.
|
1886
1908
|
#
|
1909
|
+
# </note>
|
1910
|
+
#
|
1887
1911
|
# @option params [Integer] :time
|
1888
1912
|
# The time to set as the center of the query. If you specify `time`, the
|
1889
1913
|
# 15 minutes before this time are queries. If you omit `time`, the 8
|
@@ -1897,10 +1921,12 @@ module Aws::CloudWatchLogs
|
|
1897
1921
|
# group is in a source account and you are using a monitoring account,
|
1898
1922
|
# you must specify the ARN.
|
1899
1923
|
#
|
1900
|
-
# If you specify values for both `logGroupName` and
|
1924
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1901
1925
|
# `logGroupIdentifier`, the action returns an
|
1902
1926
|
# `InvalidParameterException` error.
|
1903
1927
|
#
|
1928
|
+
# </note>
|
1929
|
+
#
|
1904
1930
|
# @return [Types::GetLogGroupFieldsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1905
1931
|
#
|
1906
1932
|
# * {Types::GetLogGroupFieldsResponse#log_group_fields #log_group_fields} => Array<Types::LogGroupField>
|
@@ -1908,7 +1934,7 @@ module Aws::CloudWatchLogs
|
|
1908
1934
|
# @example Request syntax with placeholder values
|
1909
1935
|
#
|
1910
1936
|
# resp = client.get_log_group_fields({
|
1911
|
-
# log_group_name: "LogGroupName",
|
1937
|
+
# log_group_name: "LogGroupName",
|
1912
1938
|
# time: 1,
|
1913
1939
|
# log_group_identifier: "LogGroupIdentifier",
|
1914
1940
|
# })
|
@@ -3201,7 +3227,7 @@ module Aws::CloudWatchLogs
|
|
3201
3227
|
params: params,
|
3202
3228
|
config: config)
|
3203
3229
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
3204
|
-
context[:gem_version] = '1.
|
3230
|
+
context[:gem_version] = '1.60.0'
|
3205
3231
|
Seahorse::Client::Request.new(handlers, context)
|
3206
3232
|
end
|
3207
3233
|
|
@@ -321,7 +321,7 @@ module Aws::CloudWatchLogs
|
|
321
321
|
DescribeLogGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
322
322
|
DescribeLogGroupsResponse.struct_class = Types::DescribeLogGroupsResponse
|
323
323
|
|
324
|
-
DescribeLogStreamsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName,
|
324
|
+
DescribeLogStreamsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
325
325
|
DescribeLogStreamsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
326
326
|
DescribeLogStreamsRequest.add_member(:log_stream_name_prefix, Shapes::ShapeRef.new(shape: LogStreamName, location_name: "logStreamNamePrefix"))
|
327
327
|
DescribeLogStreamsRequest.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location_name: "orderBy"))
|
@@ -423,7 +423,7 @@ module Aws::CloudWatchLogs
|
|
423
423
|
ExtractedValues.key = Shapes::ShapeRef.new(shape: Token)
|
424
424
|
ExtractedValues.value = Shapes::ShapeRef.new(shape: Value)
|
425
425
|
|
426
|
-
FilterLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName,
|
426
|
+
FilterLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
427
427
|
FilterLogEventsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
428
428
|
FilterLogEventsRequest.add_member(:log_stream_names, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNames"))
|
429
429
|
FilterLogEventsRequest.add_member(:log_stream_name_prefix, Shapes::ShapeRef.new(shape: LogStreamName, location_name: "logStreamNamePrefix"))
|
@@ -458,7 +458,7 @@ module Aws::CloudWatchLogs
|
|
458
458
|
GetDataProtectionPolicyResponse.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTime"))
|
459
459
|
GetDataProtectionPolicyResponse.struct_class = Types::GetDataProtectionPolicyResponse
|
460
460
|
|
461
|
-
GetLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName,
|
461
|
+
GetLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
462
462
|
GetLogEventsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
463
463
|
GetLogEventsRequest.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: LogStreamName, required: true, location_name: "logStreamName"))
|
464
464
|
GetLogEventsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
|
@@ -474,7 +474,7 @@ module Aws::CloudWatchLogs
|
|
474
474
|
GetLogEventsResponse.add_member(:next_backward_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextBackwardToken"))
|
475
475
|
GetLogEventsResponse.struct_class = Types::GetLogEventsResponse
|
476
476
|
|
477
|
-
GetLogGroupFieldsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName,
|
477
|
+
GetLogGroupFieldsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
478
478
|
GetLogGroupFieldsRequest.add_member(:time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "time"))
|
479
479
|
GetLogGroupFieldsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
480
480
|
GetLogGroupFieldsRequest.struct_class = Types::GetLogGroupFieldsRequest
|
@@ -525,9 +525,11 @@ module Aws::CloudWatchLogs
|
|
525
525
|
# group is in a source account and you are using a monitoring account,
|
526
526
|
# you must use the log group ARN.
|
527
527
|
#
|
528
|
-
# If you specify values for both `logGroupName` and
|
528
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
529
529
|
# `logGroupIdentifier`, the action returns an
|
530
530
|
# `InvalidParameterException` error.
|
531
|
+
#
|
532
|
+
# </note>
|
531
533
|
# @return [String]
|
532
534
|
#
|
533
535
|
# @!attribute [rw] log_stream_name_prefix
|
@@ -1010,9 +1012,11 @@ module Aws::CloudWatchLogs
|
|
1010
1012
|
# from. If the log group is in a source account and you are using a
|
1011
1013
|
# monitoring account, you must use the log group ARN.
|
1012
1014
|
#
|
1013
|
-
# If you specify values for both `logGroupName` and
|
1015
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1014
1016
|
# `logGroupIdentifier`, the action returns an
|
1015
1017
|
# `InvalidParameterException` error.
|
1018
|
+
#
|
1019
|
+
# </note>
|
1016
1020
|
# @return [String]
|
1017
1021
|
#
|
1018
1022
|
# @!attribute [rw] log_stream_names
|
@@ -1217,9 +1221,11 @@ module Aws::CloudWatchLogs
|
|
1217
1221
|
# If the log group is in a source account and you are using a
|
1218
1222
|
# monitoring account, you must use the log group ARN.
|
1219
1223
|
#
|
1220
|
-
# If you specify values for both `logGroupName` and
|
1224
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1221
1225
|
# `logGroupIdentifier`, the action returns an
|
1222
1226
|
# `InvalidParameterException` error.
|
1227
|
+
#
|
1228
|
+
# </note>
|
1223
1229
|
# @return [String]
|
1224
1230
|
#
|
1225
1231
|
# @!attribute [rw] log_stream_name
|
@@ -1314,9 +1320,11 @@ module Aws::CloudWatchLogs
|
|
1314
1320
|
# @!attribute [rw] log_group_name
|
1315
1321
|
# The name of the log group to search.
|
1316
1322
|
#
|
1317
|
-
# If you specify values for both `logGroupName` and
|
1323
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1318
1324
|
# `logGroupIdentifier`, the action returns an
|
1319
1325
|
# `InvalidParameterException` error.
|
1326
|
+
#
|
1327
|
+
# </note>
|
1320
1328
|
# @return [String]
|
1321
1329
|
#
|
1322
1330
|
# @!attribute [rw] time
|
@@ -1333,9 +1341,11 @@ module Aws::CloudWatchLogs
|
|
1333
1341
|
# group is in a source account and you are using a monitoring account,
|
1334
1342
|
# you must specify the ARN.
|
1335
1343
|
#
|
1336
|
-
# If you specify values for both `logGroupName` and
|
1344
|
+
# <note markdown="1"> If you specify values for both `logGroupName` and
|
1337
1345
|
# `logGroupIdentifier`, the action returns an
|
1338
1346
|
# `InvalidParameterException` error.
|
1347
|
+
#
|
1348
|
+
# </note>
|
1339
1349
|
# @return [String]
|
1340
1350
|
#
|
1341
1351
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFieldsRequest AWS API Documentation
|
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.
|
4
|
+
version: 1.60.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: 2023-01-
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|