aws-sdk-cloudwatchlogs 1.29.0 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 761b5b6b3c18b8da8e3bddebd07887b80bf71e6e
4
- data.tar.gz: afed7ad404ca06a4cd5fbfbf4201acee566de156
2
+ SHA256:
3
+ metadata.gz: 7728d5e9c973506c4111bae98f65dc2c5a8c1150e6c7e5a40e401d21292dfdfa
4
+ data.tar.gz: 5317ff2c0f6136f8db3706a75bb4744f16ee2abd022373c2d6d19cd9bbc540b1
5
5
  SHA512:
6
- metadata.gz: 69525de787a9959bcc6ebb3bb814db5c11a1ddbdb086dcdb004bc38ab0c936fe051e9589da3eefb9f308a227c4af175ea87c2c04c7686f0c791dc1ab1841dcc1
7
- data.tar.gz: 860afa8c3c883f4bf05cfd8fc89870d9d9a93d5392e89f16facc54e723587c201bc667551ff8b887149377d569c73c9937229143fddf8404b6943c69b06c758e
6
+ metadata.gz: 16c7ccdfa2831bb17219ae5f74a176856d23ab1ef83eda99562a12e5506c9197dd08eca5a5fad96d5542cd06253dcd8ba0aeb6225c4813345d1083ece53a3afa
7
+ data.tar.gz: 28ceee4fc7d41b1382923f7c0e7a85a569737c593bb7dfe209e3d8c39f472774725280fe2775afcac21a5d133219f29a8c872b577db336d7be9df01ff207abfb
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-cloudwatchlogs/customizations'
45
45
  # @service
46
46
  module Aws::CloudWatchLogs
47
47
 
48
- GEM_VERSION = '1.29.0'
48
+ GEM_VERSION = '1.30.0'
49
49
 
50
50
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:cloudwatchlogs)
32
32
  module Aws::CloudWatchLogs
33
33
  # An API client for CloudWatchLogs. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::CloudWatchLogs::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::CloudWatchLogs::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -105,7 +105,7 @@ module Aws::CloudWatchLogs
105
105
  # @option options [required, String] :region
106
106
  # The AWS region to connect to. The configured `:region` is
107
107
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
109
109
  #
110
110
  # * `Aws.config[:region]`
111
111
  # * `ENV['AWS_REGION']`
@@ -161,7 +161,7 @@ module Aws::CloudWatchLogs
161
161
  # @option options [String] :endpoint
162
162
  # The client endpoint is normally constructed from the `:region`
163
163
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
165
165
  #
166
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -229,15 +229,19 @@ module Aws::CloudWatchLogs
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -275,8 +279,7 @@ module Aws::CloudWatchLogs
275
279
  #
276
280
  # @option options [Integer] :http_read_timeout (60) The default
277
281
  # number of seconds to wait for response data. This value can
278
- # safely be set
279
- # per-request on the session yielded by {#session_for}.
282
+ # safely be set per-request on the session.
280
283
  #
281
284
  # @option options [Float] :http_idle_timeout (5) The number of
282
285
  # seconds a connection is allowed to sit idle before it is
@@ -288,7 +291,7 @@ module Aws::CloudWatchLogs
288
291
  # request body. This option has no effect unless the request has
289
292
  # "Expect" header set to "100-continue". Defaults to `nil` which
290
293
  # disables this behaviour. This value can safely be set per
291
- # request on the session yielded by {#session_for}.
294
+ # request on the session.
292
295
  #
293
296
  # @option options [Boolean] :http_wire_trace (false) When `true`,
294
297
  # HTTP debug output will be sent to the `:logger`.
@@ -405,9 +408,9 @@ module Aws::CloudWatchLogs
405
408
  # This is an asynchronous call. If all the required information is
406
409
  # provided, this operation initiates an export task and responds with
407
410
  # the ID of the task. After the task has started, you can use
408
- # DescribeExportTasks to get the status of the export task. Each account
409
- # can only have one active (`RUNNING` or `PENDING`) export task at a
410
- # time. To cancel an export task, use CancelExportTask.
411
+ # [DescribeExportTasks][1] to get the status of the export task. Each
412
+ # account can only have one active (`RUNNING` or `PENDING`) export task
413
+ # at a time. To cancel an export task, use [CancelExportTask][2].
411
414
  #
412
415
  # You can export logs from multiple log groups or multiple time ranges
413
416
  # to the same S3 bucket. To separate out log data for each export task,
@@ -417,6 +420,11 @@ module Aws::CloudWatchLogs
417
420
  # Exporting to S3 buckets that are encrypted with AES-256 is supported.
418
421
  # Exporting to S3 buckets encrypted with SSE-KMS is not supported.
419
422
  #
423
+ #
424
+ #
425
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html
426
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CancelExportTask.html
427
+ #
420
428
  # @option params [String] :task_name
421
429
  # The name of the export task.
422
430
  #
@@ -682,6 +690,31 @@ module Aws::CloudWatchLogs
682
690
  req.send_request(options)
683
691
  end
684
692
 
