aws-sdk-cloudwatchlogs 1.40.0 → 1.44.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +151 -65
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +9 -0
- data/lib/aws-sdk-cloudwatchlogs/customizations.rb +1 -1
- data/lib/aws-sdk-cloudwatchlogs/types.rb +115 -36
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b53cd0ed00817e7a3a578da98970372835120baf8213b2c3d740253b2352b1f
|
4
|
+
data.tar.gz: db879b8a853bba93646734cfbbfb1859fa8671a63acbb6b9df2173f0180bdb3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db6210ec6c5194c6a1ff96dfa66af9219ce979d3019babaa9e1713aa854aef519f6b131e8870f8c368851ffc0499685e268ed08c112cdc98a27c7568a701d88e
|
7
|
+
data.tar.gz: 87f5db69bfb43a4141d09c5ce0fe8c3c7fe3bb676b4a6d20c98b633ac1e28d3d32e6ca82b05e7fd55f58ab8bd520176b0d818cb7838336bef43242a98e5a076d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.44.0 (2021-08-17)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation-only update for CloudWatch Logs
|
8
|
+
|
9
|
+
1.43.0 (2021-07-30)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.42.0 (2021-07-28)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.41.0 (2021-05-24)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release provides dimensions and unit support for metric filters.
|
23
|
+
|
4
24
|
1.40.0 (2021-03-10)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.44.0
|
@@ -337,16 +337,15 @@ module Aws::CloudWatchLogs
|
|
337
337
|
|
338
338
|
# @!group API Operations
|
339
339
|
|
340
|
-
# Associates the specified
|
341
|
-
#
|
340
|
+
# Associates the specified Key Management Service customer master key
|
341
|
+
# (CMK) with the specified log group.
|
342
342
|
#
|
343
|
-
# Associating an
|
343
|
+
# Associating an KMS CMK with a log group overrides any existing
|
344
344
|
# associations between the log group and a CMK. After a CMK is
|
345
345
|
# associated with a log group, all newly ingested data for the log group
|
346
346
|
# is encrypted using the CMK. This association is stored as long as the
|
347
|
-
# data encrypted with the CMK is still within
|
348
|
-
#
|
349
|
-
# is requested.
|
347
|
+
# data encrypted with the CMK is still within CloudWatch Logs. This
|
348
|
+
# enables CloudWatch Logs to decrypt this data whenever it is requested.
|
350
349
|
#
|
351
350
|
# CloudWatch Logs supports only symmetric CMKs. Do not use an associate
|
352
351
|
# an asymmetric CMK with your log group. For more information, see
|
@@ -368,8 +367,8 @@ module Aws::CloudWatchLogs
|
|
368
367
|
# @option params [required, String] :kms_key_id
|
369
368
|
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
370
369
|
# data. This must be a symmetric CMK. For more information, see [Amazon
|
371
|
-
# Resource Names -
|
372
|
-
#
|
370
|
+
# Resource Names - Key Management Service][1] and [Using Symmetric and
|
371
|
+
# Asymmetric Keys][2].
|
373
372
|
#
|
374
373
|
#
|
375
374
|
#
|
@@ -460,13 +459,13 @@ module Aws::CloudWatchLogs
|
|
460
459
|
# timestamp earlier than this time are not exported.
|
461
460
|
#
|
462
461
|
# @option params [required, Integer] :to
|
463
|
-
# The end time of the range for the request,
|
464
|
-
# milliseconds after Jan 1, 1970 00:00:00 UTC. Events with
|
465
|
-
# later than this time are not exported.
|
462
|
+
# The end time of the range for the request, expreswatchlogsdocused as
|
463
|
+
# the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with
|
464
|
+
# a timestamp later than this time are not exported.
|
466
465
|
#
|
467
466
|
# @option params [required, String] :destination
|
468
467
|
# The name of S3 bucket for the exported log data. The bucket must be in
|
469
|
-
# the same
|
468
|
+
# the same Amazon Web Services region.
|
470
469
|
#
|
471
470
|
# @option params [String] :destination_prefix
|
472
471
|
# The prefix used as the start of the key for every object exported. If
|
@@ -506,7 +505,8 @@ module Aws::CloudWatchLogs
|
|
506
505
|
#
|
507
506
|
# You must use the following guidelines when naming a log group:
|
508
507
|
#
|
509
|
-
# * Log group names must be unique within a region for an
|
508
|
+
# * Log group names must be unique within a region for an Amazon Web
|
509
|
+
# Services account.
|
510
510
|
#
|
511
511
|
# * Log group names can be between 1 and 512 characters long.
|
512
512
|
#
|
@@ -518,11 +518,11 @@ module Aws::CloudWatchLogs
|
|
518
518
|
# group never expire. To set a retention policy so that events expire
|
519
519
|
# and are deleted after a specified time, use [PutRetentionPolicy][1].
|
520
520
|
#
|
521
|
-
# If you associate a
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
#
|
521
|
+
# If you associate a Key Management Service customer master key (CMK)
|
522
|
+
# with the log group, ingested data is encrypted using the CMK. This
|
523
|
+
# association is stored as long as the data encrypted with the CMK is
|
524
|
+
# still within CloudWatch Logs. This enables CloudWatch Logs to decrypt
|
525
|
+
# this data whenever it is requested.
|
526
526
|
#
|
527
527
|
# If you attempt to associate a CMK with the log group but the CMK does
|
528
528
|
# not exist or the CMK is disabled, you receive an
|
@@ -542,8 +542,8 @@ module Aws::CloudWatchLogs
|
|
542
542
|
#
|
543
543
|
# @option params [String] :kms_key_id
|
544
544
|
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
545
|
-
# data. For more information, see [Amazon Resource Names -
|
546
|
-
# Management Service
|
545
|
+
# data. For more information, see [Amazon Resource Names - Key
|
546
|
+
# Management Service][1].
|
547
547
|
#
|
548
548
|
#
|
549
549
|
#
|
@@ -552,6 +552,16 @@ module Aws::CloudWatchLogs
|
|
552
552
|
# @option params [Hash<String,String>] :tags
|
553
553
|
# The key-value pairs to use for the tags.
|
554
554
|
#
|
555
|
+
# CloudWatch Logs doesn’t support IAM policies that prevent users from
|
556
|
+
# assigning specified tags to log groups using the
|
557
|
+
# `aws:Resource/key-name ` or `aws:TagKeys` condition keys. For more
|
558
|
+
# information about using tags to control access, see [Controlling
|
559
|
+
# access to Amazon Web Services resources using tags][1].
|
560
|
+
#
|
561
|
+
#
|
562
|
+
#
|
563
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html
|
564
|
+
#
|
555
565
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
556
566
|
#
|
557
567
|
# @example Request syntax with placeholder values
|
@@ -941,6 +951,17 @@ module Aws::CloudWatchLogs
|
|
941
951
|
# filter the results by prefix. The results are ASCII-sorted by log
|
942
952
|
# group name.
|
943
953
|
#
|
954
|
+
# CloudWatch Logs doesn’t support IAM policies that control access to
|
955
|
+
# the `DescribeLogGroups` action by using the `aws:ResourceTag/key-name
|
956
|
+
# ` condition key. Other CloudWatch Logs actions do support the use of
|
957
|
+
# the `aws:ResourceTag/key-name ` condition key to control access. For
|
958
|
+
# more information about using tags to control access, see [Controlling
|
959
|
+
# access to Amazon Web Services resources using tags][1].
|
960
|
+
#
|
961
|
+
#
|
962
|
+
#
|
963
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html
|
964
|
+
#
|
944
965
|
# @option params [String] :log_group_name_prefix
|
945
966
|
# The prefix to match.
|
946
967
|
#
|
@@ -1011,10 +1032,10 @@ module Aws::CloudWatchLogs
|
|
1011
1032
|
# If you order the results by event time, you cannot specify the
|
1012
1033
|
# `logStreamNamePrefix` parameter.
|
1013
1034
|
#
|
1014
|
-
# `
|
1035
|
+
# `lastEventTimestamp` represents the time of the most recent log event
|
1015
1036
|
# in the log stream in CloudWatch Logs. This number is expressed as the
|
1016
1037
|
# number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
1017
|
-
# `
|
1038
|
+
# `lastEventTimestamp` updates on an eventual consistency basis. It
|
1018
1039
|
# typically updates in less than an hour from ingestion, but in rare
|
1019
1040
|
# situations might take longer.
|
1020
1041
|
#
|
@@ -1128,6 +1149,9 @@ module Aws::CloudWatchLogs
|
|
1128
1149
|
# resp.metric_filters[0].metric_transformations[0].metric_namespace #=> String
|
1129
1150
|
# resp.metric_filters[0].metric_transformations[0].metric_value #=> String
|
1130
1151
|
# resp.metric_filters[0].metric_transformations[0].default_value #=> Float
|
1152
|
+
# resp.metric_filters[0].metric_transformations[0].dimensions #=> Hash
|
1153
|
+
# resp.metric_filters[0].metric_transformations[0].dimensions["DimensionsKey"] #=> String
|
1154
|
+
# resp.metric_filters[0].metric_transformations[0].unit #=> String, one of "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"
|
1131
1155
|
# resp.metric_filters[0].creation_time #=> Integer
|
1132
1156
|
# resp.metric_filters[0].log_group_name #=> String
|
1133
1157
|
# resp.next_token #=> String
|
@@ -1170,7 +1194,7 @@ module Aws::CloudWatchLogs
|
|
1170
1194
|
#
|
1171
1195
|
# resp = client.describe_queries({
|
1172
1196
|
# log_group_name: "LogGroupName",
|
1173
|
-
# status: "Scheduled", # accepts Scheduled, Running, Complete, Failed, Cancelled
|
1197
|
+
# status: "Scheduled", # accepts Scheduled, Running, Complete, Failed, Cancelled, Timeout, Unknown
|
1174
1198
|
# max_results: 1,
|
1175
1199
|
# next_token: "NextToken",
|
1176
1200
|
# })
|
@@ -1180,7 +1204,7 @@ module Aws::CloudWatchLogs
|
|
1180
1204
|
# resp.queries #=> Array
|
1181
1205
|
# resp.queries[0].query_id #=> String
|
1182
1206
|
# resp.queries[0].query_string #=> String
|
1183
|
-
# resp.queries[0].status #=> String, one of "Scheduled", "Running", "Complete", "Failed", "Cancelled"
|
1207
|
+
# resp.queries[0].status #=> String, one of "Scheduled", "Running", "Complete", "Failed", "Cancelled", "Timeout", "Unknown"
|
1184
1208
|
# resp.queries[0].create_time #=> Integer
|
1185
1209
|
# resp.queries[0].log_group_name #=> String
|
1186
1210
|
# resp.next_token #=> String
|
@@ -1341,14 +1365,13 @@ module Aws::CloudWatchLogs
|
|
1341
1365
|
req.send_request(options)
|
1342
1366
|
end
|
1343
1367
|
|
1344
|
-
# Disassociates the associated
|
1345
|
-
#
|
1368
|
+
# Disassociates the associated Key Management Service customer master
|
1369
|
+
# key (CMK) from the specified log group.
|
1346
1370
|
#
|
1347
|
-
# After the
|
1348
|
-
#
|
1349
|
-
#
|
1350
|
-
#
|
1351
|
-
# encrypted data is requested.
|
1371
|
+
# After the KMS CMK is disassociated from the log group, CloudWatch Logs
|
1372
|
+
# stops encrypting newly ingested data for the log group. All previously
|
1373
|
+
# ingested data remains encrypted, and CloudWatch Logs requires
|
1374
|
+
# permissions for the CMK whenever the encrypted data is requested.
|
1352
1375
|
#
|
1353
1376
|
# Note that it can take up to 5 minutes for this operation to take
|
1354
1377
|
# effect.
|
@@ -1413,9 +1436,6 @@ module Aws::CloudWatchLogs
|
|
1413
1436
|
# after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this
|
1414
1437
|
# time are not returned.
|
1415
1438
|
#
|
1416
|
-
# If you omit `startTime` and `endTime` the most recent log events are
|
1417
|
-
# retrieved, to up 1 MB or 10,000 log events.
|
1418
|
-
#
|
1419
1439
|
# @option params [Integer] :end_time
|
1420
1440
|
# The end of the time range, expressed as the number of milliseconds
|
1421
1441
|
# after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
|
@@ -1524,9 +1544,6 @@ module Aws::CloudWatchLogs
|
|
1524
1544
|
# The token for the next set of items to return. (You received this
|
1525
1545
|
# token from a previous call.)
|
1526
1546
|
#
|
1527
|
-
# Using this token works only when you specify `true` for
|
1528
|
-
# `startFromHead`.
|
1529
|
-
#
|
1530
1547
|
# @option params [Integer] :limit
|
1531
1548
|
# The maximum number of log events returned. If you don't specify a
|
1532
1549
|
# value, the maximum is as many log events as can fit in a response size
|
@@ -1537,8 +1554,9 @@ module Aws::CloudWatchLogs
|
|
1537
1554
|
# the value is false, the latest log events are returned first. The
|
1538
1555
|
# default value is false.
|
1539
1556
|
#
|
1540
|
-
# If you are using `
|
1541
|
-
# `true` for
|
1557
|
+
# If you are using a previous `nextForwardToken` value as the
|
1558
|
+
# `nextToken` in this operation, you must specify `true` for
|
1559
|
+
# `startFromHead`.
|
1542
1560
|
#
|
1543
1561
|
# @return [Types::GetLogEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1544
1562
|
#
|
@@ -1600,8 +1618,8 @@ module Aws::CloudWatchLogs
|
|
1600
1618
|
#
|
1601
1619
|
# @option params [Integer] :time
|
1602
1620
|
# The time to set as the center of the query. If you specify `time`, the
|
1603
|
-
#
|
1604
|
-
#
|
1621
|
+
# 15 minutes before this time are queries. If you omit `time` the 8
|
1622
|
+
# minutes before and 8 minutes after this time are searched.
|
1605
1623
|
#
|
1606
1624
|
# The `time` value is specified as epoch time, the number of seconds
|
1607
1625
|
# since January 1, 1970, 00:00:00 UTC.
|
@@ -1714,7 +1732,7 @@ module Aws::CloudWatchLogs
|
|
1714
1732
|
# resp.statistics.records_matched #=> Float
|
1715
1733
|
# resp.statistics.records_scanned #=> Float
|
1716
1734
|
# resp.statistics.bytes_scanned #=> Float
|
1717
|
-
# resp.status #=> String, one of "Scheduled", "Running", "Complete", "Failed", "Cancelled"
|
1735
|
+
# resp.status #=> String, one of "Scheduled", "Running", "Complete", "Failed", "Cancelled", "Timeout", "Unknown"
|
1718
1736
|
#
|
1719
1737
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults AWS API Documentation
|
1720
1738
|
#
|
@@ -1823,6 +1841,11 @@ module Aws::CloudWatchLogs
|
|
1823
1841
|
# used to authorize claims to register a subscription filter against a
|
1824
1842
|
# given destination.
|
1825
1843
|
#
|
1844
|
+
# If multiple Amazon Web Services accounts are sending logs to this
|
1845
|
+
# destination, each sender account must be listed separately in the
|
1846
|
+
# policy. The policy does not support specifying `*` as the Principal or
|
1847
|
+
# the use of the `aws:PrincipalOrgId` global key.
|
1848
|
+
#
|
1826
1849
|
#
|
1827
1850
|
#
|
1828
1851
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html
|
@@ -1878,9 +1901,9 @@ module Aws::CloudWatchLogs
|
|
1878
1901
|
# * The log events in the batch must be in chronological order by their
|
1879
1902
|
# timestamp. The timestamp is the time the event occurred, expressed
|
1880
1903
|
# as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In
|
1881
|
-
#
|
1882
|
-
# specified in .NET format:
|
1883
|
-
# 2017-09-15T13:45:30.)
|
1904
|
+
# Amazon Web Services Tools for PowerShell and the Amazon Web Services
|
1905
|
+
# SDK for .NET, the timestamp is specified in .NET format:
|
1906
|
+
# yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.)
|
1884
1907
|
#
|
1885
1908
|
# * A batch of log events in a single request cannot span more than 24
|
1886
1909
|
# hours. Otherwise, the operation fails.
|
@@ -1891,7 +1914,8 @@ module Aws::CloudWatchLogs
|
|
1891
1914
|
# requests are throttled. This quota can't be changed.
|
1892
1915
|
#
|
1893
1916
|
# If a call to `PutLogEvents` returns "UnrecognizedClientException"
|
1894
|
-
# the most likely cause is an invalid
|
1917
|
+
# the most likely cause is an invalid Amazon Web Services access key ID
|
1918
|
+
# or secret key.
|
1895
1919
|
#
|
1896
1920
|
# @option params [required, String] :log_group_name
|
1897
1921
|
# The name of the log group.
|
@@ -1957,9 +1981,27 @@ module Aws::CloudWatchLogs
|
|
1957
1981
|
# The maximum number of metric filters that can be associated with a log
|
1958
1982
|
# group is 100.
|
1959
1983
|
#
|
1984
|
+
# When you create a metric filter, you can also optionally assign a unit
|
1985
|
+
# and dimensions to the metric that is created.
|
1986
|
+
#
|
1987
|
+
# Metrics extracted from log events are charged as custom metrics. To
|
1988
|
+
# prevent unexpected high charges, do not specify high-cardinality
|
1989
|
+
# fields such as `IPAddress` or `requestID` as dimensions. Each
|
1990
|
+
# different value found for a dimension is treated as a separate metric
|
1991
|
+
# and accrues charges as a separate custom metric.
|
1992
|
+
#
|
1993
|
+
# To help prevent accidental high charges, Amazon disables a metric
|
1994
|
+
# filter if it generates 1000 different name/value pairs for the
|
1995
|
+
# dimensions that you have specified within a certain amount of time.
|
1996
|
+
#
|
1997
|
+
# You can also set up a billing alarm to alert you if your charges are
|
1998
|
+
# higher than expected. For more information, see [ Creating a Billing
|
1999
|
+
# Alarm to Monitor Your Estimated Amazon Web Services Charges][2].
|
2000
|
+
#
|
1960
2001
|
#
|
1961
2002
|
#
|
1962
2003
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
|
2004
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html
|
1963
2005
|
#
|
1964
2006
|
# @option params [required, String] :log_group_name
|
1965
2007
|
# The name of the log group.
|
@@ -1988,6 +2030,10 @@ module Aws::CloudWatchLogs
|
|
1988
2030
|
# metric_namespace: "MetricNamespace", # required
|
1989
2031
|
# metric_value: "MetricValue", # required
|
1990
2032
|
# default_value: 1.0,
|
2033
|
+
# dimensions: {
|
2034
|
+
# "DimensionsKey" => "DimensionsValue",
|
2035
|
+
# },
|
2036
|
+
# unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
|
1991
2037
|
# },
|
1992
2038
|
# ],
|
1993
2039
|
# })
|
@@ -2087,9 +2133,10 @@ module Aws::CloudWatchLogs
|
|
2087
2133
|
req.send_request(options)
|
2088
2134
|
end
|
2089
2135
|
|
2090
|
-
# Creates or updates a resource policy allowing other
|
2091
|
-
# put log events to this account, such as Amazon
|
2092
|
-
# can have up to 10 resource policies per
|
2136
|
+
# Creates or updates a resource policy allowing other Amazon Web
|
2137
|
+
# Services services to put log events to this account, such as Amazon
|
2138
|
+
# Route 53. An account can have up to 10 resource policies per Amazon
|
2139
|
+
# Web Services Region.
|
2093
2140
|
#
|
2094
2141
|
# @option params [String] :policy_name
|
2095
2142
|
# Name of the new policy. This parameter is required.
|
@@ -2104,10 +2151,27 @@ module Aws::CloudWatchLogs
|
|
2104
2151
|
# `"logArn"` with the ARN of your CloudWatch Logs resource, such as a
|
2105
2152
|
# log group or log stream.
|
2106
2153
|
#
|
2154
|
+
# CloudWatch Logs also supports [aws:SourceArn][1] and
|
2155
|
+
# [aws:SourceAccount][2] condition context keys.
|
2156
|
+
#
|
2157
|
+
# In the example resource policy, you would replace the value of
|
2158
|
+
# `SourceArn` with the resource making the call from Route 53 to
|
2159
|
+
# CloudWatch Logs and replace the value of `SourceAccount` with the
|
2160
|
+
# Amazon Web Services account ID making that call.
|
2161
|
+
#
|
2162
|
+
#
|
2163
|
+
#
|
2107
2164
|
# `\{ "Version": "2012-10-17", "Statement": [ \{ "Sid":
|
2108
2165
|
# "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": \{
|
2109
|
-
# "Service": [ "route53.amazonaws.com" ] \},
|
2110
|
-
# "
|
2166
|
+
# "Service": [ "route53.amazonaws.com" ] \}, "Action":
|
2167
|
+
# "logs:PutLogEvents", "Resource": "logArn", "Condition": \{ "ArnLike":
|
2168
|
+
# \{ "aws:SourceArn": "myRoute53ResourceArn" \}, "StringEquals": \{
|
2169
|
+
# "aws:SourceAccount": "myAwsAccountId" \} \} \} ] \}`
|
2170
|
+
#
|
2171
|
+
#
|
2172
|
+
#
|
2173
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn
|
2174
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount
|
2111
2175
|
#
|
2112
2176
|
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2113
2177
|
#
|
@@ -2147,8 +2211,12 @@ module Aws::CloudWatchLogs
|
|
2147
2211
|
# group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180,
|
2148
2212
|
# 365, 400, 545, 731, 1827, and 3653.
|
2149
2213
|
#
|
2150
|
-
#
|
2151
|
-
#
|
2214
|
+
# To set a log group to never have log events expire, use
|
2215
|
+
# [DeleteRetentionPolicy][1].
|
2216
|
+
#
|
2217
|
+
#
|
2218
|
+
#
|
2219
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html
|
2152
2220
|
#
|
2153
2221
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2154
2222
|
#
|
@@ -2186,13 +2254,12 @@ module Aws::CloudWatchLogs
|
|
2186
2254
|
# * An Amazon Kinesis Firehose delivery stream that belongs to the same
|
2187
2255
|
# account as the subscription filter, for same-account delivery.
|
2188
2256
|
#
|
2189
|
-
# * An
|
2257
|
+
# * An Lambda function that belongs to the same account as the
|
2190
2258
|
# subscription filter, for same-account delivery.
|
2191
2259
|
#
|
2192
|
-
#
|
2193
|
-
# If you are updating an existing filter, you must specify the
|
2194
|
-
# name in `filterName`.
|
2195
|
-
# associate a second filter with a log group.
|
2260
|
+
# Each log group can have up to two subscription filters associated with
|
2261
|
+
# it. If you are updating an existing filter, you must specify the
|
2262
|
+
# correct name in `filterName`.
|
2196
2263
|
#
|
2197
2264
|
# To perform a `PutSubscriptionFilter` operation, you must also have the
|
2198
2265
|
# `iam:PassRole` permission.
|
@@ -2206,10 +2273,9 @@ module Aws::CloudWatchLogs
|
|
2206
2273
|
#
|
2207
2274
|
# @option params [required, String] :filter_name
|
2208
2275
|
# A name for the subscription filter. If you are updating an existing
|
2209
|
-
# filter, you must specify the correct name in `filterName`.
|
2210
|
-
#
|
2211
|
-
#
|
2212
|
-
# group, use [DescribeSubscriptionFilters][1].
|
2276
|
+
# filter, you must specify the correct name in `filterName`. To find the
|
2277
|
+
# name of the filter currently associated with a log group, use
|
2278
|
+
# [DescribeSubscriptionFilters][1].
|
2213
2279
|
#
|
2214
2280
|
#
|
2215
2281
|
#
|
@@ -2228,11 +2294,20 @@ module Aws::CloudWatchLogs
|
|
2228
2294
|
# * A logical destination (specified using an ARN) belonging to a
|
2229
2295
|
# different account, for cross-account delivery.
|
2230
2296
|
#
|
2297
|
+
# If you are setting up a cross-account subscription, the destination
|
2298
|
+
# must have an IAM policy associated with it that allows the sender to
|
2299
|
+
# send logs to the destination. For more information, see
|
2300
|
+
# [PutDestinationPolicy][1].
|
2301
|
+
#
|
2231
2302
|
# * An Amazon Kinesis Firehose delivery stream belonging to the same
|
2232
2303
|
# account as the subscription filter, for same-account delivery.
|
2233
2304
|
#
|
2234
|
-
# *
|
2235
|
-
#
|
2305
|
+
# * A Lambda function belonging to the same account as the subscription
|
2306
|
+
# filter, for same-account delivery.
|
2307
|
+
#
|
2308
|
+
#
|
2309
|
+
#
|
2310
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html
|
2236
2311
|
#
|
2237
2312
|
# @option params [String] :role_arn
|
2238
2313
|
# The ARN of an IAM role that grants CloudWatch Logs permissions to
|
@@ -2385,11 +2460,18 @@ module Aws::CloudWatchLogs
|
|
2385
2460
|
# For more information about tags, see [Tag Log Groups in Amazon
|
2386
2461
|
# CloudWatch Logs][3] in the *Amazon CloudWatch Logs User Guide*.
|
2387
2462
|
#
|
2463
|
+
# CloudWatch Logs doesn’t support IAM policies that prevent users from
|
2464
|
+
# assigning specified tags to log groups using the
|
2465
|
+
# `aws:Resource/key-name ` or `aws:TagKeys` condition keys. For more
|
2466
|
+
# information about using tags to control access, see [Controlling
|
2467
|
+
# access to Amazon Web Services resources using tags][4].
|
2468
|
+
#
|
2388
2469
|
#
|
2389
2470
|
#
|
2390
2471
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html
|
2391
2472
|
# [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html
|
2392
2473
|
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging
|
2474
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html
|
2393
2475
|
#
|
2394
2476
|
# @option params [required, String] :log_group_name
|
2395
2477
|
# The name of the log group.
|
@@ -2463,6 +2545,10 @@ module Aws::CloudWatchLogs
|
|
2463
2545
|
# To list the tags for a log group, use [ListTagsLogGroup][1]. To add
|
2464
2546
|
# tags, use [TagLogGroup][2].
|
2465
2547
|
#
|
2548
|
+
# CloudWatch Logs doesn’t support IAM policies that prevent users from
|
2549
|
+
# assigning specified tags to log groups using the
|
2550
|
+
# `aws:Resource/key-name ` or `aws:TagKeys` condition keys.
|
2551
|
+
#
|
2466
2552
|
#
|
2467
2553
|
#
|
2468
2554
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html
|
@@ -2505,7 +2591,7 @@ module Aws::CloudWatchLogs
|
|
2505
2591
|
params: params,
|
2506
2592
|
config: config)
|
2507
2593
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
2508
|
-
context[:gem_version] = '1.
|
2594
|
+
context[:gem_version] = '1.44.0'
|
2509
2595
|
Seahorse::Client::Request.new(handlers, context)
|
2510
2596
|
end
|
2511
2597
|
|
@@ -58,6 +58,9 @@ module Aws::CloudWatchLogs
|
|
58
58
|
DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
|
59
59
|
DestinationName = Shapes::StringShape.new(name: 'DestinationName')
|
60
60
|
Destinations = Shapes::ListShape.new(name: 'Destinations')
|
61
|
+
Dimensions = Shapes::MapShape.new(name: 'Dimensions')
|
62
|
+
DimensionsKey = Shapes::StringShape.new(name: 'DimensionsKey')
|
63
|
+
DimensionsValue = Shapes::StringShape.new(name: 'DimensionsValue')
|
61
64
|
DisassociateKmsKeyRequest = Shapes::StructureShape.new(name: 'DisassociateKmsKeyRequest')
|
62
65
|
Distribution = Shapes::StringShape.new(name: 'Distribution')
|
63
66
|
EventId = Shapes::StringShape.new(name: 'EventId')
|
@@ -173,6 +176,7 @@ module Aws::CloudWatchLogs
|
|
173
176
|
SearchedLogStreams = Shapes::ListShape.new(name: 'SearchedLogStreams')
|
174
177
|
SequenceToken = Shapes::StringShape.new(name: 'SequenceToken')
|
175
178
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
179
|
+
StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
|
176
180
|
StartFromHead = Shapes::BooleanShape.new(name: 'StartFromHead')
|
177
181
|
StartQueryRequest = Shapes::StructureShape.new(name: 'StartQueryRequest')
|
178
182
|
StartQueryResponse = Shapes::StructureShape.new(name: 'StartQueryResponse')
|
@@ -358,6 +362,9 @@ module Aws::CloudWatchLogs
|
|
358
362
|
|
359
363
|
Destinations.member = Shapes::ShapeRef.new(shape: Destination)
|
360
364
|
|
365
|
+
Dimensions.key = Shapes::ShapeRef.new(shape: DimensionsKey)
|
366
|
+
Dimensions.value = Shapes::ShapeRef.new(shape: DimensionsValue)
|
367
|
+
|
361
368
|
DisassociateKmsKeyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
362
369
|
DisassociateKmsKeyRequest.struct_class = Types::DisassociateKmsKeyRequest
|
363
370
|
|
@@ -525,6 +532,8 @@ module Aws::CloudWatchLogs
|
|
525
532
|
MetricTransformation.add_member(:metric_namespace, Shapes::ShapeRef.new(shape: MetricNamespace, required: true, location_name: "metricNamespace"))
|
526
533
|
MetricTransformation.add_member(:metric_value, Shapes::ShapeRef.new(shape: MetricValue, required: true, location_name: "metricValue"))
|
527
534
|
MetricTransformation.add_member(:default_value, Shapes::ShapeRef.new(shape: DefaultValue, location_name: "defaultValue"))
|
535
|
+
MetricTransformation.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "dimensions"))
|
536
|
+
MetricTransformation.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "unit"))
|
528
537
|
MetricTransformation.struct_class = Types::MetricTransformation
|
529
538
|
|
530
539
|
MetricTransformations.member = Shapes::ShapeRef.new(shape: MetricTransformation)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# WARNING ABOUT GENERATED CODE
|
3
3
|
#
|
4
4
|
# This file is generated. See the contributing for info on making contributions:
|
5
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
5
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
6
6
|
#
|
7
7
|
# WARNING ABOUT GENERATED CODE
|
8
8
|
|
@@ -25,8 +25,8 @@ module Aws::CloudWatchLogs
|
|
25
25
|
# @!attribute [rw] kms_key_id
|
26
26
|
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
27
27
|
# data. This must be a symmetric CMK. For more information, see
|
28
|
-
# [Amazon Resource Names -
|
29
|
-
#
|
28
|
+
# [Amazon Resource Names - Key Management Service][1] and [Using
|
29
|
+
# Symmetric and Asymmetric Keys][2].
|
30
30
|
#
|
31
31
|
#
|
32
32
|
#
|
@@ -95,14 +95,14 @@ module Aws::CloudWatchLogs
|
|
95
95
|
# @return [Integer]
|
96
96
|
#
|
97
97
|
# @!attribute [rw] to
|
98
|
-
# The end time of the range for the request,
|
99
|
-
# of milliseconds after Jan 1, 1970 00:00:00 UTC. Events
|
100
|
-
# timestamp later than this time are not exported.
|
98
|
+
# The end time of the range for the request, expreswatchlogsdocused as
|
99
|
+
# the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events
|
100
|
+
# with a timestamp later than this time are not exported.
|
101
101
|
# @return [Integer]
|
102
102
|
#
|
103
103
|
# @!attribute [rw] destination
|
104
104
|
# The name of S3 bucket for the exported log data. The bucket must be
|
105
|
-
# in the same
|
105
|
+
# in the same Amazon Web Services region.
|
106
106
|
# @return [String]
|
107
107
|
#
|
108
108
|
# @!attribute [rw] destination_prefix
|
@@ -153,8 +153,8 @@ module Aws::CloudWatchLogs
|
|
153
153
|
#
|
154
154
|
# @!attribute [rw] kms_key_id
|
155
155
|
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
156
|
-
# data. For more information, see [Amazon Resource Names -
|
157
|
-
# Management Service
|
156
|
+
# data. For more information, see [Amazon Resource Names - Key
|
157
|
+
# Management Service][1].
|
158
158
|
#
|
159
159
|
#
|
160
160
|
#
|
@@ -163,6 +163,16 @@ module Aws::CloudWatchLogs
|
|
163
163
|
#
|
164
164
|
# @!attribute [rw] tags
|
165
165
|
# The key-value pairs to use for the tags.
|
166
|
+
#
|
167
|
+
# CloudWatch Logs doesn’t support IAM policies that prevent users from
|
168
|
+
# assigning specified tags to log groups using the
|
169
|
+
# `aws:Resource/key-name ` or `aws:TagKeys` condition keys. For more
|
170
|
+
# information about using tags to control access, see [Controlling
|
171
|
+
# access to Amazon Web Services resources using tags][1].
|
172
|
+
#
|
173
|
+
#
|
174
|
+
#
|
175
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html
|
166
176
|
# @return [Hash<String,String>]
|
167
177
|
#
|
168
178
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroupRequest AWS API Documentation
|
@@ -597,10 +607,10 @@ module Aws::CloudWatchLogs
|
|
597
607
|
# If you order the results by event time, you cannot specify the
|
598
608
|
# `logStreamNamePrefix` parameter.
|
599
609
|
#
|
600
|
-
# `
|
610
|
+
# `lastEventTimestamp` represents the time of the most recent log
|
601
611
|
# event in the log stream in CloudWatch Logs. This number is expressed
|
602
612
|
# as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
603
|
-
# `
|
613
|
+
# `lastEventTimestamp` updates on an eventual consistency basis. It
|
604
614
|
# typically updates in less than an hour from ingestion, but in rare
|
605
615
|
# situations might take longer.
|
606
616
|
# @return [String]
|
@@ -732,7 +742,7 @@ module Aws::CloudWatchLogs
|
|
732
742
|
#
|
733
743
|
# {
|
734
744
|
# log_group_name: "LogGroupName",
|
735
|
-
# status: "Scheduled", # accepts Scheduled, Running, Complete, Failed, Cancelled
|
745
|
+
# status: "Scheduled", # accepts Scheduled, Running, Complete, Failed, Cancelled, Timeout, Unknown
|
736
746
|
# max_results: 1,
|
737
747
|
# next_token: "NextToken",
|
738
748
|
# }
|
@@ -959,8 +969,8 @@ module Aws::CloudWatchLogs
|
|
959
969
|
# @return [String]
|
960
970
|
#
|
961
971
|
# @!attribute [rw] access_policy
|
962
|
-
# An IAM policy document that governs which
|
963
|
-
# subscription filters against this destination.
|
972
|
+
# An IAM policy document that governs which Amazon Web Services
|
973
|
+
# accounts can create subscription filters against this destination.
|
964
974
|
# @return [String]
|
965
975
|
#
|
966
976
|
# @!attribute [rw] arn
|
@@ -1144,9 +1154,6 @@ module Aws::CloudWatchLogs
|
|
1144
1154
|
# The start of the time range, expressed as the number of milliseconds
|
1145
1155
|
# after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this
|
1146
1156
|
# time are not returned.
|
1147
|
-
#
|
1148
|
-
# If you omit `startTime` and `endTime` the most recent log events are
|
1149
|
-
# retrieved, to up 1 MB or 10,000 log events.
|
1150
1157
|
# @return [Integer]
|
1151
1158
|
#
|
1152
1159
|
# @!attribute [rw] end_time
|
@@ -1307,9 +1314,6 @@ module Aws::CloudWatchLogs
|
|
1307
1314
|
# @!attribute [rw] next_token
|
1308
1315
|
# The token for the next set of items to return. (You received this
|
1309
1316
|
# token from a previous call.)
|
1310
|
-
#
|
1311
|
-
# Using this token works only when you specify `true` for
|
1312
|
-
# `startFromHead`.
|
1313
1317
|
# @return [String]
|
1314
1318
|
#
|
1315
1319
|
# @!attribute [rw] limit
|
@@ -1323,8 +1327,9 @@ module Aws::CloudWatchLogs
|
|
1323
1327
|
# the value is false, the latest log events are returned first. The
|
1324
1328
|
# default value is false.
|
1325
1329
|
#
|
1326
|
-
# If you are using `
|
1327
|
-
# `true` for
|
1330
|
+
# If you are using a previous `nextForwardToken` value as the
|
1331
|
+
# `nextToken` in this operation, you must specify `true` for
|
1332
|
+
# `startFromHead`.
|
1328
1333
|
# @return [Boolean]
|
1329
1334
|
#
|
1330
1335
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEventsRequest AWS API Documentation
|
@@ -1382,8 +1387,8 @@ module Aws::CloudWatchLogs
|
|
1382
1387
|
#
|
1383
1388
|
# @!attribute [rw] time
|
1384
1389
|
# The time to set as the center of the query. If you specify `time`,
|
1385
|
-
# the
|
1386
|
-
#
|
1390
|
+
# the 15 minutes before this time are queries. If you omit `time` the
|
1391
|
+
# 8 minutes before and 8 minutes after this time are searched.
|
1387
1392
|
#
|
1388
1393
|
# The `time` value is specified as epoch time, the number of seconds
|
1389
1394
|
# since January 1, 1970, 00:00:00 UTC.
|
@@ -1611,8 +1616,12 @@ module Aws::CloudWatchLogs
|
|
1611
1616
|
# group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150,
|
1612
1617
|
# 180, 365, 400, 545, 731, 1827, and 3653.
|
1613
1618
|
#
|
1614
|
-
#
|
1615
|
-
#
|
1619
|
+
# To set a log group to never have log events expire, use
|
1620
|
+
# [DeleteRetentionPolicy][1].
|
1621
|
+
#
|
1622
|
+
#
|
1623
|
+
#
|
1624
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html
|
1616
1625
|
# @return [Integer]
|
1617
1626
|
#
|
1618
1627
|
# @!attribute [rw] metric_filter_count
|
@@ -1829,6 +1838,10 @@ module Aws::CloudWatchLogs
|
|
1829
1838
|
# metric_namespace: "MetricNamespace", # required
|
1830
1839
|
# metric_value: "MetricValue", # required
|
1831
1840
|
# default_value: 1.0,
|
1841
|
+
# dimensions: {
|
1842
|
+
# "DimensionsKey" => "DimensionsValue",
|
1843
|
+
# },
|
1844
|
+
# unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
|
1832
1845
|
# }
|
1833
1846
|
#
|
1834
1847
|
# @!attribute [rw] metric_name
|
@@ -1855,13 +1868,44 @@ module Aws::CloudWatchLogs
|
|
1855
1868
|
# log event. This value can be null.
|
1856
1869
|
# @return [Float]
|
1857
1870
|
#
|
1871
|
+
# @!attribute [rw] dimensions
|
1872
|
+
# The fields to use as dimensions for the metric. One metric filter
|
1873
|
+
# can include as many as three dimensions.
|
1874
|
+
#
|
1875
|
+
# Metrics extracted from log events are charged as custom metrics. To
|
1876
|
+
# prevent unexpected high charges, do not specify high-cardinality
|
1877
|
+
# fields such as `IPAddress` or `requestID` as dimensions. Each
|
1878
|
+
# different value found for a dimension is treated as a separate
|
1879
|
+
# metric and accrues charges as a separate custom metric.
|
1880
|
+
#
|
1881
|
+
# To help prevent accidental high charges, Amazon disables a metric
|
1882
|
+
# filter if it generates 1000 different name/value pairs for the
|
1883
|
+
# dimensions that you have specified within a certain amount of time.
|
1884
|
+
#
|
1885
|
+
# You can also set up a billing alarm to alert you if your charges
|
1886
|
+
# are
|
1887
|
+
# higher than expected. For more information, see [ Creating a Billing
|
1888
|
+
# Alarm to Monitor Your Estimated Amazon Web Services Charges][1].
|
1889
|
+
#
|
1890
|
+
#
|
1891
|
+
#
|
1892
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html
|
1893
|
+
# @return [Hash<String,String>]
|
1894
|
+
#
|
1895
|
+
# @!attribute [rw] unit
|
1896
|
+
# The unit to assign to the metric. If you omit this, the unit is set
|
1897
|
+
# as `None`.
|
1898
|
+
# @return [String]
|
1899
|
+
#
|
1858
1900
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricTransformation AWS API Documentation
|
1859
1901
|
#
|
1860
1902
|
class MetricTransformation < Struct.new(
|
1861
1903
|
:metric_name,
|
1862
1904
|
:metric_namespace,
|
1863
1905
|
:metric_value,
|
1864
|
-
:default_value
|
1906
|
+
:default_value,
|
1907
|
+
:dimensions,
|
1908
|
+
:unit)
|
1865
1909
|
SENSITIVE = []
|
1866
1910
|
include Aws::Structure
|
1867
1911
|
end
|
@@ -2053,6 +2097,10 @@ module Aws::CloudWatchLogs
|
|
2053
2097
|
# metric_namespace: "MetricNamespace", # required
|
2054
2098
|
# metric_value: "MetricValue", # required
|
2055
2099
|
# default_value: 1.0,
|
2100
|
+
# dimensions: {
|
2101
|
+
# "DimensionsKey" => "DimensionsValue",
|
2102
|
+
# },
|
2103
|
+
# unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
|
2056
2104
|
# },
|
2057
2105
|
# ],
|
2058
2106
|
# }
|
@@ -2185,10 +2233,28 @@ module Aws::CloudWatchLogs
|
|
2185
2233
|
# Replace `"logArn"` with the ARN of your CloudWatch Logs resource,
|
2186
2234
|
# such as a log group or log stream.
|
2187
2235
|
#
|
2236
|
+
# CloudWatch Logs also supports [aws:SourceArn][1] and
|
2237
|
+
# [aws:SourceAccount][2] condition context keys.
|
2238
|
+
#
|
2239
|
+
# In the example resource policy, you would replace the value of
|
2240
|
+
# `SourceArn` with the resource making the call from Route 53 to
|
2241
|
+
# CloudWatch Logs and replace the value of `SourceAccount` with the
|
2242
|
+
# Amazon Web Services account ID making that call.
|
2243
|
+
#
|
2244
|
+
#
|
2245
|
+
#
|
2188
2246
|
# `\{ "Version": "2012-10-17", "Statement": [ \{ "Sid":
|
2189
2247
|
# "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": \{
|
2190
|
-
# "Service": [ "route53.amazonaws.com" ] \},
|
2191
|
-
# "
|
2248
|
+
# "Service": [ "route53.amazonaws.com" ] \}, "Action":
|
2249
|
+
# "logs:PutLogEvents", "Resource": "logArn", "Condition": \{
|
2250
|
+
# "ArnLike": \{ "aws:SourceArn": "myRoute53ResourceArn" \},
|
2251
|
+
# "StringEquals": \{ "aws:SourceAccount": "myAwsAccountId" \} \} \} ]
|
2252
|
+
# \}`
|
2253
|
+
#
|
2254
|
+
#
|
2255
|
+
#
|
2256
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn
|
2257
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount
|
2192
2258
|
# @return [String]
|
2193
2259
|
#
|
2194
2260
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyRequest AWS API Documentation
|
@@ -2229,8 +2295,12 @@ module Aws::CloudWatchLogs
|
|
2229
2295
|
# group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150,
|
2230
2296
|
# 180, 365, 400, 545, 731, 1827, and 3653.
|
2231
2297
|
#
|
2232
|
-
#
|
2233
|
-
#
|
2298
|
+
# To set a log group to never have log events expire, use
|
2299
|
+
# [DeleteRetentionPolicy][1].
|
2300
|
+
#
|
2301
|
+
#
|
2302
|
+
#
|
2303
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html
|
2234
2304
|
# @return [Integer]
|
2235
2305
|
#
|
2236
2306
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicyRequest AWS API Documentation
|
@@ -2260,10 +2330,9 @@ module Aws::CloudWatchLogs
|
|
2260
2330
|
#
|
2261
2331
|
# @!attribute [rw] filter_name
|
2262
2332
|
# A name for the subscription filter. If you are updating an existing
|
2263
|
-
# filter, you must specify the correct name in `filterName`.
|
2264
|
-
#
|
2265
|
-
#
|
2266
|
-
# associated with a log group, use [DescribeSubscriptionFilters][1].
|
2333
|
+
# filter, you must specify the correct name in `filterName`. To find
|
2334
|
+
# the name of the filter currently associated with a log group, use
|
2335
|
+
# [DescribeSubscriptionFilters][1].
|
2267
2336
|
#
|
2268
2337
|
#
|
2269
2338
|
#
|
@@ -2284,11 +2353,20 @@ module Aws::CloudWatchLogs
|
|
2284
2353
|
# * A logical destination (specified using an ARN) belonging to a
|
2285
2354
|
# different account, for cross-account delivery.
|
2286
2355
|
#
|
2356
|
+
# If you are setting up a cross-account subscription, the
|
2357
|
+
# destination must have an IAM policy associated with it that allows
|
2358
|
+
# the sender to send logs to the destination. For more information,
|
2359
|
+
# see [PutDestinationPolicy][1].
|
2360
|
+
#
|
2287
2361
|
# * An Amazon Kinesis Firehose delivery stream belonging to the same
|
2288
2362
|
# account as the subscription filter, for same-account delivery.
|
2289
2363
|
#
|
2290
|
-
# *
|
2364
|
+
# * A Lambda function belonging to the same account as the
|
2291
2365
|
# subscription filter, for same-account delivery.
|
2366
|
+
#
|
2367
|
+
#
|
2368
|
+
#
|
2369
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html
|
2292
2370
|
# @return [String]
|
2293
2371
|
#
|
2294
2372
|
# @!attribute [rw] role_arn
|
@@ -2801,7 +2879,8 @@ module Aws::CloudWatchLogs
|
|
2801
2879
|
include Aws::Structure
|
2802
2880
|
end
|
2803
2881
|
|
2804
|
-
# The most likely cause is an invalid
|
2882
|
+
# The most likely cause is an invalid Amazon Web Services access key ID
|
2883
|
+
# or secret key.
|
2805
2884
|
#
|
2806
2885
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UnrecognizedClientException AWS API Documentation
|
2807
2886
|
#
|
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.44.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: 2021-
|
11
|
+
date: 2021-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.119.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.119.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
|
|
66
66
|
licenses:
|
67
67
|
- Apache-2.0
|
68
68
|
metadata:
|
69
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
70
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
69
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudwatchlogs
|
70
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudwatchlogs/CHANGELOG.md
|
71
71
|
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
87
|
-
rubygems_version: 2.7.6.2
|
86
|
+
rubygems_version: 3.1.6
|
88
87
|
signing_key:
|
89
88
|
specification_version: 4
|
90
89
|
summary: AWS SDK for Ruby - Amazon CloudWatch Logs
|