aws-sdk-cloudwatchlogs 1.34.0 → 1.40.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 +273 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-cloudwatchlogs.rb +4 -3
- data/lib/aws-sdk-cloudwatchlogs/client.rb +201 -78
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +1 -1
- data/lib/aws-sdk-cloudwatchlogs/errors.rb +1 -1
- data/lib/aws-sdk-cloudwatchlogs/resource.rb +1 -1
- data/lib/aws-sdk-cloudwatchlogs/types.rb +118 -37
- metadata +8 -5
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.40.0
|
@@ -3,10 +3,11 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-cloudwatchlogs/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::CloudWatchLogs
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.40.0'
|
51
52
|
|
52
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -85,13 +85,28 @@ module Aws::CloudWatchLogs
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::CloudWatchLogs
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -333,17 +348,14 @@ module Aws::CloudWatchLogs
|
|
333
348
|
# This enables Amazon CloudWatch Logs to decrypt this data whenever it
|
334
349
|
# is requested.
|
335
350
|
#
|
336
|
-
#
|
337
|
-
#
|
338
|
-
#
|
339
|
-
#
|
340
|
-
# </note>
|
351
|
+
# CloudWatch Logs supports only symmetric CMKs. Do not use an associate
|
352
|
+
# an asymmetric CMK with your log group. For more information, see
|
353
|
+
# [Using Symmetric and Asymmetric Keys][1].
|
341
354
|
#
|
342
|
-
#
|
343
|
-
# effect.
|
355
|
+
# It can take up to 5 minutes for this operation to take effect.
|
344
356
|
#
|
345
357
|
# If you attempt to associate a CMK with a log group but the CMK does
|
346
|
-
# not exist or the CMK is disabled, you
|
358
|
+
# not exist or the CMK is disabled, you receive an
|
347
359
|
# `InvalidParameterException` error.
|
348
360
|
#
|
349
361
|
#
|
@@ -407,7 +419,10 @@ module Aws::CloudWatchLogs
|
|
407
419
|
end
|
408
420
|
|
409
421
|
# Creates an export task, which allows you to efficiently export data
|
410
|
-
# from a log group to an Amazon S3 bucket.
|
422
|
+
# from a log group to an Amazon S3 bucket. When you perform a
|
423
|
+
# `CreateExportTask` operation, you must use credentials that have
|
424
|
+
# permission to write to the S3 bucket that you specify as the
|
425
|
+
# destination.
|
411
426
|
#
|
412
427
|
# This is an asynchronous call. If all the required information is
|
413
428
|
# provided, this operation initiates an export task and responds with
|
@@ -486,9 +501,8 @@ module Aws::CloudWatchLogs
|
|
486
501
|
req.send_request(options)
|
487
502
|
end
|
488
503
|
|
489
|
-
# Creates a log group with the specified name.
|
490
|
-
#
|
491
|
-
# You can create up to 20,000 log groups per account.
|
504
|
+
# Creates a log group with the specified name. You can create up to
|
505
|
+
# 20,000 log groups per account.
|
492
506
|
#
|
493
507
|
# You must use the following guidelines when naming a log group:
|
494
508
|
#
|
@@ -500,6 +514,10 @@ module Aws::CloudWatchLogs
|
|
500
514
|
# '\_' (underscore), '-' (hyphen), '/' (forward slash), '.'
|
501
515
|
# (period), and '#' (number sign)
|
502
516
|
#
|
517
|
+
# When you create a log group, by default the log events in the log
|
518
|
+
# group never expire. To set a retention policy so that events expire
|
519
|
+
# and are deleted after a specified time, use [PutRetentionPolicy][1].
|
520
|
+
#
|
503
521
|
# If you associate a AWS Key Management Service (AWS KMS) customer
|
504
522
|
# master key (CMK) with the log group, ingested data is encrypted using
|
505
523
|
# the CMK. This association is stored as long as the data encrypted with
|
@@ -507,18 +525,17 @@ module Aws::CloudWatchLogs
|
|
507
525
|
# CloudWatch Logs to decrypt this data whenever it is requested.
|
508
526
|
#
|
509
527
|
# If you attempt to associate a CMK with the log group but the CMK does
|
510
|
-
# not exist or the CMK is disabled, you
|
528
|
+
# not exist or the CMK is disabled, you receive an
|
511
529
|
# `InvalidParameterException` error.
|
512
530
|
#
|
513
|
-
#
|
514
|
-
#
|
515
|
-
#
|
516
|
-
#
|
517
|
-
# </note>
|
531
|
+
# CloudWatch Logs supports only symmetric CMKs. Do not associate an
|
532
|
+
# asymmetric CMK with your log group. For more information, see [Using
|
533
|
+
# Symmetric and Asymmetric Keys][2].
|
518
534
|
#
|
519
535
|
#
|
520
536
|
#
|
521
|
-
# [1]: https://docs.aws.amazon.com/
|
537
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html
|
538
|
+
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html
|
522
539
|
#
|
523
540
|
# @option params [required, String] :log_group_name
|
524
541
|
# The name of the log group.
|
@@ -556,7 +573,9 @@ module Aws::CloudWatchLogs
|
|
556
573
|
req.send_request(options)
|
557
574
|
end
|
558
575
|
|
559
|
-
# Creates a log stream for the specified log group.
|
576
|
+
# Creates a log stream for the specified log group. A log stream is a
|
577
|
+
# sequence of log events that originate from a single source, such as an
|
578
|
+
# application instance or a resource that is being monitored.
|
560
579
|
#
|
561
580
|
# There is no limit on the number of log streams that you can create for
|
562
581
|
# a log group. There is a limit of 50 TPS on `CreateLogStream`
|
@@ -694,7 +713,24 @@ module Aws::CloudWatchLogs
|
|
694
713
|
req.send_request(options)
|
695
714
|
end
|
696
715
|
|
716
|
+
# Deletes a saved CloudWatch Logs Insights query definition. A query
|
717
|
+
# definition contains details about a saved CloudWatch Logs Insights
|
718
|
+
# query.
|
719
|
+
#
|
720
|
+
# Each `DeleteQueryDefinition` operation can delete one query
|
721
|
+
# definition.
|
722
|
+
#
|
723
|
+
# You must have the `logs:DeleteQueryDefinition` permission to be able
|
724
|
+
# to perform this operation.
|
725
|
+
#
|
697
726
|
# @option params [required, String] :query_definition_id
|
727
|
+
# The ID of the query definition that you want to delete. You can use
|
728
|
+
# [DescribeQueryDefinitions][1] to retrieve the IDs of your saved query
|
729
|
+
# definitions.
|
730
|
+
#
|
731
|
+
#
|
732
|
+
#
|
733
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html
|
698
734
|
#
|
699
735
|
# @return [Types::DeleteQueryDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
700
736
|
#
|
@@ -965,7 +1001,7 @@ module Aws::CloudWatchLogs
|
|
965
1001
|
# @option params [String] :log_stream_name_prefix
|
966
1002
|
# The prefix to match.
|
967
1003
|
#
|
968
|
-
# If `orderBy` is `LastEventTime`,you cannot specify this parameter.
|
1004
|
+
# If `orderBy` is `LastEventTime`, you cannot specify this parameter.
|
969
1005
|
#
|
970
1006
|
# @option params [String] :order_by
|
971
1007
|
# If the value is `LogStreamName`, the results are ordered by log stream
|
@@ -975,12 +1011,12 @@ module Aws::CloudWatchLogs
|
|
975
1011
|
# If you order the results by event time, you cannot specify the
|
976
1012
|
# `logStreamNamePrefix` parameter.
|
977
1013
|
#
|
978
|
-
#
|
979
|
-
# the log stream in CloudWatch Logs. This number is expressed as the
|
1014
|
+
# `lastEventTimeStamp` represents the time of the most recent log event
|
1015
|
+
# in the log stream in CloudWatch Logs. This number is expressed as the
|
980
1016
|
# number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
981
|
-
# lastEventTimeStamp updates on an eventual consistency basis. It
|
982
|
-
# typically updates in less than an hour from ingestion, but
|
983
|
-
#
|
1017
|
+
# `lastEventTimeStamp` updates on an eventual consistency basis. It
|
1018
|
+
# typically updates in less than an hour from ingestion, but in rare
|
1019
|
+
# situations might take longer.
|
984
1020
|
#
|
985
1021
|
# @option params [Boolean] :descending
|
986
1022
|
# If the value is true, results are returned in descending order. If the
|
@@ -1035,7 +1071,7 @@ module Aws::CloudWatchLogs
|
|
1035
1071
|
req.send_request(options)
|
1036
1072
|
end
|
1037
1073
|
|
1038
|
-
# Lists the specified metric filters. You can list all the metric
|
1074
|
+
# Lists the specified metric filters. You can list all of the metric
|
1039
1075
|
# filters or filter the results by log name, prefix, metric name, or
|
1040
1076
|
# metric namespace. The results are ASCII-sorted by filter name.
|
1041
1077
|
#
|
@@ -1043,7 +1079,8 @@ module Aws::CloudWatchLogs
|
|
1043
1079
|
# The name of the log group.
|
1044
1080
|
#
|
1045
1081
|
# @option params [String] :filter_name_prefix
|
1046
|
-
# The prefix to match.
|
1082
|
+
# The prefix to match. CloudWatch Logs uses the value you set here only
|
1083
|
+
# if you also include the `logGroupName` parameter in your request.
|
1047
1084
|
#
|
1048
1085
|
# @option params [String] :next_token
|
1049
1086
|
# The token for the next set of items to return. (You received this
|
@@ -1106,7 +1143,7 @@ module Aws::CloudWatchLogs
|
|
1106
1143
|
|
1107
1144
|
# Returns a list of CloudWatch Logs Insights queries that are scheduled,
|
1108
1145
|
# executing, or have been executed recently in this account. You can
|
1109
|
-
# request all queries
|
1146
|
+
# request all queries or limit it to queries of a specific log group or
|
1110
1147
|
# queries with a certain status.
|
1111
1148
|
#
|
1112
1149
|
# @option params [String] :log_group_name
|
@@ -1157,9 +1194,20 @@ module Aws::CloudWatchLogs
|
|
1157
1194
|
req.send_request(options)
|
1158
1195
|
end
|
1159
1196
|
|
1197
|
+
# This operation returns a paginated list of your saved CloudWatch Logs
|
1198
|
+
# Insights query definitions.
|
1199
|
+
#
|
1200
|
+
# You can use the `queryDefinitionNamePrefix` parameter to limit the
|
1201
|
+
# results to only the query definitions that have names that start with
|
1202
|
+
# a certain string.
|
1203
|
+
#
|
1160
1204
|
# @option params [String] :query_definition_name_prefix
|
1205
|
+
# Use this parameter to filter your results to only the query
|
1206
|
+
# definitions that have names that start with the prefix you specify.
|
1161
1207
|
#
|
1162
1208
|
# @option params [Integer] :max_results
|
1209
|
+
# Limits the number of returned query definitions to the specified
|
1210
|
+
# number.
|
1163
1211
|
#
|
1164
1212
|
# @option params [String] :next_token
|
1165
1213
|
# The token for the next set of items to return. The token expires after
|
@@ -1330,10 +1378,16 @@ module Aws::CloudWatchLogs
|
|
1330
1378
|
# and the name of the log stream.
|
1331
1379
|
#
|
1332
1380
|
# By default, this operation returns as many log events as can fit in 1
|
1333
|
-
# MB (up to 10,000 log events)
|
1381
|
+
# MB (up to 10,000 log events) or all the events found within the time
|
1334
1382
|
# range that you specify. If the results include a token, then there are
|
1335
1383
|
# more log events available, and you can get additional results by
|
1336
|
-
# specifying the token in a subsequent call.
|
1384
|
+
# specifying the token in a subsequent call. This operation can return
|
1385
|
+
# empty results while there are more log events available through the
|
1386
|
+
# token.
|
1387
|
+
#
|
1388
|
+
# The returned log events are sorted by event timestamp, the timestamp
|
1389
|
+
# when the event was ingested by CloudWatch Logs, and the ID of the
|
1390
|
+
# `PutLogEvents` request.
|
1337
1391
|
#
|
1338
1392
|
# @option params [required, String] :log_group_name
|
1339
1393
|
# The name of the log group to search.
|
@@ -1359,6 +1413,9 @@ module Aws::CloudWatchLogs
|
|
1359
1413
|
# after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this
|
1360
1414
|
# time are not returned.
|
1361
1415
|
#
|
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
|
+
#
|
1362
1419
|
# @option params [Integer] :end_time
|
1363
1420
|
# The end of the time range, expressed as the number of milliseconds
|
1364
1421
|
# after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
|
@@ -1388,10 +1445,10 @@ module Aws::CloudWatchLogs
|
|
1388
1445
|
# the matched log events in the first log stream are searched first,
|
1389
1446
|
# then those in the next log stream, and so on. The default is false.
|
1390
1447
|
#
|
1391
|
-
# **
|
1392
|
-
#
|
1393
|
-
#
|
1394
|
-
#
|
1448
|
+
# **Important:** Starting on June 17, 2019, this parameter is ignored
|
1449
|
+
# and the value is assumed to be true. The response from this operation
|
1450
|
+
# always interleaves events from multiple log streams within a log
|
1451
|
+
# group.
|
1395
1452
|
#
|
1396
1453
|
# @return [Types::FilterLogEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1397
1454
|
#
|
@@ -1437,12 +1494,14 @@ module Aws::CloudWatchLogs
|
|
1437
1494
|
req.send_request(options)
|
1438
1495
|
end
|
1439
1496
|
|
1440
|
-
# Lists log events from the specified log stream. You can list all
|
1441
|
-
# log events or filter using a time range.
|
1497
|
+
# Lists log events from the specified log stream. You can list all of
|
1498
|
+
# the log events or filter using a time range.
|
1442
1499
|
#
|
1443
1500
|
# By default, this operation returns as many log events as can fit in a
|
1444
1501
|
# response size of 1MB (up to 10,000 log events). You can get additional
|
1445
|
-
# log events by specifying one of the tokens in a subsequent call.
|
1502
|
+
# log events by specifying one of the tokens in a subsequent call. This
|
1503
|
+
# operation can return empty results while there are more log events
|
1504
|
+
# available through the token.
|
1446
1505
|
#
|
1447
1506
|
# @option params [required, String] :log_group_name
|
1448
1507
|
# The name of the log group.
|
@@ -1573,13 +1632,12 @@ module Aws::CloudWatchLogs
|
|
1573
1632
|
req.send_request(options)
|
1574
1633
|
end
|
1575
1634
|
|
1576
|
-
# Retrieves all the fields and values of a single log event. All
|
1577
|
-
# are retrieved, even if the original query that produced the
|
1635
|
+
# Retrieves all of the fields and values of a single log event. All
|
1636
|
+
# fields are retrieved, even if the original query that produced the
|
1578
1637
|
# `logRecordPointer` retrieved only a subset of fields. Fields are
|
1579
1638
|
# returned as field name/field value pairs.
|
1580
1639
|
#
|
1581
|
-
#
|
1582
|
-
# `@message`.
|
1640
|
+
# The full unparsed log event is returned within `@message`.
|
1583
1641
|
#
|
1584
1642
|
# @option params [required, String] :log_record_pointer
|
1585
1643
|
# The pointer corresponding to the log event record you want to
|
@@ -1615,7 +1673,7 @@ module Aws::CloudWatchLogs
|
|
1615
1673
|
# Returns the results from the specified query.
|
1616
1674
|
#
|
1617
1675
|
# Only the fields requested in the query are returned, along with a
|
1618
|
-
# `@ptr` field which is the identifier for the log record. You can use
|
1676
|
+
# `@ptr` field, which is the identifier for the log record. You can use
|
1619
1677
|
# the value of `@ptr` in a [GetLogRecord][1] operation to get the full
|
1620
1678
|
# log record.
|
1621
1679
|
#
|
@@ -1710,6 +1768,9 @@ module Aws::CloudWatchLogs
|
|
1710
1768
|
# the destination owner must call [PutDestinationPolicy][3] after
|
1711
1769
|
# `PutDestination`.
|
1712
1770
|
#
|
1771
|
+
# To perform a `PutDestination` operation, you must also have the
|
1772
|
+
# `iam:PassRole` permission.
|
1773
|
+
#
|
1713
1774
|
#
|
1714
1775
|
#
|
1715
1776
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
|
@@ -1725,7 +1786,7 @@ module Aws::CloudWatchLogs
|
|
1725
1786
|
#
|
1726
1787
|
# @option params [required, String] :role_arn
|
1727
1788
|
# The ARN of an IAM role that grants CloudWatch Logs permissions to call
|
1728
|
-
# the Amazon Kinesis PutRecord operation on the destination stream.
|
1789
|
+
# the Amazon Kinesis `PutRecord` operation on the destination stream.
|
1729
1790
|
#
|
1730
1791
|
# @return [Types::PutDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1731
1792
|
#
|
@@ -1771,7 +1832,8 @@ module Aws::CloudWatchLogs
|
|
1771
1832
|
#
|
1772
1833
|
# @option params [required, String] :access_policy
|
1773
1834
|
# An IAM policy document that authorizes cross-account users to deliver
|
1774
|
-
# their log events to the associated destination.
|
1835
|
+
# their log events to the associated destination. This can be up to 5120
|
1836
|
+
# bytes.
|
1775
1837
|
#
|
1776
1838
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1777
1839
|
#
|
@@ -1798,14 +1860,14 @@ module Aws::CloudWatchLogs
|
|
1798
1860
|
# require a sequence token. You can also get the sequence token in the
|
1799
1861
|
# `expectedSequenceToken` field from `InvalidSequenceTokenException`. If
|
1800
1862
|
# you call `PutLogEvents` twice within a narrow time period using the
|
1801
|
-
# same value for `sequenceToken`, both calls
|
1802
|
-
#
|
1863
|
+
# same value for `sequenceToken`, both calls might be successful or one
|
1864
|
+
# might be rejected.
|
1803
1865
|
#
|
1804
1866
|
# The batch of events must satisfy the following constraints:
|
1805
1867
|
#
|
1806
|
-
# * The maximum batch size is 1,048,576 bytes
|
1807
|
-
#
|
1808
|
-
#
|
1868
|
+
# * The maximum batch size is 1,048,576 bytes. This size is calculated
|
1869
|
+
# as the sum of all event messages in UTF-8, plus 26 bytes for each
|
1870
|
+
# log event.
|
1809
1871
|
#
|
1810
1872
|
# * None of the log events in the batch can be more than 2 hours in the
|
1811
1873
|
# future.
|
@@ -1813,12 +1875,12 @@ module Aws::CloudWatchLogs
|
|
1813
1875
|
# * None of the log events in the batch can be older than 14 days or
|
1814
1876
|
# older than the retention period of the log group.
|
1815
1877
|
#
|
1816
|
-
# * The log events in the batch must be in chronological
|
1817
|
-
#
|
1818
|
-
#
|
1819
|
-
#
|
1820
|
-
#
|
1821
|
-
#
|
1878
|
+
# * The log events in the batch must be in chronological order by their
|
1879
|
+
# timestamp. The timestamp is the time the event occurred, expressed
|
1880
|
+
# as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In
|
1881
|
+
# AWS Tools for PowerShell and the AWS SDK for .NET, the timestamp is
|
1882
|
+
# specified in .NET format: yyyy-mm-ddThh:mm:ss. For example,
|
1883
|
+
# 2017-09-15T13:45:30.)
|
1822
1884
|
#
|
1823
1885
|
# * A batch of log events in a single request cannot span more than 24
|
1824
1886
|
# hours. Otherwise, the operation fails.
|
@@ -1828,8 +1890,8 @@ module Aws::CloudWatchLogs
|
|
1828
1890
|
# * There is a quota of 5 requests per second per log stream. Additional
|
1829
1891
|
# requests are throttled. This quota can't be changed.
|
1830
1892
|
#
|
1831
|
-
# If a call to PutLogEvents returns "UnrecognizedClientException"
|
1832
|
-
# most likely cause is an invalid AWS access key ID or secret key.
|
1893
|
+
# If a call to `PutLogEvents` returns "UnrecognizedClientException"
|
1894
|
+
# the most likely cause is an invalid AWS access key ID or secret key.
|
1833
1895
|
#
|
1834
1896
|
# @option params [required, String] :log_group_name
|
1835
1897
|
# The name of the log group.
|
@@ -1846,7 +1908,7 @@ module Aws::CloudWatchLogs
|
|
1846
1908
|
# require a sequence token. You can also get the sequence token using
|
1847
1909
|
# [DescribeLogStreams][1]. If you call `PutLogEvents` twice within a
|
1848
1910
|
# narrow time period using the same value for `sequenceToken`, both
|
1849
|
-
# calls
|
1911
|
+
# calls might be successful or one might be rejected.
|
1850
1912
|
#
|
1851
1913
|
#
|
1852
1914
|
#
|
@@ -1939,13 +2001,65 @@ module Aws::CloudWatchLogs
|
|
1939
2001
|
req.send_request(options)
|
1940
2002
|
end
|
1941
2003
|
|
2004
|
+
# Creates or updates a query definition for CloudWatch Logs Insights.
|
2005
|
+
# For more information, see [Analyzing Log Data with CloudWatch Logs
|
2006
|
+
# Insights][1].
|
2007
|
+
#
|
2008
|
+
# To update a query definition, specify its `queryDefinitionId` in your
|
2009
|
+
# request. The values of `name`, `queryString`, and `logGroupNames` are
|
2010
|
+
# changed to the values that you specify in your update operation. No
|
2011
|
+
# current values are retained from the current query definition. For
|
2012
|
+
# example, if you update a current query definition that includes log
|
2013
|
+
# groups, and you don't specify the `logGroupNames` parameter in your
|
2014
|
+
# update operation, the query definition changes to contain no log
|
2015
|
+
# groups.
|
2016
|
+
#
|
2017
|
+
# You must have the `logs:PutQueryDefinition` permission to be able to
|
2018
|
+
# perform this operation.
|
2019
|
+
#
|
2020
|
+
#
|
2021
|
+
#
|
2022
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
|
2023
|
+
#
|
1942
2024
|
# @option params [required, String] :name
|
2025
|
+
# A name for the query definition. If you are saving a lot of query
|
2026
|
+
# definitions, we recommend that you name them so that you can easily
|
2027
|
+
# find the ones you want by using the first part of the name as a filter
|
2028
|
+
# in the `queryDefinitionNamePrefix` parameter of
|
2029
|
+
# [DescribeQueryDefinitions][1].
|
2030
|
+
#
|
2031
|
+
#
|
2032
|
+
#
|
2033
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html
|
1943
2034
|
#
|
1944
2035
|
# @option params [String] :query_definition_id
|
2036
|
+
# If you are updating a query definition, use this parameter to specify
|
2037
|
+
# the ID of the query definition that you want to update. You can use
|
2038
|
+
# [DescribeQueryDefinitions][1] to retrieve the IDs of your saved query
|
2039
|
+
# definitions.
|
2040
|
+
#
|
2041
|
+
# If you are creating a query definition, do not specify this parameter.
|
2042
|
+
# CloudWatch generates a unique ID for the new query definition and
|
2043
|
+
# include it in the response to this operation.
|
2044
|
+
#
|
2045
|
+
#
|
2046
|
+
#
|
2047
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html
|
1945
2048
|
#
|
1946
2049
|
# @option params [Array<String>] :log_group_names
|
2050
|
+
# Use this parameter to include specific log groups as part of your
|
2051
|
+
# query definition.
|
2052
|
+
#
|
2053
|
+
# If you are updating a query definition and you omit this parameter,
|
2054
|
+
# then the updated definition will contain no log groups.
|
1947
2055
|
#
|
1948
2056
|
# @option params [required, String] :query_string
|
2057
|
+
# The query string to use for this definition. For more information, see
|
2058
|
+
# [CloudWatch Logs Insights Query Syntax][1].
|
2059
|
+
#
|
2060
|
+
#
|
2061
|
+
#
|
2062
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html
|
1949
2063
|
#
|
1950
2064
|
# @return [Types::PutQueryDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1951
2065
|
#
|
@@ -1975,7 +2089,7 @@ module Aws::CloudWatchLogs
|
|
1975
2089
|
|
1976
2090
|
# Creates or updates a resource policy allowing other AWS services to
|
1977
2091
|
# put log events to this account, such as Amazon Route 53. An account
|
1978
|
-
# can have up to 10 resource policies per
|
2092
|
+
# can have up to 10 resource policies per AWS Region.
|
1979
2093
|
#
|
1980
2094
|
# @option params [String] :policy_name
|
1981
2095
|
# Name of the new policy. This parameter is required.
|
@@ -1987,7 +2101,7 @@ module Aws::CloudWatchLogs
|
|
1987
2101
|
#
|
1988
2102
|
# The following example creates a resource policy enabling the Route 53
|
1989
2103
|
# service to put DNS query logs in to the specified log group. Replace
|
1990
|
-
# "logArn" with the ARN of your CloudWatch Logs resource, such as a
|
2104
|
+
# `"logArn"` with the ARN of your CloudWatch Logs resource, such as a
|
1991
2105
|
# log group or log stream.
|
1992
2106
|
#
|
1993
2107
|
# `\{ "Version": "2012-10-17", "Statement": [ \{ "Sid":
|
@@ -2033,6 +2147,9 @@ module Aws::CloudWatchLogs
|
|
2033
2147
|
# group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180,
|
2034
2148
|
# 365, 400, 545, 731, 1827, and 3653.
|
2035
2149
|
#
|
2150
|
+
# If you omit `retentionInDays` in a `PutRetentionPolicy` operation, the
|
2151
|
+
# events in the log group are always retained and never expire.
|
2152
|
+
#
|
2036
2153
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2037
2154
|
#
|
2038
2155
|
# @example Request syntax with placeholder values
|
@@ -2054,8 +2171,11 @@ module Aws::CloudWatchLogs
|
|
2054
2171
|
# Creates or updates a subscription filter and associates it with the
|
2055
2172
|
# specified log group. Subscription filters allow you to subscribe to a
|
2056
2173
|
# real-time stream of log events ingested through [PutLogEvents][1] and
|
2057
|
-
# have them delivered to a specific destination.
|
2058
|
-
#
|
2174
|
+
# have them delivered to a specific destination. When log events are
|
2175
|
+
# sent to the receiving service, they are Base64 encoded and compressed
|
2176
|
+
# with the gzip format.
|
2177
|
+
#
|
2178
|
+
# The following destinations are supported for subscription filters:
|
2059
2179
|
#
|
2060
2180
|
# * An Amazon Kinesis stream belonging to the same account as the
|
2061
2181
|
# subscription filter, for same-account delivery.
|
@@ -2074,6 +2194,9 @@ module Aws::CloudWatchLogs
|
|
2074
2194
|
# name in `filterName`. Otherwise, the call fails because you cannot
|
2075
2195
|
# associate a second filter with a log group.
|
2076
2196
|
#
|
2197
|
+
# To perform a `PutSubscriptionFilter` operation, you must also have the
|
2198
|
+
# `iam:PassRole` permission.
|
2199
|
+
#
|
2077
2200
|
#
|
2078
2201
|
#
|
2079
2202
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
|
@@ -2118,7 +2241,7 @@ module Aws::CloudWatchLogs
|
|
2118
2241
|
# cross-account delivery.
|
2119
2242
|
#
|
2120
2243
|
# @option params [String] :distribution
|
2121
|
-
# The method used to distribute log data to the destination. By default
|
2244
|
+
# The method used to distribute log data to the destination. By default,
|
2122
2245
|
# log data is grouped by log stream, but the grouping can be set to
|
2123
2246
|
# random for a more even distribution. This property is only applicable
|
2124
2247
|
# when the destination is an Amazon Kinesis stream.
|
@@ -2146,13 +2269,13 @@ module Aws::CloudWatchLogs
|
|
2146
2269
|
end
|
2147
2270
|
|
2148
2271
|
# Schedules a query of a log group using CloudWatch Logs Insights. You
|
2149
|
-
# specify the log group and time range to query
|
2272
|
+
# specify the log group and time range to query and the query string to
|
2150
2273
|
# use.
|
2151
2274
|
#
|
2152
2275
|
# For more information, see [CloudWatch Logs Insights Query Syntax][1].
|
2153
2276
|
#
|
2154
2277
|
# Queries time out after 15 minutes of execution. If your queries are
|
2155
|
-
# timing out, reduce the time range being searched
|
2278
|
+
# timing out, reduce the time range being searched or partition your
|
2156
2279
|
# query into a number of queries.
|
2157
2280
|
#
|
2158
2281
|
#
|
@@ -2228,8 +2351,8 @@ module Aws::CloudWatchLogs
|
|
2228
2351
|
# that the specified query is not running.
|
2229
2352
|
#
|
2230
2353
|
# @option params [required, String] :query_id
|
2231
|
-
# The ID number of the query to stop.
|
2232
|
-
# `DescribeQueries
|
2354
|
+
# The ID number of the query to stop. To find this ID number, use
|
2355
|
+
# `DescribeQueries`.
|
2233
2356
|
#
|
2234
2357
|
# @return [Types::StopQueryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2235
2358
|
#
|
@@ -2300,7 +2423,7 @@ module Aws::CloudWatchLogs
|
|
2300
2423
|
#
|
2301
2424
|
# @option params [required, String] :filter_pattern
|
2302
2425
|
# A symbolic description of how CloudWatch Logs should interpret the
|
2303
|
-
# data in each log event. For example, a log event
|
2426
|
+
# data in each log event. For example, a log event can contain
|
2304
2427
|
# timestamps, IP addresses, strings, and so on. You use the filter
|
2305
2428
|
# pattern to specify what to look for in the log event message.
|
2306
2429
|
#
|
@@ -2382,7 +2505,7 @@ module Aws::CloudWatchLogs
|
|
2382
2505
|
params: params,
|
2383
2506
|
config: config)
|
2384
2507
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
2385
|
-
context[:gem_version] = '1.
|
2508
|
+
context[:gem_version] = '1.40.0'
|
2386
2509
|
Seahorse::Client::Request.new(handlers, context)
|
2387
2510
|
end
|
2388
2511
|
|