693
+ # @option params [required, String] :query_definition_id
694
+ #
695
+ # @return [Types::DeleteQueryDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
696
+ #
697
+ # * {Types::DeleteQueryDefinitionResponse#success #success} => Boolean
698
+ #
699
+ # @example Request syntax with placeholder values
700
+ #
701
+ # resp = client.delete_query_definition({
702
+ # query_definition_id: "QueryId", # required
703
+ # })
704
+ #
705
+ # @example Response structure
706
+ #
707
+ # resp.success #=> Boolean
708
+ #
709
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinition AWS API Documentation
710
+ #
711
+ # @overload delete_query_definition(params = {})
712
+ # @param [Hash] params ({})
713
+ def delete_query_definition(params = {}, options = {})
714
+ req = build_request(:delete_query_definition, params)
715
+ req.send_request(options)
716
+ end
717
+
685
718
  # Deletes a resource policy from this account. This revokes the access
686
719
  # of the identities in that policy to put log events to this account.
687
720
  #
@@ -776,6 +809,8 @@ module Aws::CloudWatchLogs
776
809
  # * {Types::DescribeDestinationsResponse#destinations #destinations} => Array<Types::Destination>
777
810
  # * {Types::DescribeDestinationsResponse#next_token #next_token} => String
778
811
  #
812
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
813
+ #
779
814
  # @example Request syntax with placeholder values
780
815
  #
781
816
  # resp = client.describe_destinations({
@@ -882,6 +917,8 @@ module Aws::CloudWatchLogs
882
917
  # * {Types::DescribeLogGroupsResponse#log_groups #log_groups} => Array<Types::LogGroup>
883
918
  # * {Types::DescribeLogGroupsResponse#next_token #next_token} => String
884
919
  #
920
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
921
+ #
885
922
  # @example Request syntax with placeholder values
886
923
  #
887
924
  # resp = client.describe_log_groups({
@@ -959,6 +996,8 @@ module Aws::CloudWatchLogs
959
996
  # * {Types::DescribeLogStreamsResponse#log_streams #log_streams} => Array<Types::LogStream>
960
997
  # * {Types::DescribeLogStreamsResponse#next_token #next_token} => String
961
998
  #
999
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1000
+ #
962
1001
  # @example Request syntax with placeholder values
963
1002
  #
964
1003
  # resp = client.describe_log_streams({
@@ -1025,6 +1064,8 @@ module Aws::CloudWatchLogs
1025
1064
  # * {Types::DescribeMetricFiltersResponse#metric_filters #metric_filters} => Array<Types::MetricFilter>
1026
1065
  # * {Types::DescribeMetricFiltersResponse#next_token #next_token} => String
1027
1066
  #
1067
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1068
+ #
1028
1069
  # @example Request syntax with placeholder values
1029
1070
  #
1030
1071
  # resp = client.describe_metric_filters({
@@ -1112,6 +1153,47 @@ module Aws::CloudWatchLogs
1112
1153
  req.send_request(options)
1113
1154
  end
1114
1155
 
1156
+ # @option params [String] :query_definition_name_prefix
1157
+ #
1158
+ # @option params [Integer] :max_results
1159
+ #
1160
+ # @option params [String] :next_token
1161
+ # The token for the next set of items to return. The token expires after
1162
+ # 24 hours.
1163
+ #
1164
+ # @return [Types::DescribeQueryDefinitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1165
+ #
1166
+ # * {Types::DescribeQueryDefinitionsResponse#query_definitions #query_definitions} => Array<Types::QueryDefinition>
1167
+ # * {Types::DescribeQueryDefinitionsResponse#next_token #next_token} => String
1168
+ #
1169
+ # @example Request syntax with placeholder values
1170
+ #
1171
+ # resp = client.describe_query_definitions({
1172
+ # query_definition_name_prefix: "QueryDefinitionName",
1173
+ # max_results: 1,
1174
+ # next_token: "NextToken",
1175
+ # })
1176
+ #
1177
+ # @example Response structure
1178
+ #
1179
+ # resp.query_definitions #=> Array
1180
+ # resp.query_definitions[0].query_definition_id #=> String
1181
+ # resp.query_definitions[0].name #=> String
1182
+ # resp.query_definitions[0].query_string #=> String
1183
+ # resp.query_definitions[0].last_modified #=> Integer
1184
+ # resp.query_definitions[0].log_group_names #=> Array
1185
+ # resp.query_definitions[0].log_group_names[0] #=> String
1186
+ # resp.next_token #=> String
1187
+ #
1188
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitions AWS API Documentation
1189
+ #
1190
+ # @overload describe_query_definitions(params = {})
1191
+ # @param [Hash] params ({})
1192
+ def describe_query_definitions(params = {}, options = {})
1193
+ req = build_request(:describe_query_definitions, params)
1194
+ req.send_request(options)
1195
+ end
1196
+
1115
1197
  # Lists the resource policies in this account.
1116
1198
  #
1117
1199
  # @option params [String] :next_token
@@ -1175,6 +1257,8 @@ module Aws::CloudWatchLogs
1175
1257
  # * {Types::DescribeSubscriptionFiltersResponse#subscription_filters #subscription_filters} => Array<Types::SubscriptionFilter>
1176
1258
  # * {Types::DescribeSubscriptionFiltersResponse#next_token #next_token} => String
1177
1259
  #
1260
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1261
+ #
1178
1262
  # @example Request syntax with placeholder values
1179
1263
  #
1180
1264
  # resp = client.describe_subscription_filters({
@@ -1311,6 +1395,8 @@ module Aws::CloudWatchLogs
1311
1395
  # * {Types::FilterLogEventsResponse#searched_log_streams #searched_log_streams} => Array<Types::SearchedLogStream>
1312
1396
  # * {Types::FilterLogEventsResponse#next_token #next_token} => String
1313
1397
  #
