AWS SDK for C++  0.14.3
AWS SDK for C++
CloudWatchLogsClient.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
35 #include <aws/core/NoResult.h>
38 #include <future>
39 #include <functional>
40 
41 namespace Aws
42 {
43 
44 namespace Http
45 {
46  class HttpClient;
47  class HttpClientFactory;
48 } // namespace Http
49 
50 namespace Utils
51 {
52  template< typename R, typename E> class Outcome;
53 
54 namespace Threading
55 {
56  class Executor;
57 } // namespace Threading
58 
59 namespace Json
60 {
61  class JsonValue;
62 } // namespace Json
63 } // namespace Utils
64 
65 namespace Auth
66 {
67  class AWSCredentials;
68  class AWSCredentialsProvider;
69 } // namespace Auth
70 
71 namespace Client
72 {
73  class RetryStrategy;
74 } // namespace Client
75 
76 namespace CloudWatchLogs
77 {
78 
79 namespace Model
80 {
98  class GetLogEventsRequest;
101  class PutLogEventsRequest;
106 
132 
133  typedef std::future<CancelExportTaskOutcome> CancelExportTaskOutcomeCallable;
134  typedef std::future<CreateExportTaskOutcome> CreateExportTaskOutcomeCallable;
135  typedef std::future<CreateLogGroupOutcome> CreateLogGroupOutcomeCallable;
136  typedef std::future<CreateLogStreamOutcome> CreateLogStreamOutcomeCallable;
137  typedef std::future<DeleteDestinationOutcome> DeleteDestinationOutcomeCallable;
138  typedef std::future<DeleteLogGroupOutcome> DeleteLogGroupOutcomeCallable;
139  typedef std::future<DeleteLogStreamOutcome> DeleteLogStreamOutcomeCallable;
140  typedef std::future<DeleteMetricFilterOutcome> DeleteMetricFilterOutcomeCallable;
141  typedef std::future<DeleteRetentionPolicyOutcome> DeleteRetentionPolicyOutcomeCallable;
142  typedef std::future<DeleteSubscriptionFilterOutcome> DeleteSubscriptionFilterOutcomeCallable;
143  typedef std::future<DescribeDestinationsOutcome> DescribeDestinationsOutcomeCallable;
144  typedef std::future<DescribeExportTasksOutcome> DescribeExportTasksOutcomeCallable;
145  typedef std::future<DescribeLogGroupsOutcome> DescribeLogGroupsOutcomeCallable;
146  typedef std::future<DescribeLogStreamsOutcome> DescribeLogStreamsOutcomeCallable;
147  typedef std::future<DescribeMetricFiltersOutcome> DescribeMetricFiltersOutcomeCallable;
148  typedef std::future<DescribeSubscriptionFiltersOutcome> DescribeSubscriptionFiltersOutcomeCallable;
149  typedef std::future<FilterLogEventsOutcome> FilterLogEventsOutcomeCallable;
150  typedef std::future<GetLogEventsOutcome> GetLogEventsOutcomeCallable;
151  typedef std::future<PutDestinationOutcome> PutDestinationOutcomeCallable;
152  typedef std::future<PutDestinationPolicyOutcome> PutDestinationPolicyOutcomeCallable;
153  typedef std::future<PutLogEventsOutcome> PutLogEventsOutcomeCallable;
154  typedef std::future<PutMetricFilterOutcome> PutMetricFilterOutcomeCallable;
155  typedef std::future<PutRetentionPolicyOutcome> PutRetentionPolicyOutcomeCallable;
156  typedef std::future<PutSubscriptionFilterOutcome> PutSubscriptionFilterOutcomeCallable;
157  typedef std::future<TestMetricFilterOutcome> TestMetricFilterOutcomeCallable;
158 } // namespace Model
159 
161 
162  typedef std::function<void(const CloudWatchLogsClient*, const Model::CancelExportTaskRequest&, const Model::CancelExportTaskOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CancelExportTaskResponseReceivedHandler;
163  typedef std::function<void(const CloudWatchLogsClient*, const Model::CreateExportTaskRequest&, const Model::CreateExportTaskOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateExportTaskResponseReceivedHandler;
164  typedef std::function<void(const CloudWatchLogsClient*, const Model::CreateLogGroupRequest&, const Model::CreateLogGroupOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateLogGroupResponseReceivedHandler;
165  typedef std::function<void(const CloudWatchLogsClient*, const Model::CreateLogStreamRequest&, const Model::CreateLogStreamOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateLogStreamResponseReceivedHandler;
166  typedef std::function<void(const CloudWatchLogsClient*, const Model::DeleteDestinationRequest&, const Model::DeleteDestinationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteDestinationResponseReceivedHandler;
167  typedef std::function<void(const CloudWatchLogsClient*, const Model::DeleteLogGroupRequest&, const Model::DeleteLogGroupOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteLogGroupResponseReceivedHandler;
168  typedef std::function<void(const CloudWatchLogsClient*, const Model::DeleteLogStreamRequest&, const Model::DeleteLogStreamOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteLogStreamResponseReceivedHandler;
169  typedef std::function<void(const CloudWatchLogsClient*, const Model::DeleteMetricFilterRequest&, const Model::DeleteMetricFilterOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteMetricFilterResponseReceivedHandler;
170  typedef std::function<void(const CloudWatchLogsClient*, const Model::DeleteRetentionPolicyRequest&, const Model::DeleteRetentionPolicyOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteRetentionPolicyResponseReceivedHandler;
171  typedef std::function<void(const CloudWatchLogsClient*, const Model::DeleteSubscriptionFilterRequest&, const Model::DeleteSubscriptionFilterOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteSubscriptionFilterResponseReceivedHandler;
172  typedef std::function<void(const CloudWatchLogsClient*, const Model::DescribeDestinationsRequest&, const Model::DescribeDestinationsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeDestinationsResponseReceivedHandler;
173  typedef std::function<void(const CloudWatchLogsClient*, const Model::DescribeExportTasksRequest&, const Model::DescribeExportTasksOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeExportTasksResponseReceivedHandler;
174  typedef std::function<void(const CloudWatchLogsClient*, const Model::DescribeLogGroupsRequest&, const Model::DescribeLogGroupsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeLogGroupsResponseReceivedHandler;
175  typedef std::function<void(const CloudWatchLogsClient*, const Model::DescribeLogStreamsRequest&, const Model::DescribeLogStreamsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeLogStreamsResponseReceivedHandler;
176  typedef std::function<void(const CloudWatchLogsClient*, const Model::DescribeMetricFiltersRequest&, const Model::DescribeMetricFiltersOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeMetricFiltersResponseReceivedHandler;
177  typedef std::function<void(const CloudWatchLogsClient*, const Model::DescribeSubscriptionFiltersRequest&, const Model::DescribeSubscriptionFiltersOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeSubscriptionFiltersResponseReceivedHandler;
178  typedef std::function<void(const CloudWatchLogsClient*, const Model::FilterLogEventsRequest&, const Model::FilterLogEventsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > FilterLogEventsResponseReceivedHandler;
179  typedef std::function<void(const CloudWatchLogsClient*, const Model::GetLogEventsRequest&, const Model::GetLogEventsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetLogEventsResponseReceivedHandler;
180  typedef std::function<void(const CloudWatchLogsClient*, const Model::PutDestinationRequest&, const Model::PutDestinationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutDestinationResponseReceivedHandler;
181  typedef std::function<void(const CloudWatchLogsClient*, const Model::PutDestinationPolicyRequest&, const Model::PutDestinationPolicyOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutDestinationPolicyResponseReceivedHandler;
182  typedef std::function<void(const CloudWatchLogsClient*, const Model::PutLogEventsRequest&, const Model::PutLogEventsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutLogEventsResponseReceivedHandler;
183  typedef std::function<void(const CloudWatchLogsClient*, const Model::PutMetricFilterRequest&, const Model::PutMetricFilterOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutMetricFilterResponseReceivedHandler;
184  typedef std::function<void(const CloudWatchLogsClient*, const Model::PutRetentionPolicyRequest&, const Model::PutRetentionPolicyOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutRetentionPolicyResponseReceivedHandler;
185  typedef std::function<void(const CloudWatchLogsClient*, const Model::PutSubscriptionFilterRequest&, const Model::PutSubscriptionFilterOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutSubscriptionFilterResponseReceivedHandler;
186  typedef std::function<void(const CloudWatchLogsClient*, const Model::TestMetricFilterRequest&, const Model::TestMetricFilterOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TestMetricFilterResponseReceivedHandler;
187 
216  {
217  public:
219 
225 
230  CloudWatchLogsClient(const Auth::AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration = Client::ClientConfiguration());
231 
236  CloudWatchLogsClient(const std::shared_ptr<Auth::AWSCredentialsProvider>& credentialsProvider,
237  const Client::ClientConfiguration& clientConfiguration = Client::ClientConfiguration());
238 
239  virtual ~CloudWatchLogsClient();
240 
245  virtual Model::CancelExportTaskOutcome CancelExportTask(const Model::CancelExportTaskRequest& request) const;
246 
253  virtual Model::CancelExportTaskOutcomeCallable CancelExportTaskCallable(const Model::CancelExportTaskRequest& request) const;
254 
261  virtual void CancelExportTaskAsync(const Model::CancelExportTaskRequest& request, const CancelExportTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
262 
275  virtual Model::CreateExportTaskOutcome CreateExportTask(const Model::CreateExportTaskRequest& request) const;
276 
291  virtual Model::CreateExportTaskOutcomeCallable CreateExportTaskCallable(const Model::CreateExportTaskRequest& request) const;
292 
307  virtual void CreateExportTaskAsync(const Model::CreateExportTaskRequest& request, const CreateExportTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
308 
317  virtual Model::CreateLogGroupOutcome CreateLogGroup(const Model::CreateLogGroupRequest& request) const;
318 
329  virtual Model::CreateLogGroupOutcomeCallable CreateLogGroupCallable(const Model::CreateLogGroupRequest& request) const;
330 
341  virtual void CreateLogGroupAsync(const Model::CreateLogGroupRequest& request, const CreateLogGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
342 
351  virtual Model::CreateLogStreamOutcome CreateLogStream(const Model::CreateLogStreamRequest& request) const;
352 
363  virtual Model::CreateLogStreamOutcomeCallable CreateLogStreamCallable(const Model::CreateLogStreamRequest& request) const;
364 
375  virtual void CreateLogStreamAsync(const Model::CreateLogStreamRequest& request, const CreateLogStreamResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
376 
382  virtual Model::DeleteDestinationOutcome DeleteDestination(const Model::DeleteDestinationRequest& request) const;
383 
391  virtual Model::DeleteDestinationOutcomeCallable DeleteDestinationCallable(const Model::DeleteDestinationRequest& request) const;
392 
400  virtual void DeleteDestinationAsync(const Model::DeleteDestinationRequest& request, const DeleteDestinationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
401 
406  virtual Model::DeleteLogGroupOutcome DeleteLogGroup(const Model::DeleteLogGroupRequest& request) const;
407 
414  virtual Model::DeleteLogGroupOutcomeCallable DeleteLogGroupCallable(const Model::DeleteLogGroupRequest& request) const;
415 
422  virtual void DeleteLogGroupAsync(const Model::DeleteLogGroupRequest& request, const DeleteLogGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
423 
428  virtual Model::DeleteLogStreamOutcome DeleteLogStream(const Model::DeleteLogStreamRequest& request) const;
429 
436  virtual Model::DeleteLogStreamOutcomeCallable DeleteLogStreamCallable(const Model::DeleteLogStreamRequest& request) const;
437 
444  virtual void DeleteLogStreamAsync(const Model::DeleteLogStreamRequest& request, const DeleteLogStreamResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
445 
449  virtual Model::DeleteMetricFilterOutcome DeleteMetricFilter(const Model::DeleteMetricFilterRequest& request) const;
450 
456  virtual Model::DeleteMetricFilterOutcomeCallable DeleteMetricFilterCallable(const Model::DeleteMetricFilterRequest& request) const;
457 
463  virtual void DeleteMetricFilterAsync(const Model::DeleteMetricFilterRequest& request, const DeleteMetricFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
464 
469  virtual Model::DeleteRetentionPolicyOutcome DeleteRetentionPolicy(const Model::DeleteRetentionPolicyRequest& request) const;
470 
477  virtual Model::DeleteRetentionPolicyOutcomeCallable DeleteRetentionPolicyCallable(const Model::DeleteRetentionPolicyRequest& request) const;
478 
485  virtual void DeleteRetentionPolicyAsync(const Model::DeleteRetentionPolicyRequest& request, const DeleteRetentionPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
486 
490  virtual Model::DeleteSubscriptionFilterOutcome DeleteSubscriptionFilter(const Model::DeleteSubscriptionFilterRequest& request) const;
491 
497  virtual Model::DeleteSubscriptionFilterOutcomeCallable DeleteSubscriptionFilterCallable(const Model::DeleteSubscriptionFilterRequest& request) const;
498 
504  virtual void DeleteSubscriptionFilterAsync(const Model::DeleteSubscriptionFilterRequest& request, const DeleteSubscriptionFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
505 
515  virtual Model::DescribeDestinationsOutcome DescribeDestinations(const Model::DescribeDestinationsRequest& request) const;
516 
528  virtual Model::DescribeDestinationsOutcomeCallable DescribeDestinationsCallable(const Model::DescribeDestinationsRequest& request) const;
529 
541  virtual void DescribeDestinationsAsync(const Model::DescribeDestinationsRequest& request, const DescribeDestinationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
542 
552  virtual Model::DescribeExportTasksOutcome DescribeExportTasks(const Model::DescribeExportTasksRequest& request) const;
553 
565  virtual Model::DescribeExportTasksOutcomeCallable DescribeExportTasksCallable(const Model::DescribeExportTasksRequest& request) const;
566 
578  virtual void DescribeExportTasksAsync(const Model::DescribeExportTasksRequest& request, const DescribeExportTasksResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
579 
589  virtual Model::DescribeLogGroupsOutcome DescribeLogGroups(const Model::DescribeLogGroupsRequest& request) const;
590 
602  virtual Model::DescribeLogGroupsOutcomeCallable DescribeLogGroupsCallable(const Model::DescribeLogGroupsRequest& request) const;
603 
615  virtual void DescribeLogGroupsAsync(const Model::DescribeLogGroupsRequest& request, const DescribeLogGroupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
616 
627  virtual Model::DescribeLogStreamsOutcome DescribeLogStreams(const Model::DescribeLogStreamsRequest& request) const;
628 
641  virtual Model::DescribeLogStreamsOutcomeCallable DescribeLogStreamsCallable(const Model::DescribeLogStreamsRequest& request) const;
642 
655  virtual void DescribeLogStreamsAsync(const Model::DescribeLogStreamsRequest& request, const DescribeLogStreamsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
656 
665  virtual Model::DescribeMetricFiltersOutcome DescribeMetricFilters(const Model::DescribeMetricFiltersRequest& request) const;
666 
677  virtual Model::DescribeMetricFiltersOutcomeCallable DescribeMetricFiltersCallable(const Model::DescribeMetricFiltersRequest& request) const;
678 
689  virtual void DescribeMetricFiltersAsync(const Model::DescribeMetricFiltersRequest& request, const DescribeMetricFiltersResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
690 
700  virtual Model::DescribeSubscriptionFiltersOutcome DescribeSubscriptionFilters(const Model::DescribeSubscriptionFiltersRequest& request) const;
701 
713  virtual Model::DescribeSubscriptionFiltersOutcomeCallable DescribeSubscriptionFiltersCallable(const Model::DescribeSubscriptionFiltersRequest& request) const;
714 
726  virtual void DescribeSubscriptionFiltersAsync(const Model::DescribeSubscriptionFiltersRequest& request, const DescribeSubscriptionFiltersResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
727 
743  virtual Model::FilterLogEventsOutcome FilterLogEvents(const Model::FilterLogEventsRequest& request) const;
744 
762  virtual Model::FilterLogEventsOutcomeCallable FilterLogEventsCallable(const Model::FilterLogEventsRequest& request) const;
763 
781  virtual void FilterLogEventsAsync(const Model::FilterLogEventsRequest& request, const FilterLogEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
782 
795  virtual Model::GetLogEventsOutcome GetLogEvents(const Model::GetLogEventsRequest& request) const;
796 
811  virtual Model::GetLogEventsOutcomeCallable GetLogEventsCallable(const Model::GetLogEventsRequest& request) const;
812 
827  virtual void GetLogEventsAsync(const Model::GetLogEventsRequest& request, const GetLogEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
828 
842  virtual Model::PutDestinationOutcome PutDestination(const Model::PutDestinationRequest& request) const;
843 
859  virtual Model::PutDestinationOutcomeCallable PutDestinationCallable(const Model::PutDestinationRequest& request) const;
860 
876  virtual void PutDestinationAsync(const Model::PutDestinationRequest& request, const PutDestinationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
877 
885  virtual Model::PutDestinationPolicyOutcome PutDestinationPolicy(const Model::PutDestinationPolicyRequest& request) const;
886 
896  virtual Model::PutDestinationPolicyOutcomeCallable PutDestinationPolicyCallable(const Model::PutDestinationPolicyRequest& request) const;
897 
907  virtual void PutDestinationPolicyAsync(const Model::PutDestinationPolicyRequest& request, const PutDestinationPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
908 
927  virtual Model::PutLogEventsOutcome PutLogEvents(const Model::PutLogEventsRequest& request) const;
928 
949  virtual Model::PutLogEventsOutcomeCallable PutLogEventsCallable(const Model::PutLogEventsRequest& request) const;
950 
971  virtual void PutLogEventsAsync(const Model::PutLogEventsRequest& request, const PutLogEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
972 
980  virtual Model::PutMetricFilterOutcome PutMetricFilter(const Model::PutMetricFilterRequest& request) const;
981 
991  virtual Model::PutMetricFilterOutcomeCallable PutMetricFilterCallable(const Model::PutMetricFilterRequest& request) const;
992 
1002  virtual void PutMetricFilterAsync(const Model::PutMetricFilterRequest& request, const PutMetricFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1003 
1009  virtual Model::PutRetentionPolicyOutcome PutRetentionPolicy(const Model::PutRetentionPolicyRequest& request) const;
1010 
1018  virtual Model::PutRetentionPolicyOutcomeCallable PutRetentionPolicyCallable(const Model::PutRetentionPolicyRequest& request) const;
1019 
1027  virtual void PutRetentionPolicyAsync(const Model::PutRetentionPolicyRequest& request, const PutRetentionPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1028 
1044  virtual Model::PutSubscriptionFilterOutcome PutSubscriptionFilter(const Model::PutSubscriptionFilterRequest& request) const;
1045 
1063  virtual Model::PutSubscriptionFilterOutcomeCallable PutSubscriptionFilterCallable(const Model::PutSubscriptionFilterRequest& request) const;
1064 
1082  virtual void PutSubscriptionFilterAsync(const Model::PutSubscriptionFilterRequest& request, const PutSubscriptionFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1083 
1089  virtual Model::TestMetricFilterOutcome TestMetricFilter(const Model::TestMetricFilterRequest& request) const;
1090 
1098  virtual Model::TestMetricFilterOutcomeCallable TestMetricFilterCallable(const Model::TestMetricFilterRequest& request) const;
1099 
1107  virtual void TestMetricFilterAsync(const Model::TestMetricFilterRequest& request, const TestMetricFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1108 
1109 
1110  private:
1111  void init(const Client::ClientConfiguration& clientConfiguration);
1112 
1114  void CancelExportTaskAsyncHelper(const Model::CancelExportTaskRequest& request, const CancelExportTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1115  void CreateExportTaskAsyncHelper(const Model::CreateExportTaskRequest& request, const CreateExportTaskResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1116  void CreateLogGroupAsyncHelper(const Model::CreateLogGroupRequest& request, const CreateLogGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1117  void CreateLogStreamAsyncHelper(const Model::CreateLogStreamRequest& request, const CreateLogStreamResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1118  void DeleteDestinationAsyncHelper(const Model::DeleteDestinationRequest& request, const DeleteDestinationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1119  void DeleteLogGroupAsyncHelper(const Model::DeleteLogGroupRequest& request, const DeleteLogGroupResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1120  void DeleteLogStreamAsyncHelper(const Model::DeleteLogStreamRequest& request, const DeleteLogStreamResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1121  void DeleteMetricFilterAsyncHelper(const Model::DeleteMetricFilterRequest& request, const DeleteMetricFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1122  void DeleteRetentionPolicyAsyncHelper(const Model::DeleteRetentionPolicyRequest& request, const DeleteRetentionPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1123  void DeleteSubscriptionFilterAsyncHelper(const Model::DeleteSubscriptionFilterRequest& request, const DeleteSubscriptionFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1124  void DescribeDestinationsAsyncHelper(const Model::DescribeDestinationsRequest& request, const DescribeDestinationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1125  void DescribeExportTasksAsyncHelper(const Model::DescribeExportTasksRequest& request, const DescribeExportTasksResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1126  void DescribeLogGroupsAsyncHelper(const Model::DescribeLogGroupsRequest& request, const DescribeLogGroupsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1127  void DescribeLogStreamsAsyncHelper(const Model::DescribeLogStreamsRequest& request, const DescribeLogStreamsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1128  void DescribeMetricFiltersAsyncHelper(const Model::DescribeMetricFiltersRequest& request, const DescribeMetricFiltersResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1129  void DescribeSubscriptionFiltersAsyncHelper(const Model::DescribeSubscriptionFiltersRequest& request, const DescribeSubscriptionFiltersResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1130  void FilterLogEventsAsyncHelper(const Model::FilterLogEventsRequest& request, const FilterLogEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1131  void GetLogEventsAsyncHelper(const Model::GetLogEventsRequest& request, const GetLogEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1132  void PutDestinationAsyncHelper(const Model::PutDestinationRequest& request, const PutDestinationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1133  void PutDestinationPolicyAsyncHelper(const Model::PutDestinationPolicyRequest& request, const PutDestinationPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1134  void PutLogEventsAsyncHelper(const Model::PutLogEventsRequest& request, const PutLogEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1135  void PutMetricFilterAsyncHelper(const Model::PutMetricFilterRequest& request, const PutMetricFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1136  void PutRetentionPolicyAsyncHelper(const Model::PutRetentionPolicyRequest& request, const PutRetentionPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1137  void PutSubscriptionFilterAsyncHelper(const Model::PutSubscriptionFilterRequest& request, const PutSubscriptionFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1138  void TestMetricFilterAsyncHelper(const Model::TestMetricFilterRequest& request, const TestMetricFilterResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1139 
1140  Aws::String m_uri;
1141  std::shared_ptr<Utils::Threading::Executor> m_executor;
1142  };
1143 
1144 } // namespace CloudWatchLogs
1145 } // namespace Aws
Aws::Utils::Outcome< DescribeMetricFiltersResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DescribeMetricFiltersOutcome
std::function< void(const CloudWatchLogsClient *, const Model::DescribeLogGroupsRequest &, const Model::DescribeLogGroupsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeLogGroupsResponseReceivedHandler
std::future< CreateLogStreamOutcome > CreateLogStreamOutcomeCallable
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > PutRetentionPolicyOutcome
std::future< DeleteLogGroupOutcome > DeleteLogGroupOutcomeCallable
std::future< FilterLogEventsOutcome > FilterLogEventsOutcomeCallable
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > CreateLogGroupOutcome
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DeleteLogGroupOutcome
Aws::Utils::Outcome< PutLogEventsResult, Aws::Client::AWSError< CloudWatchLogsErrors > > PutLogEventsOutcome
std::future< PutMetricFilterOutcome > PutMetricFilterOutcomeCallable
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DeleteMetricFilterOutcome
std::function< void(const CloudWatchLogsClient *, const Model::DeleteLogGroupRequest &, const Model::DeleteLogGroupOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteLogGroupResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::DescribeLogStreamsRequest &, const Model::DescribeLogStreamsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeLogStreamsResponseReceivedHandler
std::future< DescribeMetricFiltersOutcome > DescribeMetricFiltersOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::DeleteSubscriptionFilterRequest &, const Model::DeleteSubscriptionFilterOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteSubscriptionFilterResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::GetLogEventsRequest &, const Model::GetLogEventsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetLogEventsResponseReceivedHandler
std::future< DescribeDestinationsOutcome > DescribeDestinationsOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::CancelExportTaskRequest &, const Model::CancelExportTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CancelExportTaskResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::PutRetentionPolicyRequest &, const Model::PutRetentionPolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutRetentionPolicyResponseReceivedHandler
std::future< DescribeExportTasksOutcome > DescribeExportTasksOutcomeCallable
std::future< PutDestinationOutcome > PutDestinationOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::DescribeMetricFiltersRequest &, const Model::DescribeMetricFiltersOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeMetricFiltersResponseReceivedHandler
std::future< DeleteRetentionPolicyOutcome > DeleteRetentionPolicyOutcomeCallable
std::future< DescribeSubscriptionFiltersOutcome > DescribeSubscriptionFiltersOutcomeCallable
Aws::Utils::Outcome< GetLogEventsResult, Aws::Client::AWSError< CloudWatchLogsErrors > > GetLogEventsOutcome
Aws::Utils::Outcome< TestMetricFilterResult, Aws::Client::AWSError< CloudWatchLogsErrors > > TestMetricFilterOutcome
std::future< DeleteLogStreamOutcome > DeleteLogStreamOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::DescribeSubscriptionFiltersRequest &, const Model::DescribeSubscriptionFiltersOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeSubscriptionFiltersResponseReceivedHandler
std::future< PutSubscriptionFilterOutcome > PutSubscriptionFilterOutcomeCallable
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DeleteRetentionPolicyOutcome
std::function< void(const CloudWatchLogsClient *, const Model::DeleteMetricFilterRequest &, const Model::DeleteMetricFilterOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteMetricFilterResponseReceivedHandler
std::future< DescribeLogGroupsOutcome > DescribeLogGroupsOutcomeCallable
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DeleteLogStreamOutcome
std::function< void(const CloudWatchLogsClient *, const Model::PutMetricFilterRequest &, const Model::PutMetricFilterOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutMetricFilterResponseReceivedHandler
#define AWS_CLOUDWATCHLOGS_API
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > PutDestinationPolicyOutcome
std::future< TestMetricFilterOutcome > TestMetricFilterOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::CreateLogStreamRequest &, const Model::CreateLogStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateLogStreamResponseReceivedHandler
std::future< DeleteMetricFilterOutcome > DeleteMetricFilterOutcomeCallable
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DeleteDestinationOutcome
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > CancelExportTaskOutcome
std::function< void(const CloudWatchLogsClient *, const Model::DescribeExportTasksRequest &, const Model::DescribeExportTasksOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeExportTasksResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::TestMetricFilterRequest &, const Model::TestMetricFilterOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TestMetricFilterResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::PutDestinationPolicyRequest &, const Model::PutDestinationPolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutDestinationPolicyResponseReceivedHandler
Aws::Utils::Outcome< DescribeLogStreamsResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DescribeLogStreamsOutcome
Aws::Utils::Outcome< DescribeExportTasksResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DescribeExportTasksOutcome
std::function< void(const CloudWatchLogsClient *, const Model::DeleteLogStreamRequest &, const Model::DeleteLogStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteLogStreamResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::PutDestinationRequest &, const Model::PutDestinationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutDestinationResponseReceivedHandler
Aws::Utils::Outcome< DescribeDestinationsResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DescribeDestinationsOutcome
Aws::Utils::Outcome< CreateExportTaskResult, Aws::Client::AWSError< CloudWatchLogsErrors > > CreateExportTaskOutcome
Aws::Utils::Outcome< DescribeLogGroupsResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DescribeLogGroupsOutcome
std::future< CreateLogGroupOutcome > CreateLogGroupOutcomeCallable
std::future< DeleteDestinationOutcome > DeleteDestinationOutcomeCallable
std::future< CreateExportTaskOutcome > CreateExportTaskOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::DescribeDestinationsRequest &, const Model::DescribeDestinationsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeDestinationsResponseReceivedHandler
Aws::Utils::Outcome< DescribeSubscriptionFiltersResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DescribeSubscriptionFiltersOutcome
std::future< GetLogEventsOutcome > GetLogEventsOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::DeleteRetentionPolicyRequest &, const Model::DeleteRetentionPolicyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteRetentionPolicyResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::CreateLogGroupRequest &, const Model::CreateLogGroupOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateLogGroupResponseReceivedHandler
std::future< DescribeLogStreamsOutcome > DescribeLogStreamsOutcomeCallable
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
std::function< void(const CloudWatchLogsClient *, const Model::DeleteDestinationRequest &, const Model::DeleteDestinationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteDestinationResponseReceivedHandler
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > PutMetricFilterOutcome
std::future< PutRetentionPolicyOutcome > PutRetentionPolicyOutcomeCallable
Aws::Utils::Outcome< PutDestinationResult, Aws::Client::AWSError< CloudWatchLogsErrors > > PutDestinationOutcome
std::future< PutLogEventsOutcome > PutLogEventsOutcomeCallable
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > DeleteSubscriptionFilterOutcome
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > CreateLogStreamOutcome
Aws::Utils::Outcome< FilterLogEventsResult, Aws::Client::AWSError< CloudWatchLogsErrors > > FilterLogEventsOutcome
std::future< CancelExportTaskOutcome > CancelExportTaskOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::CreateExportTaskRequest &, const Model::CreateExportTaskOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateExportTaskResponseReceivedHandler
Aws::Utils::Outcome< NoResult, Aws::Client::AWSError< CloudWatchLogsErrors > > PutSubscriptionFilterOutcome
std::function< void(const CloudWatchLogsClient *, const Model::PutLogEventsRequest &, const Model::PutLogEventsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutLogEventsResponseReceivedHandler
std::future< DeleteSubscriptionFilterOutcome > DeleteSubscriptionFilterOutcomeCallable
std::future< PutDestinationPolicyOutcome > PutDestinationPolicyOutcomeCallable
std::function< void(const CloudWatchLogsClient *, const Model::PutSubscriptionFilterRequest &, const Model::PutSubscriptionFilterOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PutSubscriptionFilterResponseReceivedHandler
std::function< void(const CloudWatchLogsClient *, const Model::FilterLogEventsRequest &, const Model::FilterLogEventsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > FilterLogEventsResponseReceivedHandler
JSON (JavaScript Object Notation).