aws-sdk-cloudwatchlogs 1.103.0 → 1.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +280 -4
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +200 -0
- data/lib/aws-sdk-cloudwatchlogs/types.rb +790 -4
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- data/sig/client.rbs +62 -1
- data/sig/types.rbs +161 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78803969fbcbbf62cb4e27364b0d9ece63972404c05ad41244c14e402d3372bb
|
4
|
+
data.tar.gz: a620429cfdf0923f694e964d06333e005259643785162c34cbd34241f13a8ca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fed539d90e20b88fec22e36927150fb22a3a22e7bbf9f59dc5f8f59d5bf387914c4ff8fd71fab29fc555e9941cf2d8ed9fa2c06b586bd681d90462dd3e0e312a
|
7
|
+
data.tar.gz: dead0efaefb1041dbff9ed357dfabbb36b385bc77463a635d3f0a231a575e762a69db8f8b51d85a935157610a8fcc6299b4999c4f51b46183cf58c05b4a9b946
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.104.0 (2024-12-02)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds PutIntegration, GetIntegration, ListIntegrations and DeleteIntegration APIs. Adds QueryLanguage support to StartQuery, GetQueryResults, DescribeQueries, DescribeQueryDefinitions, and PutQueryDefinition APIs.
|
8
|
+
|
4
9
|
1.103.0 (2024-11-21)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.104.0
|
@@ -1380,6 +1380,45 @@ module Aws::CloudWatchLogs
|
|
1380
1380
|
req.send_request(options)
|
1381
1381
|
end
|
1382
1382
|
|
1383
|
+
# Deletes the integration between CloudWatch Logs and OpenSearch
|
1384
|
+
# Service. If your integration has active vended logs dashboards, you
|
1385
|
+
# must specify `true` for the `force` parameter, otherwise the operation
|
1386
|
+
# will fail. If you delete the integration by setting `force` to `true`,
|
1387
|
+
# all your vended logs dashboards powered by OpenSearch Service will be
|
1388
|
+
# deleted and the data that was on them will no longer be accessible.
|
1389
|
+
#
|
1390
|
+
# @option params [required, String] :integration_name
|
1391
|
+
# The name of the integration to delete. To find the name of your
|
1392
|
+
# integration, use [ListIntegrations][1].
|
1393
|
+
#
|
1394
|
+
#
|
1395
|
+
#
|
1396
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html
|
1397
|
+
#
|
1398
|
+
# @option params [Boolean] :force
|
1399
|
+
# Specify `true` to force the deletion of the integration even if vended
|
1400
|
+
# logs dashboards currently exist.
|
1401
|
+
#
|
1402
|
+
# The default is `false`.
|
1403
|
+
#
|
1404
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1405
|
+
#
|
1406
|
+
# @example Request syntax with placeholder values
|
1407
|
+
#
|
1408
|
+
# resp = client.delete_integration({
|
1409
|
+
# integration_name: "IntegrationName", # required
|
1410
|
+
# force: false,
|
1411
|
+
# })
|
1412
|
+
#
|
1413
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteIntegration AWS API Documentation
|
1414
|
+
#
|
1415
|
+
# @overload delete_integration(params = {})
|
1416
|
+
# @param [Hash] params ({})
|
1417
|
+
def delete_integration(params = {}, options = {})
|
1418
|
+
req = build_request(:delete_integration, params)
|
1419
|
+
req.send_request(options)
|
1420
|
+
end
|
1421
|
+
|
1383
1422
|
# Deletes the specified CloudWatch Logs anomaly detector.
|
1384
1423
|
#
|
1385
1424
|
# @option params [required, String] :anomaly_detector_arn
|
@@ -2485,6 +2524,10 @@ module Aws::CloudWatchLogs
|
|
2485
2524
|
# The token for the next set of items to return. The token expires after
|
2486
2525
|
# 24 hours.
|
2487
2526
|
#
|
2527
|
+
# @option params [String] :query_language
|
2528
|
+
# Limits the returned queries to only the queries that use the specified
|
2529
|
+
# query language.
|
2530
|
+
#
|
2488
2531
|
# @return [Types::DescribeQueriesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2489
2532
|
#
|
2490
2533
|
# * {Types::DescribeQueriesResponse#queries #queries} => Array<Types::QueryInfo>
|
@@ -2497,11 +2540,13 @@ module Aws::CloudWatchLogs
|
|
2497
2540
|
# status: "Scheduled", # accepts Scheduled, Running, Complete, Failed, Cancelled, Timeout, Unknown
|
2498
2541
|
# max_results: 1,
|
2499
2542
|
# next_token: "NextToken",
|
2543
|
+
# query_language: "CWLI", # accepts CWLI, SQL, PPL
|
2500
2544
|
# })
|
2501
2545
|
#
|
2502
2546
|
# @example Response structure
|
2503
2547
|
#
|
2504
2548
|
# resp.queries #=> Array
|
2549
|
+
# resp.queries[0].query_language #=> String, one of "CWLI", "SQL", "PPL"
|
2505
2550
|
# resp.queries[0].query_id #=> String
|
2506
2551
|
# resp.queries[0].query_string #=> String
|
2507
2552
|
# resp.queries[0].status #=> String, one of "Scheduled", "Running", "Complete", "Failed", "Cancelled", "Timeout", "Unknown"
|
@@ -2527,6 +2572,15 @@ module Aws::CloudWatchLogs
|
|
2527
2572
|
# results to only the query definitions that have names that start with
|
2528
2573
|
# a certain string.
|
2529
2574
|
#
|
2575
|
+
# @option params [String] :query_language
|
2576
|
+
# The query language used for this query. For more information about the
|
2577
|
+
# query languages that CloudWatch Logs supports, see [Supported query
|
2578
|
+
# languages][1].
|
2579
|
+
#
|
2580
|
+
#
|
2581
|
+
#
|
2582
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html
|
2583
|
+
#
|
2530
2584
|
# @option params [String] :query_definition_name_prefix
|
2531
2585
|
# Use this parameter to filter your results to only the query
|
2532
2586
|
# definitions that have names that start with the prefix you specify.
|
@@ -2547,6 +2601,7 @@ module Aws::CloudWatchLogs
|
|
2547
2601
|
# @example Request syntax with placeholder values
|
2548
2602
|
#
|
2549
2603
|
# resp = client.describe_query_definitions({
|
2604
|
+
# query_language: "CWLI", # accepts CWLI, SQL, PPL
|
2550
2605
|
# query_definition_name_prefix: "QueryDefinitionName",
|
2551
2606
|
# max_results: 1,
|
2552
2607
|
# next_token: "NextToken",
|
@@ -2555,6 +2610,7 @@ module Aws::CloudWatchLogs
|
|
2555
2610
|
# @example Response structure
|
2556
2611
|
#
|
2557
2612
|
# resp.query_definitions #=> Array
|
2613
|
+
# resp.query_definitions[0].query_language #=> String, one of "CWLI", "SQL", "PPL"
|
2558
2614
|
# resp.query_definitions[0].query_definition_id #=> String
|
2559
2615
|
# resp.query_definitions[0].name #=> String
|
2560
2616
|
# resp.query_definitions[0].query_string #=> String
|
@@ -3101,6 +3157,72 @@ module Aws::CloudWatchLogs
|
|
3101
3157
|
req.send_request(options)
|
3102
3158
|
end
|
3103
3159
|
|
3160
|
+
# Returns information about one integration between CloudWatch Logs and
|
3161
|
+
# OpenSearch Service.
|
3162
|
+
#
|
3163
|
+
# @option params [required, String] :integration_name
|
3164
|
+
# The name of the integration that you want to find information about.
|
3165
|
+
# To find the name of your integration, use [ListIntegrations][1]
|
3166
|
+
#
|
3167
|
+
#
|
3168
|
+
#
|
3169
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html
|
3170
|
+
#
|
3171
|
+
# @return [Types::GetIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3172
|
+
#
|
3173
|
+
# * {Types::GetIntegrationResponse#integration_name #integration_name} => String
|
3174
|
+
# * {Types::GetIntegrationResponse#integration_type #integration_type} => String
|
3175
|
+
# * {Types::GetIntegrationResponse#integration_status #integration_status} => String
|
3176
|
+
# * {Types::GetIntegrationResponse#integration_details #integration_details} => Types::IntegrationDetails
|
3177
|
+
#
|
3178
|
+
# @example Request syntax with placeholder values
|
3179
|
+
#
|
3180
|
+
# resp = client.get_integration({
|
3181
|
+
# integration_name: "IntegrationName", # required
|
3182
|
+
# })
|
3183
|
+
#
|
3184
|
+
# @example Response structure
|
3185
|
+
#
|
3186
|
+
# resp.integration_name #=> String
|
3187
|
+
# resp.integration_type #=> String, one of "OPENSEARCH"
|
3188
|
+
# resp.integration_status #=> String, one of "PROVISIONING", "ACTIVE", "FAILED"
|
3189
|
+
# resp.integration_details.open_search_integration_details.data_source.data_source_name #=> String
|
3190
|
+
# resp.integration_details.open_search_integration_details.data_source.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3191
|
+
# resp.integration_details.open_search_integration_details.data_source.status.status_message #=> String
|
3192
|
+
# resp.integration_details.open_search_integration_details.application.application_endpoint #=> String
|
3193
|
+
# resp.integration_details.open_search_integration_details.application.application_arn #=> String
|
3194
|
+
# resp.integration_details.open_search_integration_details.application.application_id #=> String
|
3195
|
+
# resp.integration_details.open_search_integration_details.application.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3196
|
+
# resp.integration_details.open_search_integration_details.application.status.status_message #=> String
|
3197
|
+
# resp.integration_details.open_search_integration_details.collection.collection_endpoint #=> String
|
3198
|
+
# resp.integration_details.open_search_integration_details.collection.collection_arn #=> String
|
3199
|
+
# resp.integration_details.open_search_integration_details.collection.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3200
|
+
# resp.integration_details.open_search_integration_details.collection.status.status_message #=> String
|
3201
|
+
# resp.integration_details.open_search_integration_details.workspace.workspace_id #=> String
|
3202
|
+
# resp.integration_details.open_search_integration_details.workspace.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3203
|
+
# resp.integration_details.open_search_integration_details.workspace.status.status_message #=> String
|
3204
|
+
# resp.integration_details.open_search_integration_details.encryption_policy.policy_name #=> String
|
3205
|
+
# resp.integration_details.open_search_integration_details.encryption_policy.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3206
|
+
# resp.integration_details.open_search_integration_details.encryption_policy.status.status_message #=> String
|
3207
|
+
# resp.integration_details.open_search_integration_details.network_policy.policy_name #=> String
|
3208
|
+
# resp.integration_details.open_search_integration_details.network_policy.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3209
|
+
# resp.integration_details.open_search_integration_details.network_policy.status.status_message #=> String
|
3210
|
+
# resp.integration_details.open_search_integration_details.access_policy.policy_name #=> String
|
3211
|
+
# resp.integration_details.open_search_integration_details.access_policy.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3212
|
+
# resp.integration_details.open_search_integration_details.access_policy.status.status_message #=> String
|
3213
|
+
# resp.integration_details.open_search_integration_details.lifecycle_policy.policy_name #=> String
|
3214
|
+
# resp.integration_details.open_search_integration_details.lifecycle_policy.status.status #=> String, one of "ACTIVE", "NOT_FOUND", "ERROR"
|
3215
|
+
# resp.integration_details.open_search_integration_details.lifecycle_policy.status.status_message #=> String
|
3216
|
+
#
|
3217
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetIntegration AWS API Documentation
|
3218
|
+
#
|
3219
|
+
# @overload get_integration(params = {})
|
3220
|
+
# @param [Hash] params ({})
|
3221
|
+
def get_integration(params = {}, options = {})
|
3222
|
+
req = build_request(:get_integration, params)
|
3223
|
+
req.send_request(options)
|
3224
|
+
end
|
3225
|
+
|
3104
3226
|
# Retrieves information about the log anomaly detector that you specify.
|
3105
3227
|
#
|
3106
3228
|
# @option params [required, String] :anomaly_detector_arn
|
@@ -3431,6 +3553,7 @@ module Aws::CloudWatchLogs
|
|
3431
3553
|
#
|
3432
3554
|
# @return [Types::GetQueryResultsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3433
3555
|
#
|
3556
|
+
# * {Types::GetQueryResultsResponse#query_language #query_language} => String
|
3434
3557
|
# * {Types::GetQueryResultsResponse#results #results} => Array<Array<Types::ResultField>>
|
3435
3558
|
# * {Types::GetQueryResultsResponse#statistics #statistics} => Types::QueryStatistics
|
3436
3559
|
# * {Types::GetQueryResultsResponse#status #status} => String
|
@@ -3444,6 +3567,7 @@ module Aws::CloudWatchLogs
|
|
3444
3567
|
#
|
3445
3568
|
# @example Response structure
|
3446
3569
|
#
|
3570
|
+
# resp.query_language #=> String, one of "CWLI", "SQL", "PPL"
|
3447
3571
|
# resp.results #=> Array
|
3448
3572
|
# resp.results[0] #=> Array
|
3449
3573
|
# resp.results[0][0].field #=> String
|
@@ -3659,6 +3783,51 @@ module Aws::CloudWatchLogs
|
|
3659
3783
|
req.send_request(options)
|
3660
3784
|
end
|
3661
3785
|
|
3786
|
+
# Returns a list of integrations between CloudWatch Logs and other
|
3787
|
+
# services in this account. Currently, only one integration can be
|
3788
|
+
# created in an account, and this integration must be with OpenSearch
|
3789
|
+
# Service.
|
3790
|
+
#
|
3791
|
+
# @option params [String] :integration_name_prefix
|
3792
|
+
# To limit the results to integrations that start with a certain name
|
3793
|
+
# prefix, specify that name prefix here.
|
3794
|
+
#
|
3795
|
+
# @option params [String] :integration_type
|
3796
|
+
# To limit the results to integrations of a certain type, specify that
|
3797
|
+
# type here.
|
3798
|
+
#
|
3799
|
+
# @option params [String] :integration_status
|
3800
|
+
# To limit the results to integrations with a certain status, specify
|
3801
|
+
# that status here.
|
3802
|
+
#
|
3803
|
+
# @return [Types::ListIntegrationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3804
|
+
#
|
3805
|
+
# * {Types::ListIntegrationsResponse#integration_summaries #integration_summaries} => Array<Types::IntegrationSummary>
|
3806
|
+
#
|
3807
|
+
# @example Request syntax with placeholder values
|
3808
|
+
#
|
3809
|
+
# resp = client.list_integrations({
|
3810
|
+
# integration_name_prefix: "IntegrationNamePrefix",
|
3811
|
+
# integration_type: "OPENSEARCH", # accepts OPENSEARCH
|
3812
|
+
# integration_status: "PROVISIONING", # accepts PROVISIONING, ACTIVE, FAILED
|
3813
|
+
# })
|
3814
|
+
#
|
3815
|
+
# @example Response structure
|
3816
|
+
#
|
3817
|
+
# resp.integration_summaries #=> Array
|
3818
|
+
# resp.integration_summaries[0].integration_name #=> String
|
3819
|
+
# resp.integration_summaries[0].integration_type #=> String, one of "OPENSEARCH"
|
3820
|
+
# resp.integration_summaries[0].integration_status #=> String, one of "PROVISIONING", "ACTIVE", "FAILED"
|
3821
|
+
#
|
3822
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListIntegrations AWS API Documentation
|
3823
|
+
#
|
3824
|
+
# @overload list_integrations(params = {})
|
3825
|
+
# @param [Hash] params ({})
|
3826
|
+
def list_integrations(params = {}, options = {})
|
3827
|
+
req = build_request(:list_integrations, params)
|
3828
|
+
req.send_request(options)
|
3829
|
+
end
|
3830
|
+
|
3662
3831
|
# Retrieves a list of the log anomaly detectors in the account.
|
3663
3832
|
#
|
3664
3833
|
# @option params [String] :filter_log_group_arn
|
@@ -4831,6 +5000,69 @@ module Aws::CloudWatchLogs
|
|
4831
5000
|
req.send_request(options)
|
4832
5001
|
end
|
4833
5002
|
|
5003
|
+
# Creates an integration between CloudWatch Logs and another service in
|
5004
|
+
# this account. Currently, only integrations with OpenSearch Service are
|
5005
|
+
# supported, and currently you can have only one integration in your
|
5006
|
+
# account.
|
5007
|
+
#
|
5008
|
+
# Integrating with OpenSearch Service makes it possible for you to
|
5009
|
+
# create curated vended logs dashboards, powered by OpenSearch Service
|
5010
|
+
# analytics. For more information, see [Vended log dashboards powered by
|
5011
|
+
# Amazon OpenSearch Service][1].
|
5012
|
+
#
|
5013
|
+
# You can use this operation only to create a new integration. You
|
5014
|
+
# can't modify an existing integration.
|
5015
|
+
#
|
5016
|
+
#
|
5017
|
+
#
|
5018
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-OpenSearch-Dashboards.html
|
5019
|
+
#
|
5020
|
+
# @option params [required, String] :integration_name
|
5021
|
+
# A name for the integration.
|
5022
|
+
#
|
5023
|
+
# @option params [required, Types::ResourceConfig] :resource_config
|
5024
|
+
# A structure that contains configuration information for the
|
5025
|
+
# integration that you are creating.
|
5026
|
+
#
|
5027
|
+
# @option params [required, String] :integration_type
|
5028
|
+
# The type of integration. Currently, the only supported type is
|
5029
|
+
# `OPENSEARCH`.
|
5030
|
+
#
|
5031
|
+
# @return [Types::PutIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5032
|
+
#
|
5033
|
+
# * {Types::PutIntegrationResponse#integration_name #integration_name} => String
|
5034
|
+
# * {Types::PutIntegrationResponse#integration_status #integration_status} => String
|
5035
|
+
#
|
5036
|
+
# @example Request syntax with placeholder values
|
5037
|
+
#
|
5038
|
+
# resp = client.put_integration({
|
5039
|
+
# integration_name: "IntegrationName", # required
|
5040
|
+
# resource_config: { # required
|
5041
|
+
# open_search_resource_config: {
|
5042
|
+
# kms_key_arn: "Arn",
|
5043
|
+
# data_source_role_arn: "Arn", # required
|
5044
|
+
# dashboard_viewer_principals: ["Arn"], # required
|
5045
|
+
# application_arn: "Arn",
|
5046
|
+
# retention_days: 1, # required
|
5047
|
+
# },
|
5048
|
+
# },
|
5049
|
+
# integration_type: "OPENSEARCH", # required, accepts OPENSEARCH
|
5050
|
+
# })
|
5051
|
+
#
|
5052
|
+
# @example Response structure
|
5053
|
+
#
|
5054
|
+
# resp.integration_name #=> String
|
5055
|
+
# resp.integration_status #=> String, one of "PROVISIONING", "ACTIVE", "FAILED"
|
5056
|
+
#
|
5057
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutIntegration AWS API Documentation
|
5058
|
+
#
|
5059
|
+
# @overload put_integration(params = {})
|
5060
|
+
# @param [Hash] params ({})
|
5061
|
+
def put_integration(params = {}, options = {})
|
5062
|
+
req = build_request(:put_integration, params)
|
5063
|
+
req.send_request(options)
|
5064
|
+
end
|
5065
|
+
|
4834
5066
|
# Uploads a batch of log events to the specified log stream.
|
4835
5067
|
#
|
4836
5068
|
# The sequence token is now ignored in `PutLogEvents` actions.
|
@@ -5059,6 +5291,16 @@ module Aws::CloudWatchLogs
|
|
5059
5291
|
#
|
5060
5292
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
|
5061
5293
|
#
|
5294
|
+
# @option params [String] :query_language
|
5295
|
+
# Specify the query language to use for this query. The options are Logs
|
5296
|
+
# Insights QL, OpenSearch PPL, and OpenSearch SQL. For more information
|
5297
|
+
# about the query languages that CloudWatch Logs supports, see
|
5298
|
+
# [Supported query languages][1].
|
5299
|
+
#
|
5300
|
+
#
|
5301
|
+
#
|
5302
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html
|
5303
|
+
#
|
5062
5304
|
# @option params [required, String] :name
|
5063
5305
|
# A name for the query definition. If you are saving numerous query
|
5064
5306
|
# definitions, we recommend that you name them. This way, you can find
|
@@ -5086,10 +5328,13 @@ module Aws::CloudWatchLogs
|
|
5086
5328
|
#
|
5087
5329
|
# @option params [Array<String>] :log_group_names
|
5088
5330
|
# Use this parameter to include specific log groups as part of your
|
5089
|
-
# query definition.
|
5331
|
+
# query definition. If your query uses the OpenSearch Service query
|
5332
|
+
# language, you specify the log group names inside the `querystring`
|
5333
|
+
# instead of here.
|
5090
5334
|
#
|
5091
|
-
# If you are updating
|
5092
|
-
#
|
5335
|
+
# If you are updating an existing query definition for the Logs Insights
|
5336
|
+
# QL or OpenSearch Service PPL and you omit this parameter, then the
|
5337
|
+
# updated definition will contain no log groups.
|
5093
5338
|
#
|
5094
5339
|
# @option params [required, String] :query_string
|
5095
5340
|
# The query string to use for this definition. For more information, see
|
@@ -5113,6 +5358,7 @@ module Aws::CloudWatchLogs
|
|
5113
5358
|
# @example Request syntax with placeholder values
|
5114
5359
|
#
|
5115
5360
|
# resp = client.put_query_definition({
|
5361
|
+
# query_language: "CWLI", # accepts CWLI, SQL, PPL
|
5116
5362
|
# name: "QueryDefinitionName", # required
|
5117
5363
|
# query_definition_id: "QueryId",
|
5118
5364
|
# log_group_names: ["LogGroupName"],
|
@@ -5936,13 +6182,39 @@ module Aws::CloudWatchLogs
|
|
5936
6182
|
# [4]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html
|
5937
6183
|
# [5]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
5938
6184
|
#
|
6185
|
+
# @option params [String] :query_language
|
6186
|
+
# Specify the query language to use for this query. The options are Logs
|
6187
|
+
# Insights QL, OpenSearch PPL, and OpenSearch SQL. For more information
|
6188
|
+
# about the query languages that CloudWatch Logs supports, see
|
6189
|
+
# [Supported query languages][1].
|
6190
|
+
#
|
6191
|
+
#
|
6192
|
+
#
|
6193
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html
|
6194
|
+
#
|
5939
6195
|
# @option params [String] :log_group_name
|
5940
6196
|
# The log group on which to perform the query.
|
5941
6197
|
#
|
6198
|
+
# <note markdown="1"> A `StartQuery` operation must include exactly one of the following
|
6199
|
+
# parameters: `logGroupName`, `logGroupNames`, or `logGroupIdentifiers`.
|
6200
|
+
# The exception is queries using the OpenSearch Service SQL query
|
6201
|
+
# language, where you specify the log group names inside the
|
6202
|
+
# `querystring` instead of here.
|
6203
|
+
#
|
6204
|
+
# </note>
|
6205
|
+
#
|
5942
6206
|
# @option params [Array<String>] :log_group_names
|
5943
6207
|
# The list of log groups to be queried. You can include up to 50 log
|
5944
6208
|
# groups.
|
5945
6209
|
#
|
6210
|
+
# <note markdown="1"> A `StartQuery` operation must include exactly one of the following
|
6211
|
+
# parameters: `logGroupName`, `logGroupNames`, or `logGroupIdentifiers`.
|
6212
|
+
# The exception is queries using the OpenSearch Service SQL query
|
6213
|
+
# language, where you specify the log group names inside the
|
6214
|
+
# `querystring` instead of here.
|
6215
|
+
#
|
6216
|
+
# </note>
|
6217
|
+
#
|
5946
6218
|
# @option params [Array<String>] :log_group_identifiers
|
5947
6219
|
# The list of log groups to query. You can include up to 50 log groups.
|
5948
6220
|
#
|
@@ -5957,6 +6229,9 @@ module Aws::CloudWatchLogs
|
|
5957
6229
|
#
|
5958
6230
|
# A `StartQuery` operation must include exactly one of the following
|
5959
6231
|
# parameters: `logGroupName`, `logGroupNames`, or `logGroupIdentifiers`.
|
6232
|
+
# The exception is queries using the OpenSearch Service SQL query
|
6233
|
+
# language, where you specify the log group names inside the
|
6234
|
+
# `querystring` instead of here.
|
5960
6235
|
#
|
5961
6236
|
# @option params [required, Integer] :start_time
|
5962
6237
|
# The beginning of the time range to query. The range is inclusive, so
|
@@ -5988,6 +6263,7 @@ module Aws::CloudWatchLogs
|
|
5988
6263
|
# @example Request syntax with placeholder values
|
5989
6264
|
#
|
5990
6265
|
# resp = client.start_query({
|
6266
|
+
# query_language: "CWLI", # accepts CWLI, SQL, PPL
|
5991
6267
|
# log_group_name: "LogGroupName",
|
5992
6268
|
# log_group_names: ["LogGroupName"],
|
5993
6269
|
# log_group_identifiers: ["LogGroupIdentifier"],
|
@@ -6642,7 +6918,7 @@ module Aws::CloudWatchLogs
|
|
6642
6918
|
tracer: tracer
|
6643
6919
|
)
|
6644
6920
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
6645
|
-
context[:gem_version] = '1.
|
6921
|
+
context[:gem_version] = '1.104.0'
|
6646
6922
|
Seahorse::Client::Request.new(handlers, context)
|
6647
6923
|
end
|
6648
6924
|
|