1398
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1399
+ #
1314
1400
  # @example Request syntax with placeholder values
1315
1401
  #
1316
1402
  # resp = client.filter_log_events({
@@ -1397,6 +1483,8 @@ module Aws::CloudWatchLogs
1397
1483
  # * {Types::GetLogEventsResponse#next_forward_token #next_forward_token} => String
1398
1484
  # * {Types::GetLogEventsResponse#next_backward_token #next_backward_token} => String
1399
1485
  #
1486
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1487
+ #
1400
1488
  # @example Request syntax with placeholder values
1401
1489
  #
1402
1490
  # resp = client.get_log_events({
@@ -1434,11 +1522,16 @@ module Aws::CloudWatchLogs
1434
1522
  #
1435
1523
  # In the results, fields that start with @ are fields generated by
1436
1524
  # CloudWatch Logs. For example, `@timestamp` is the timestamp of each
1437
- # log event.
1525
+ # log event. For more information about the fields that are generated by
1526
+ # CloudWatch logs, see [Supported Logs and Discovered Fields][1].
1438
1527
  #
1439
1528
  # The response results are sorted by the frequency percentage, starting
1440
1529
  # with the highest percentage.
1441
1530
  #
1531
+ #
1532
+ #
1533
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html
1534
+ #
1442
1535
  # @option params [required, String] :log_group_name
1443
1536
  # The name of the log group to search.
1444
1537
  #
@@ -1519,16 +1612,22 @@ module Aws::CloudWatchLogs
1519
1612
  #
1520
1613
  # Only the fields requested in the query are returned, along with a
1521
1614
  # `@ptr` field which is the identifier for the log record. You can use
1522
- # the value of `@ptr` in a operation to get the full log record.
1615
+ # the value of `@ptr` in a [GetLogRecord][1] operation to get the full
1616
+ # log record.
1523
1617
  #
1524
1618
  # `GetQueryResults` does not start a query execution. To run a query,
1525
- # use .
1619
+ # use [StartQuery][2].
1526
1620
  #
1527
1621
  # If the value of the `Status` field in the output is `Running`, this
1528
1622
  # operation returns only partial results. If you see a value of
1529
1623
  # `Scheduled` or `Running` for the status, you can retry the operation
1530
1624
  # later to see the final results.
1531
1625
  #
1626
+ #
1627
+ #
1628
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html
1629
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html
1630
+ #
1532
1631
  # @option params [required, String] :query_id
1533
1632
  # The ID number of the query.
1534
1633
  #
@@ -1598,15 +1697,21 @@ module Aws::CloudWatchLogs
1598
1697
  #
1599
1698
  # A destination encapsulates a physical resource (such as an Amazon
1600
1699
  # Kinesis stream) and enables you to subscribe to a real-time stream of
1601
- # log events for a different account, ingested using PutLogEvents.
1700
+ # log events for a different account, ingested using [PutLogEvents][1].
1602
1701
  #
1603
1702
  # Through an access policy, a destination controls what is written to
1604
1703
  # it. By default, `PutDestination` does not set any access policy with
1605
1704
  # the destination, which means a cross-account user cannot call
1606
- # PutSubscriptionFilter against this destination. To enable this, the
1607
- # destination owner must call PutDestinationPolicy after
1705
+ # [PutSubscriptionFilter][2] against this destination. To enable this,
1706
+ # the destination owner must call [PutDestinationPolicy][3] after
1608
1707
  # `PutDestination`.
1609
1708
  #
1709
+ #
1710
+ #
1711
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
1712
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html
1713
+ # [3]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html
1714
+ #
1610
1715
  # @option params [required, String] :destination_name
1611
1716
  # A name for the destination.
1612
1717
  #
@@ -1735,9 +1840,13 @@ module Aws::CloudWatchLogs
1735
1840
  # The sequence token obtained from the response of the previous
1736
1841
  # `PutLogEvents` call. An upload in a newly created log stream does not
1737
1842
  # require a sequence token. You can also get the sequence token using
1738
- # DescribeLogStreams. If you call `PutLogEvents` twice within a narrow
1739
- # time period using the same value for `sequenceToken`, both calls may
1740
- # be successful, or one may be rejected.
1843
+ # [DescribeLogStreams][1]. If you call `PutLogEvents` twice within a
1844
+ # narrow time period using the same value for `sequenceToken`, both
1845
+ # calls may be successful, or one may be rejected.
1846
+ #
1847
+ #
1848
+ #
1849
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogStreams.html
1741
1850
  #
1742
1851
  # @return [Types::PutLogEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1743
1852
  #
@@ -1776,11 +1885,16 @@ module Aws::CloudWatchLogs
1776
1885
 
1777
1886
  # Creates or updates a metric filter and associates it with the
1778
1887
  # specified log group. Metric filters allow you to configure rules to
1779
- # extract metric data from log events ingested through PutLogEvents.
1888
+ # extract metric data from log events ingested through
1889
+ # [PutLogEvents][1].
1780
1890
  #
1781
1891
  # The maximum number of metric filters that can be associated with a log
1782
1892
  # group is 100.
1783
1893
  #
1894
+ #
1895
+ #
1896
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
1897
+ #
1784
1898
  # @option params [required, String] :log_group_name
1785
1899
  # The name of the log group.
1786
1900
  #
@@ -1821,6 +1935,40 @@ module Aws::CloudWatchLogs
1821
1935
  req.send_request(options)
1822
1936
  end
1823
1937
 
1938
+ # @option params [required, String] :name
1939
+ #
1940
+ # @option params [String] :query_definition_id
1941
+ #
1942
+ # @option params [Array<String>] :log_group_names
1943
+ #
1944
+ # @option params [required, String] :query_string
1945
+ #
1946
+ # @return [Types::PutQueryDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1947
+ #
1948
+ # * {Types::PutQueryDefinitionResponse#query_definition_id #query_definition_id} => String
1949
+ #
1950
+ # @example Request syntax with placeholder values
1951
+ #
1952
+ # resp = client.put_query_definition({
1953
+ # name: "QueryDefinitionName", # required
1954
+ # query_definition_id: "QueryId",
1955
+ # log_group_names: ["LogGroupName"],
1956
+ # query_string: "QueryDefinitionString", # required
1957
+ # })
1958
+ #
1959
+ # @example Response structure
1960
+ #
1961
+ # resp.query_definition_id #=> String
1962
+ #
1963
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinition AWS API Documentation
1964
+ #
1965
+ # @overload put_query_definition(params = {})
1966
+ # @param [Hash] params ({})
1967
+ def put_query_definition(params = {}, options = {})
1968
+ req = build_request(:put_query_definition, params)
1969
+ req.send_request(options)
1970
+ end
1971
+
1824
1972
  # Creates or updates a resource policy allowing other AWS services to
1825
1973
  # put log events to this account, such as Amazon Route 53. An account
1826
1974
  # can have up to 10 resource policies per region.
@@ -1901,9 +2049,9 @@ module Aws::CloudWatchLogs
1901
2049
 
1902
2050
  # Creates or updates a subscription filter and associates it with the
1903
2051
  # specified log group. Subscription filters allow you to subscribe to a
1904
- # real-time stream of log events ingested through PutLogEvents and have
1905
- # them delivered to a specific destination. Currently, the supported
1906
- # destinations are:
2052
+ # real-time stream of log events ingested through [PutLogEvents][1] and
2053
+ # have them delivered to a specific destination. Currently, the
2054
+ # supported destinations are:
1907
2055
  #
1908
2056
  # * An Amazon Kinesis stream belonging to the same account as the
1909
2057
  # subscription filter, for same-account delivery.
@@ -1922,6 +2070,10 @@ module Aws::CloudWatchLogs
1922
2070
  # name in `filterName`. Otherwise, the call fails because you cannot
1923
2071
  # associate a second filter with a log group.
1924
2072
  #
2073
+ #
2074
+ #
2075
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html
2076
+ #
1925
2077
  # @option params [required, String] :log_group_name
1926
2078
  # The name of the log group.
1927
2079
  #
@@ -1930,7 +2082,11 @@ module Aws::CloudWatchLogs
1930
2082
  # filter, you must specify the correct name in `filterName`. Otherwise,
1931
2083
  # the call fails because you cannot associate a second filter with a log
1932
2084
  # group. To find the name of the filter currently associated with a log
1933
- # group, use DescribeSubscriptionFilters.
2085
+ # group, use [DescribeSubscriptionFilters][1].
2086
+ #
2087
+ #
2088
+ #
2089
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeSubscriptionFilters.html
1934
2090
  #
1935
2091
  # @option params [required, String] :filter_pattern
1936
2092
  # A filter pattern for subscribing to a filtered stream of log events.
@@ -2096,15 +2252,17 @@ module Aws::CloudWatchLogs
2096
2252
 
2097
2253
  # Adds or updates the specified tags for the specified log group.
2098
2254
  #
2099
- # To list the tags for a log group, use ListTagsLogGroup. To remove
2100
- # tags, use UntagLogGroup.
2255
+ # To list the tags for a log group, use [ListTagsLogGroup][1]. To remove
2256
+ # tags, use [UntagLogGroup][2].
2101
2257
  #
2102
2258
  # For more information about tags, see [Tag Log Groups in Amazon
2103
- # CloudWatch Logs][1] in the *Amazon CloudWatch Logs User Guide*.
2259
+ # CloudWatch Logs][3] in the *Amazon CloudWatch Logs User Guide*.
2104
2260
  #
2105
2261
  #
2106
2262
  #
2107
- # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/log-group-tagging.html
2263
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html
2264
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html
2265
+ # [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging
2108
2266
  #
2109
2267
  # @option params [required, String] :log_group_name
2110
2268
  # The name of the log group.
@@ -2175,8 +2333,13 @@ module Aws::CloudWatchLogs
2175
2333
 
2176
2334
  # Removes the specified tags from the specified log group.
2177
2335
  #
2178
- # To list the tags for a log group, use ListTagsLogGroup. To add tags,
2179
- # use UntagLogGroup.
2336
+ # To list the tags for a log group, use [ListTagsLogGroup][1]. To add
2337
+ # tags, use [TagLogGroup][2].
2338
+ #
2339
+ #
2340
+ #
2341
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html
2342
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html
2180
2343
  #
2181
2344
  # @option params [required, String] :log_group_name
2182
2345
  # The name of the log group.
@@ -2215,7 +2378,7 @@ module Aws::CloudWatchLogs
2215
2378
  params: params,
2216
2379
  config: config)
2217
2380
  context[:gem_name] = 'aws-sdk-cloudwatchlogs'
2218
- context[:gem_version] = '1.29.0'
2381
+ context[:gem_version] = '1.30.0'
2219
2382
  Seahorse::Client::Request.new(handlers, context)
2220
2383
  end
2221
2384
 
@@ -26,6 +26,8 @@ module Aws::CloudWatchLogs
26
26
  DeleteLogGroupRequest = Shapes::StructureShape.new(name: 'DeleteLogGroupRequest')
27
27
  DeleteLogStreamRequest = Shapes::StructureShape.new(name: 'DeleteLogStreamRequest')
28
28
  DeleteMetricFilterRequest = Shapes::StructureShape.new(name: 'DeleteMetricFilterRequest')
29
+ DeleteQueryDefinitionRequest = Shapes::StructureShape.new(name: 'DeleteQueryDefinitionRequest')
30
+ DeleteQueryDefinitionResponse = Shapes::StructureShape.new(name: 'DeleteQueryDefinitionResponse')
29
31
  DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
30
32
  DeleteRetentionPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRetentionPolicyRequest')
31
33
  DeleteSubscriptionFilterRequest = Shapes::StructureShape.new(name: 'DeleteSubscriptionFilterRequest')
@@ -44,6 +46,8 @@ module Aws::CloudWatchLogs
44
46
  DescribeQueriesMaxResults = Shapes::IntegerShape.new(name: 'DescribeQueriesMaxResults')
45
47
  DescribeQueriesRequest = Shapes::StructureShape.new(name: 'DescribeQueriesRequest')
46
48
  DescribeQueriesResponse = Shapes::StructureShape.new(name: 'DescribeQueriesResponse')
49
+ DescribeQueryDefinitionsRequest = Shapes::StructureShape.new(name: 'DescribeQueryDefinitionsRequest')
50
+ DescribeQueryDefinitionsResponse = Shapes::StructureShape.new(name: 'DescribeQueryDefinitionsResponse')
47
51
  DescribeResourcePoliciesRequest = Shapes::StructureShape.new(name: 'DescribeResourcePoliciesRequest')
48
52
  DescribeResourcePoliciesResponse = Shapes::StructureShape.new(name: 'DescribeResourcePoliciesResponse')
49
53
  DescribeSubscriptionFiltersRequest = Shapes::StructureShape.new(name: 'DescribeSubscriptionFiltersRequest')
@@ -134,6 +138,8 @@ module Aws::CloudWatchLogs
134
138
  PutLogEventsRequest = Shapes::StructureShape.new(name: 'PutLogEventsRequest')
135
139
  PutLogEventsResponse = Shapes::StructureShape.new(name: 'PutLogEventsResponse')
136
140
  PutMetricFilterRequest = Shapes::StructureShape.new(name: 'PutMetricFilterRequest')
141
+ PutQueryDefinitionRequest = Shapes::StructureShape.new(name: 'PutQueryDefinitionRequest')
142
+ PutQueryDefinitionResponse = Shapes::StructureShape.new(name: 'PutQueryDefinitionResponse')
137
143
  PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
138
144
  PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
139
145
  PutRetentionPolicyRequest = Shapes::StructureShape.new(name: 'PutRetentionPolicyRequest')
@@ -141,9 +147,14 @@ module Aws::CloudWatchLogs
141
147
  QueryCharOffset = Shapes::IntegerShape.new(name: 'QueryCharOffset')
142
148
  QueryCompileError = Shapes::StructureShape.new(name: 'QueryCompileError')
143
149
  QueryCompileErrorLocation = Shapes::StructureShape.new(name: 'QueryCompileErrorLocation')
150
+ QueryDefinition = Shapes::StructureShape.new(name: 'QueryDefinition')
151
+ QueryDefinitionList = Shapes::ListShape.new(name: 'QueryDefinitionList')
152
+ QueryDefinitionName = Shapes::StringShape.new(name: 'QueryDefinitionName')
153
+ QueryDefinitionString = Shapes::StringShape.new(name: 'QueryDefinitionString')
144
154
  QueryId = Shapes::StringShape.new(name: 'QueryId')
145
155
  QueryInfo = Shapes::StructureShape.new(name: 'QueryInfo')
146
156
  QueryInfoList = Shapes::ListShape.new(name: 'QueryInfoList')
157
+ QueryListMaxResults = Shapes::IntegerShape.new(name: 'QueryListMaxResults')
147
158
  QueryResults = Shapes::ListShape.new(name: 'QueryResults')
148
159
  QueryStatistics = Shapes::StructureShape.new(name: 'QueryStatistics')
149
160
  QueryStatus = Shapes::StringShape.new(name: 'QueryStatus')
@@ -230,6 +241,12 @@ module Aws::CloudWatchLogs
230
241
  DeleteMetricFilterRequest.add_member(:filter_name, Shapes::ShapeRef.new(shape: FilterName, required: true, location_name: "filterName"))
231
242
  DeleteMetricFilterRequest.struct_class = Types::DeleteMetricFilterRequest
232
243
 
244
+ DeleteQueryDefinitionRequest.add_member(:query_definition_id, Shapes::ShapeRef.new(shape: QueryId, required: true, location_name: "queryDefinitionId"))
245
+ DeleteQueryDefinitionRequest.struct_class = Types::DeleteQueryDefinitionRequest
246
+
247
+ DeleteQueryDefinitionResponse.add_member(:success, Shapes::ShapeRef.new(shape: Success, location_name: "success"))
248
+ DeleteQueryDefinitionResponse.struct_class = Types::DeleteQueryDefinitionResponse
249
+
233
250
  DeleteResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
234
251
  DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
235
252
 
@@ -302,6 +319,15 @@ module Aws::CloudWatchLogs
302
319
  DescribeQueriesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
303
320
  DescribeQueriesResponse.struct_class = Types::DescribeQueriesResponse
304
321
 
322
+ DescribeQueryDefinitionsRequest.add_member(:query_definition_name_prefix, Shapes::ShapeRef.new(shape: QueryDefinitionName, location_name: "queryDefinitionNamePrefix"))
323
+ DescribeQueryDefinitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: QueryListMaxResults, location_name: "maxResults"))
324
+ DescribeQueryDefinitionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
325
+ DescribeQueryDefinitionsRequest.struct_class = Types::DescribeQueryDefinitionsRequest
326
+
327
+ DescribeQueryDefinitionsResponse.add_member(:query_definitions, Shapes::ShapeRef.new(shape: QueryDefinitionList, location_name: "queryDefinitions"))
328
+ DescribeQueryDefinitionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
329
+ DescribeQueryDefinitionsResponse.struct_class = Types::DescribeQueryDefinitionsResponse
330
+
305
331
  DescribeResourcePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
306
332
  DescribeResourcePoliciesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
307
333
  DescribeResourcePoliciesRequest.struct_class = Types::DescribeResourcePoliciesRequest
@@ -538,6 +564,15 @@ module Aws::CloudWatchLogs
538
564
  PutMetricFilterRequest.add_member(:metric_transformations, Shapes::ShapeRef.new(shape: MetricTransformations, required: true, location_name: "metricTransformations"))
539
565
  PutMetricFilterRequest.struct_class = Types::PutMetricFilterRequest
540
566
 
567
+ PutQueryDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: QueryDefinitionName, required: true, location_name: "name"))
568
+ PutQueryDefinitionRequest.add_member(:query_definition_id, Shapes::ShapeRef.new(shape: QueryId, location_name: "queryDefinitionId"))
569
+ PutQueryDefinitionRequest.add_member(:log_group_names, Shapes::ShapeRef.new(shape: LogGroupNames, location_name: "logGroupNames"))
570
+ PutQueryDefinitionRequest.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryDefinitionString, required: true, location_name: "queryString"))
571
+ PutQueryDefinitionRequest.struct_class = Types::PutQueryDefinitionRequest
572
+
573
+ PutQueryDefinitionResponse.add_member(:query_definition_id, Shapes::ShapeRef.new(shape: QueryId, location_name: "queryDefinitionId"))
574
+ PutQueryDefinitionResponse.struct_class = Types::PutQueryDefinitionResponse
575
+
541
576
  PutResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
542
577
  PutResourcePolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policyDocument"))
543
578
  PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
@@ -565,6 +600,15 @@ module Aws::CloudWatchLogs
565
600
  QueryCompileErrorLocation.add_member(:end_char_offset, Shapes::ShapeRef.new(shape: QueryCharOffset, location_name: "endCharOffset"))
566
601
  QueryCompileErrorLocation.struct_class = Types::QueryCompileErrorLocation
567
602
 
603
+ QueryDefinition.add_member(:query_definition_id, Shapes::ShapeRef.new(shape: QueryId, location_name: "queryDefinitionId"))
604
+ QueryDefinition.add_member(:name, Shapes::ShapeRef.new(shape: QueryDefinitionName, location_name: "name"))
605
+ QueryDefinition.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryDefinitionString, location_name: "queryString"))
606
+ QueryDefinition.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModified"))
607
+ QueryDefinition.add_member(:log_group_names, Shapes::ShapeRef.new(shape: LogGroupNames, location_name: "logGroupNames"))
608
+ QueryDefinition.struct_class = Types::QueryDefinition
609
+
610
+ QueryDefinitionList.member = Shapes::ShapeRef.new(shape: QueryDefinition)
611
+
568
612
  QueryInfo.add_member(:query_id, Shapes::ShapeRef.new(shape: QueryId, location_name: "queryId"))
569
613
  QueryInfo.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, location_name: "queryString"))
570
614
  QueryInfo.add_member(:status, Shapes::ShapeRef.new(shape: QueryStatus, location_name: "status"))
@@ -792,6 +836,17 @@ module Aws::CloudWatchLogs
792
836
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
793
837
  end)
794
838
 
839
+ api.add_operation(:delete_query_definition, Seahorse::Model::Operation.new.tap do |o|
840
+ o.name = "DeleteQueryDefinition"
841
+ o.http_method = "POST"
842
+ o.http_request_uri = "/"
843
+ o.input = Shapes::ShapeRef.new(shape: DeleteQueryDefinitionRequest)
844
+ o.output = Shapes::ShapeRef.new(shape: DeleteQueryDefinitionResponse)
845
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
846
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
847
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
848
+ end)
849
+
795
850
  api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
796
851
  o.name = "DeleteResourcePolicy"
797
852
  o.http_method = "POST"
@@ -914,6 +969,16 @@ module Aws::CloudWatchLogs
914
969
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
915
970
  end)
916
971
 
972
+ api.add_operation(:describe_query_definitions, Seahorse::Model::Operation.new.tap do |o|
973
+ o.name = "DescribeQueryDefinitions"
974
+ o.http_method = "POST"
975
+ o.http_request_uri = "/"
976
+ o.input = Shapes::ShapeRef.new(shape: DescribeQueryDefinitionsRequest)
977
+ o.output = Shapes::ShapeRef.new(shape: DescribeQueryDefinitionsResponse)
978
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
979
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
980
+ end)
981
+
917
982
  api.add_operation(:describe_resource_policies, Seahorse::Model::Operation.new.tap do |o|
918
983
  o.name = "DescribeResourcePolicies"
919
984
  o.http_method = "POST"
@@ -1081,6 +1146,17 @@ module Aws::CloudWatchLogs
1081
1146
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1082
1147
  end)
1083
1148
 
1149
+ api.add_operation(:put_query_definition, Seahorse::Model::Operation.new.tap do |o|
1150
+ o.name = "PutQueryDefinition"
1151
+ o.http_method = "POST"
1152
+ o.http_request_uri = "/"
1153
+ o.input = Shapes::ShapeRef.new(shape: PutQueryDefinitionRequest)
1154
+ o.output = Shapes::ShapeRef.new(shape: PutQueryDefinitionResponse)
1155
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1156
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1157
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1158
+ end)
1159
+
1084
1160
  api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
1085
1161
  o.name = "PutResourcePolicy"
1086
1162
  o.http_method = "POST"
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CloudWatchLogs
9
- # This class provides a resource oriented interface for CloudWatchLogs.
10
- # To create a resource object:
11
- # resource = Aws::CloudWatchLogs::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::CloudWatchLogs::Client.new(region: 'us-west-2')
15
- # resource = Aws::CloudWatchLogs::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -288,6 +288,33 @@ module Aws::CloudWatchLogs
288
288
  include Aws::Structure
289
289
  end
290
290
 
291
+ # @note When making an API call, you may pass DeleteQueryDefinitionRequest
292
+ # data as a hash:
293
+ #
294
+ # {
295
+ # query_definition_id: "QueryId", # required
296
+ # }
297
+ #
298
+ # @!attribute [rw] query_definition_id
299
+ # @return [String]
300
+ #
301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinitionRequest AWS API Documentation
302
+ #
303
+ class DeleteQueryDefinitionRequest < Struct.new(
304
+ :query_definition_id)
305
+ include Aws::Structure
306
+ end
307
+
308
+ # @!attribute [rw] success
309
+ # @return [Boolean]
310
+ #
311
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinitionResponse AWS API Documentation
312
+ #
313
+ class DeleteQueryDefinitionResponse < Struct.new(
314
+ :success)
315
+ include Aws::Structure
316
+ end
317
+
291
318
  # @note When making an API call, you may pass DeleteResourcePolicyRequest
292
319
  # data as a hash:
293
320
  #
@@ -715,6 +742,51 @@ module Aws::CloudWatchLogs
715
742
  include Aws::Structure
716
743
  end
717
744
 
745
+ # @note When making an API call, you may pass DescribeQueryDefinitionsRequest
746
+ # data as a hash:
747
+ #
748
+ # {
749
+ # query_definition_name_prefix: "QueryDefinitionName",
750
+ # max_results: 1,
751
+ # next_token: "NextToken",
752
+ # }
753
+ #
754
+ # @!attribute [rw] query_definition_name_prefix
755
+ # @return [String]
756
+ #
757
+ # @!attribute [rw] max_results
758
+ # @return [Integer]
759
+ #
760
+ # @!attribute [rw] next_token
761
+ # The token for the next set of items to return. The token expires
762
+ # after 24 hours.
763
+ # @return [String]
764
+ #
765
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitionsRequest AWS API Documentation
766
+ #
767
+ class DescribeQueryDefinitionsRequest < Struct.new(
768
+ :query_definition_name_prefix,
769
+ :max_results,
770
+ :next_token)
771
+ include Aws::Structure
772
+ end
773
+
774
+ # @!attribute [rw] query_definitions
775
+ # @return [Array<Types::QueryDefinition>]
776
+ #
777
+ # @!attribute [rw] next_token
778
+ # The token for the next set of items to return. The token expires
779
+ # after 24 hours.
780
+ # @return [String]
781
+ #
782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitionsResponse AWS API Documentation
783
+ #
784
+ class DescribeQueryDefinitionsResponse < Struct.new(
785
+ :query_definitions,
786
+ :next_token)
787
+ include Aws::Structure
788
+ end
789
+
718
790
  # @note When making an API call, you may pass DescribeResourcePoliciesRequest
719
791
  # data as a hash:
720
792
  #
@@ -1570,14 +1642,16 @@ module Aws::CloudWatchLogs
1570
1642
  end
1571
1643
 
1572
1644
  # The query string is not valid. Details about this error are displayed
1573
- # in a `QueryCompileError` object. For more information, see .
1645
+ # in a `QueryCompileError` object. For more information, see
1646
+ # [QueryCompileError][1]"/&gt;.
1574
1647
  #
1575
1648
  # For more information about valid query syntax, see [CloudWatch Logs
1576
- # Insights Query Syntax][1].
1649
+ # Insights Query Syntax][2].
1577
1650
  #
1578
1651
  #
1579
1652
  #
1580
- # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html
1653
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html
1654
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html
1581
1655
  #
1582
1656
  # @!attribute [rw] query_compile_error
1583
1657
  # Reserved.
@@ -1670,7 +1744,13 @@ module Aws::CloudWatchLogs
1670
1744
  # @return [String]
1671
1745
  #
1672
1746
  # @!attribute [rw] metric_namespace
1673
- # The namespace of the CloudWatch metric.
1747
+ # A custom namespace to contain your metric in CloudWatch. Use
1748
+ # namespaces to group together metrics that are similar. For more
1749
+ # information, see [Namespaces][1].
1750
+ #
1751
+ #
1752
+ #
1753
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace
1674
1754
  # @return [String]
1675
1755
  #
1676
1756
  # @!attribute [rw] metric_value
@@ -1824,9 +1904,14 @@ module Aws::CloudWatchLogs
1824
1904
  # The sequence token obtained from the response of the previous
1825
1905
  # `PutLogEvents` call. An upload in a newly created log stream does
1826
1906
  # not require a sequence token. You can also get the sequence token
1827
- # using DescribeLogStreams. If you call `PutLogEvents` twice within a
1828
- # narrow time period using the same value for `sequenceToken`, both
1829
- # calls may be successful, or one may be rejected.
1907
+ # using [DescribeLogStreams][1]. If you call `PutLogEvents` twice
1908
+ # within a narrow time period using the same value for
1909
+ # `sequenceToken`, both calls may be successful, or one may be
1910
+ # rejected.
1911
+ #
1912
+ #
1913
+ #
1914
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogStreams.html
1830
1915
  # @return [String]
1831
1916
  #
1832
1917
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsRequest AWS API Documentation
@@ -1900,6 +1985,48 @@ module Aws::CloudWatchLogs
1900
1985
  include Aws::Structure
1901
1986
  end
1902
1987
 
1988
+ # @note When making an API call, you may pass PutQueryDefinitionRequest
1989
+ # data as a hash:
1990
+ #
1991
+ # {
1992
+ # name: "QueryDefinitionName", # required
1993
+ # query_definition_id: "QueryId",
1994
+ # log_group_names: ["LogGroupName"],
1995
+ # query_string: "QueryDefinitionString", # required
1996
+ # }
1997
+ #
1998
+ # @!attribute [rw] name
1999
+ # @return [String]
2000
+ #
2001
+ # @!attribute [rw] query_definition_id
2002
+ # @return [String]
2003
+ #
2004
+ # @!attribute [rw] log_group_names
2005
+ # @return [Array<String>]
2006
+ #
2007
+ # @!attribute [rw] query_string
2008
+ # @return [String]
2009
+ #
2010
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinitionRequest AWS API Documentation
2011
+ #
2012
+ class PutQueryDefinitionRequest < Struct.new(
2013
+ :name,
2014
+ :query_definition_id,
2015
+ :log_group_names,
2016
+ :query_string)
2017
+ include Aws::Structure
2018
+ end
2019
+
2020
+ # @!attribute [rw] query_definition_id
2021
+ # @return [String]
2022
+ #
2023
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinitionResponse AWS API Documentation
2024
+ #
2025
+ class PutQueryDefinitionResponse < Struct.new(
2026
+ :query_definition_id)
2027
+ include Aws::Structure
2028
+ end
2029
+
1903
2030
  # @note When making an API call, you may pass PutResourcePolicyRequest
1904
2031
  # data as a hash:
1905
2032
  #
@@ -1994,7 +2121,11 @@ module Aws::CloudWatchLogs
1994
2121
  # filter, you must specify the correct name in `filterName`.
1995
2122
  # Otherwise, the call fails because you cannot associate a second
1996
2123
  # filter with a log group. To find the name of the filter currently
1997
- # associated with a log group, use DescribeSubscriptionFilters.
2124
+ # associated with a log group, use [DescribeSubscriptionFilters][1].
2125
+ #
2126
+ #
2127
+ #
2128
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeSubscriptionFilters.html
1998
2129
  # @return [String]
1999
2130
  #
2000
2131
  # @!attribute [rw] filter_pattern
@@ -2080,6 +2211,32 @@ module Aws::CloudWatchLogs
2080
2211
  include Aws::Structure
2081
2212
  end
2082
2213
 
2214
+ # @!attribute [rw] query_definition_id
2215
+ # @return [String]
2216
+ #
2217
+ # @!attribute [rw] name
2218
+ # @return [String]
2219
+ #
2220
+ # @!attribute [rw] query_string
2221
+ # @return [String]
2222
+ #
2223
+ # @!attribute [rw] last_modified
2224
+ # @return [Integer]
2225
+ #
2226
+ # @!attribute [rw] log_group_names
2227
+ # @return [Array<String>]
2228
+ #
2229
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/QueryDefinition AWS API Documentation
2230
+ #
2231
+ class QueryDefinition < Struct.new(
2232
+ :query_definition_id,
2233
+ :name,
2234
+ :query_string,
2235
+ :last_modified,
2236
+ :log_group_names)
2237
+ include Aws::Structure
2238
+ end
2239
+
2083
2240
  # Information about one CloudWatch Logs Insights query that matches the
2084
2241
  # request in a `DescribeQueries` operation.
2085
2242
  #
@@ -2204,6 +2361,13 @@ module Aws::CloudWatchLogs
2204
2361
  # Contains one field from one log event returned by a CloudWatch Logs
2205
2362
  # Insights query, along with the value of that field.
2206
2363
  #
2364
+ # For more information about the fields that are generated by CloudWatch
2365
+ # logs, see [Supported Logs and Discovered Fields][1].
2366
+ #
2367
+ #
2368
+ #
2369
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html
2370
+ #
2207
2371
  # @!attribute [rw] field
2208
2372
  # The log event field.
2209
2373
  # @return [String]
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.29.0
4
+ version: 1.30.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: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Amazon CloudWatch Logs