1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5
6 #include <aws/core/utils/Outcome.h>
7 #include <aws/core/auth/AWSAuthSigner.h>
8 #include <aws/core/client/CoreErrors.h>
9 #include <aws/core/client/RetryStrategy.h>
10 #include <aws/core/http/HttpClient.h>
11 #include <aws/core/http/HttpResponse.h>
12 #include <aws/core/http/HttpClientFactory.h>
13 #include <aws/core/auth/AWSCredentialsProviderChain.h>
14 #include <aws/core/utils/json/JsonSerializer.h>
15 #include <aws/core/utils/memory/stl/AWSStringStream.h>
16 #include <aws/core/utils/threading/Executor.h>
17 #include <aws/core/utils/DNS.h>
18 #include <aws/core/utils/logging/LogMacros.h>
19
20 #include <aws/fms/FMSClient.h>
21 #include <aws/fms/FMSEndpoint.h>
22 #include <aws/fms/FMSErrorMarshaller.h>
23 #include <aws/fms/model/AssociateAdminAccountRequest.h>
24 #include <aws/fms/model/DeleteAppsListRequest.h>
25 #include <aws/fms/model/DeleteNotificationChannelRequest.h>
26 #include <aws/fms/model/DeletePolicyRequest.h>
27 #include <aws/fms/model/DeleteProtocolsListRequest.h>
28 #include <aws/fms/model/DisassociateAdminAccountRequest.h>
29 #include <aws/fms/model/GetAdminAccountRequest.h>
30 #include <aws/fms/model/GetAppsListRequest.h>
31 #include <aws/fms/model/GetComplianceDetailRequest.h>
32 #include <aws/fms/model/GetNotificationChannelRequest.h>
33 #include <aws/fms/model/GetPolicyRequest.h>
34 #include <aws/fms/model/GetProtectionStatusRequest.h>
35 #include <aws/fms/model/GetProtocolsListRequest.h>
36 #include <aws/fms/model/GetViolationDetailsRequest.h>
37 #include <aws/fms/model/ListAppsListsRequest.h>
38 #include <aws/fms/model/ListComplianceStatusRequest.h>
39 #include <aws/fms/model/ListMemberAccountsRequest.h>
40 #include <aws/fms/model/ListPoliciesRequest.h>
41 #include <aws/fms/model/ListProtocolsListsRequest.h>
42 #include <aws/fms/model/ListTagsForResourceRequest.h>
43 #include <aws/fms/model/PutAppsListRequest.h>
44 #include <aws/fms/model/PutNotificationChannelRequest.h>
45 #include <aws/fms/model/PutPolicyRequest.h>
46 #include <aws/fms/model/PutProtocolsListRequest.h>
47 #include <aws/fms/model/TagResourceRequest.h>
48 #include <aws/fms/model/UntagResourceRequest.h>
49
50 using namespace Aws;
51 using namespace Aws::Auth;
52 using namespace Aws::Client;
53 using namespace Aws::FMS;
54 using namespace Aws::FMS::Model;
55 using namespace Aws::Http;
56 using namespace Aws::Utils::Json;
57
58 static const char* SERVICE_NAME = "fms";
59 static const char* ALLOCATION_TAG = "FMSClient";
60
61
FMSClient(const Client::ClientConfiguration & clientConfiguration)62 FMSClient::FMSClient(const Client::ClientConfiguration& clientConfiguration) :
63 BASECLASS(clientConfiguration,
64 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
65 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
66 Aws::MakeShared<FMSErrorMarshaller>(ALLOCATION_TAG)),
67 m_executor(clientConfiguration.executor)
68 {
69 init(clientConfiguration);
70 }
71
FMSClient(const AWSCredentials & credentials,const Client::ClientConfiguration & clientConfiguration)72 FMSClient::FMSClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
73 BASECLASS(clientConfiguration,
74 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
75 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
76 Aws::MakeShared<FMSErrorMarshaller>(ALLOCATION_TAG)),
77 m_executor(clientConfiguration.executor)
78 {
79 init(clientConfiguration);
80 }
81
FMSClient(const std::shared_ptr<AWSCredentialsProvider> & credentialsProvider,const Client::ClientConfiguration & clientConfiguration)82 FMSClient::FMSClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
83 const Client::ClientConfiguration& clientConfiguration) :
84 BASECLASS(clientConfiguration,
85 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
86 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
87 Aws::MakeShared<FMSErrorMarshaller>(ALLOCATION_TAG)),
88 m_executor(clientConfiguration.executor)
89 {
90 init(clientConfiguration);
91 }
92
~FMSClient()93 FMSClient::~FMSClient()
94 {
95 }
96
init(const Client::ClientConfiguration & config)97 void FMSClient::init(const Client::ClientConfiguration& config)
98 {
99 SetServiceClientName("FMS");
100 m_configScheme = SchemeMapper::ToString(config.scheme);
101 if (config.endpointOverride.empty())
102 {
103 m_uri = m_configScheme + "://" + FMSEndpoint::ForRegion(config.region, config.useDualStack);
104 }
105 else
106 {
107 OverrideEndpoint(config.endpointOverride);
108 }
109 }
110
OverrideEndpoint(const Aws::String & endpoint)111 void FMSClient::OverrideEndpoint(const Aws::String& endpoint)
112 {
113 if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
114 {
115 m_uri = endpoint;
116 }
117 else
118 {
119 m_uri = m_configScheme + "://" + endpoint;
120 }
121 }
122
AssociateAdminAccount(const AssociateAdminAccountRequest & request) const123 AssociateAdminAccountOutcome FMSClient::AssociateAdminAccount(const AssociateAdminAccountRequest& request) const
124 {
125 Aws::Http::URI uri = m_uri;
126 return AssociateAdminAccountOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
127 }
128
AssociateAdminAccountCallable(const AssociateAdminAccountRequest & request) const129 AssociateAdminAccountOutcomeCallable FMSClient::AssociateAdminAccountCallable(const AssociateAdminAccountRequest& request) const
130 {
131 auto task = Aws::MakeShared< std::packaged_task< AssociateAdminAccountOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateAdminAccount(request); } );
132 auto packagedFunction = [task]() { (*task)(); };
133 m_executor->Submit(packagedFunction);
134 return task->get_future();
135 }
136
AssociateAdminAccountAsync(const AssociateAdminAccountRequest & request,const AssociateAdminAccountResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const137 void FMSClient::AssociateAdminAccountAsync(const AssociateAdminAccountRequest& request, const AssociateAdminAccountResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
138 {
139 m_executor->Submit( [this, request, handler, context](){ this->AssociateAdminAccountAsyncHelper( request, handler, context ); } );
140 }
141
AssociateAdminAccountAsyncHelper(const AssociateAdminAccountRequest & request,const AssociateAdminAccountResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const142 void FMSClient::AssociateAdminAccountAsyncHelper(const AssociateAdminAccountRequest& request, const AssociateAdminAccountResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
143 {
144 handler(this, request, AssociateAdminAccount(request), context);
145 }
146
DeleteAppsList(const DeleteAppsListRequest & request) const147 DeleteAppsListOutcome FMSClient::DeleteAppsList(const DeleteAppsListRequest& request) const
148 {
149 Aws::Http::URI uri = m_uri;
150 return DeleteAppsListOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
151 }
152
DeleteAppsListCallable(const DeleteAppsListRequest & request) const153 DeleteAppsListOutcomeCallable FMSClient::DeleteAppsListCallable(const DeleteAppsListRequest& request) const
154 {
155 auto task = Aws::MakeShared< std::packaged_task< DeleteAppsListOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteAppsList(request); } );
156 auto packagedFunction = [task]() { (*task)(); };
157 m_executor->Submit(packagedFunction);
158 return task->get_future();
159 }
160
DeleteAppsListAsync(const DeleteAppsListRequest & request,const DeleteAppsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const161 void FMSClient::DeleteAppsListAsync(const DeleteAppsListRequest& request, const DeleteAppsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
162 {
163 m_executor->Submit( [this, request, handler, context](){ this->DeleteAppsListAsyncHelper( request, handler, context ); } );
164 }
165
DeleteAppsListAsyncHelper(const DeleteAppsListRequest & request,const DeleteAppsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const166 void FMSClient::DeleteAppsListAsyncHelper(const DeleteAppsListRequest& request, const DeleteAppsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
167 {
168 handler(this, request, DeleteAppsList(request), context);
169 }
170
DeleteNotificationChannel(const DeleteNotificationChannelRequest & request) const171 DeleteNotificationChannelOutcome FMSClient::DeleteNotificationChannel(const DeleteNotificationChannelRequest& request) const
172 {
173 Aws::Http::URI uri = m_uri;
174 return DeleteNotificationChannelOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
175 }
176
DeleteNotificationChannelCallable(const DeleteNotificationChannelRequest & request) const177 DeleteNotificationChannelOutcomeCallable FMSClient::DeleteNotificationChannelCallable(const DeleteNotificationChannelRequest& request) const
178 {
179 auto task = Aws::MakeShared< std::packaged_task< DeleteNotificationChannelOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteNotificationChannel(request); } );
180 auto packagedFunction = [task]() { (*task)(); };
181 m_executor->Submit(packagedFunction);
182 return task->get_future();
183 }
184
DeleteNotificationChannelAsync(const DeleteNotificationChannelRequest & request,const DeleteNotificationChannelResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const185 void FMSClient::DeleteNotificationChannelAsync(const DeleteNotificationChannelRequest& request, const DeleteNotificationChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
186 {
187 m_executor->Submit( [this, request, handler, context](){ this->DeleteNotificationChannelAsyncHelper( request, handler, context ); } );
188 }
189
DeleteNotificationChannelAsyncHelper(const DeleteNotificationChannelRequest & request,const DeleteNotificationChannelResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const190 void FMSClient::DeleteNotificationChannelAsyncHelper(const DeleteNotificationChannelRequest& request, const DeleteNotificationChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
191 {
192 handler(this, request, DeleteNotificationChannel(request), context);
193 }
194
DeletePolicy(const DeletePolicyRequest & request) const195 DeletePolicyOutcome FMSClient::DeletePolicy(const DeletePolicyRequest& request) const
196 {
197 Aws::Http::URI uri = m_uri;
198 return DeletePolicyOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
199 }
200
DeletePolicyCallable(const DeletePolicyRequest & request) const201 DeletePolicyOutcomeCallable FMSClient::DeletePolicyCallable(const DeletePolicyRequest& request) const
202 {
203 auto task = Aws::MakeShared< std::packaged_task< DeletePolicyOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeletePolicy(request); } );
204 auto packagedFunction = [task]() { (*task)(); };
205 m_executor->Submit(packagedFunction);
206 return task->get_future();
207 }
208
DeletePolicyAsync(const DeletePolicyRequest & request,const DeletePolicyResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const209 void FMSClient::DeletePolicyAsync(const DeletePolicyRequest& request, const DeletePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
210 {
211 m_executor->Submit( [this, request, handler, context](){ this->DeletePolicyAsyncHelper( request, handler, context ); } );
212 }
213
DeletePolicyAsyncHelper(const DeletePolicyRequest & request,const DeletePolicyResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const214 void FMSClient::DeletePolicyAsyncHelper(const DeletePolicyRequest& request, const DeletePolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
215 {
216 handler(this, request, DeletePolicy(request), context);
217 }
218
DeleteProtocolsList(const DeleteProtocolsListRequest & request) const219 DeleteProtocolsListOutcome FMSClient::DeleteProtocolsList(const DeleteProtocolsListRequest& request) const
220 {
221 Aws::Http::URI uri = m_uri;
222 return DeleteProtocolsListOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
223 }
224
DeleteProtocolsListCallable(const DeleteProtocolsListRequest & request) const225 DeleteProtocolsListOutcomeCallable FMSClient::DeleteProtocolsListCallable(const DeleteProtocolsListRequest& request) const
226 {
227 auto task = Aws::MakeShared< std::packaged_task< DeleteProtocolsListOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteProtocolsList(request); } );
228 auto packagedFunction = [task]() { (*task)(); };
229 m_executor->Submit(packagedFunction);
230 return task->get_future();
231 }
232
DeleteProtocolsListAsync(const DeleteProtocolsListRequest & request,const DeleteProtocolsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const233 void FMSClient::DeleteProtocolsListAsync(const DeleteProtocolsListRequest& request, const DeleteProtocolsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
234 {
235 m_executor->Submit( [this, request, handler, context](){ this->DeleteProtocolsListAsyncHelper( request, handler, context ); } );
236 }
237
DeleteProtocolsListAsyncHelper(const DeleteProtocolsListRequest & request,const DeleteProtocolsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const238 void FMSClient::DeleteProtocolsListAsyncHelper(const DeleteProtocolsListRequest& request, const DeleteProtocolsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
239 {
240 handler(this, request, DeleteProtocolsList(request), context);
241 }
242
DisassociateAdminAccount(const DisassociateAdminAccountRequest & request) const243 DisassociateAdminAccountOutcome FMSClient::DisassociateAdminAccount(const DisassociateAdminAccountRequest& request) const
244 {
245 Aws::Http::URI uri = m_uri;
246 return DisassociateAdminAccountOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
247 }
248
DisassociateAdminAccountCallable(const DisassociateAdminAccountRequest & request) const249 DisassociateAdminAccountOutcomeCallable FMSClient::DisassociateAdminAccountCallable(const DisassociateAdminAccountRequest& request) const
250 {
251 auto task = Aws::MakeShared< std::packaged_task< DisassociateAdminAccountOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateAdminAccount(request); } );
252 auto packagedFunction = [task]() { (*task)(); };
253 m_executor->Submit(packagedFunction);
254 return task->get_future();
255 }
256
DisassociateAdminAccountAsync(const DisassociateAdminAccountRequest & request,const DisassociateAdminAccountResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const257 void FMSClient::DisassociateAdminAccountAsync(const DisassociateAdminAccountRequest& request, const DisassociateAdminAccountResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
258 {
259 m_executor->Submit( [this, request, handler, context](){ this->DisassociateAdminAccountAsyncHelper( request, handler, context ); } );
260 }
261
DisassociateAdminAccountAsyncHelper(const DisassociateAdminAccountRequest & request,const DisassociateAdminAccountResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const262 void FMSClient::DisassociateAdminAccountAsyncHelper(const DisassociateAdminAccountRequest& request, const DisassociateAdminAccountResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
263 {
264 handler(this, request, DisassociateAdminAccount(request), context);
265 }
266
GetAdminAccount(const GetAdminAccountRequest & request) const267 GetAdminAccountOutcome FMSClient::GetAdminAccount(const GetAdminAccountRequest& request) const
268 {
269 Aws::Http::URI uri = m_uri;
270 return GetAdminAccountOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
271 }
272
GetAdminAccountCallable(const GetAdminAccountRequest & request) const273 GetAdminAccountOutcomeCallable FMSClient::GetAdminAccountCallable(const GetAdminAccountRequest& request) const
274 {
275 auto task = Aws::MakeShared< std::packaged_task< GetAdminAccountOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAdminAccount(request); } );
276 auto packagedFunction = [task]() { (*task)(); };
277 m_executor->Submit(packagedFunction);
278 return task->get_future();
279 }
280
GetAdminAccountAsync(const GetAdminAccountRequest & request,const GetAdminAccountResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const281 void FMSClient::GetAdminAccountAsync(const GetAdminAccountRequest& request, const GetAdminAccountResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
282 {
283 m_executor->Submit( [this, request, handler, context](){ this->GetAdminAccountAsyncHelper( request, handler, context ); } );
284 }
285
GetAdminAccountAsyncHelper(const GetAdminAccountRequest & request,const GetAdminAccountResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const286 void FMSClient::GetAdminAccountAsyncHelper(const GetAdminAccountRequest& request, const GetAdminAccountResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
287 {
288 handler(this, request, GetAdminAccount(request), context);
289 }
290
GetAppsList(const GetAppsListRequest & request) const291 GetAppsListOutcome FMSClient::GetAppsList(const GetAppsListRequest& request) const
292 {
293 Aws::Http::URI uri = m_uri;
294 return GetAppsListOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
295 }
296
GetAppsListCallable(const GetAppsListRequest & request) const297 GetAppsListOutcomeCallable FMSClient::GetAppsListCallable(const GetAppsListRequest& request) const
298 {
299 auto task = Aws::MakeShared< std::packaged_task< GetAppsListOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAppsList(request); } );
300 auto packagedFunction = [task]() { (*task)(); };
301 m_executor->Submit(packagedFunction);
302 return task->get_future();
303 }
304
GetAppsListAsync(const GetAppsListRequest & request,const GetAppsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const305 void FMSClient::GetAppsListAsync(const GetAppsListRequest& request, const GetAppsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
306 {
307 m_executor->Submit( [this, request, handler, context](){ this->GetAppsListAsyncHelper( request, handler, context ); } );
308 }
309
GetAppsListAsyncHelper(const GetAppsListRequest & request,const GetAppsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const310 void FMSClient::GetAppsListAsyncHelper(const GetAppsListRequest& request, const GetAppsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
311 {
312 handler(this, request, GetAppsList(request), context);
313 }
314
GetComplianceDetail(const GetComplianceDetailRequest & request) const315 GetComplianceDetailOutcome FMSClient::GetComplianceDetail(const GetComplianceDetailRequest& request) const
316 {
317 Aws::Http::URI uri = m_uri;
318 return GetComplianceDetailOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
319 }
320
GetComplianceDetailCallable(const GetComplianceDetailRequest & request) const321 GetComplianceDetailOutcomeCallable FMSClient::GetComplianceDetailCallable(const GetComplianceDetailRequest& request) const
322 {
323 auto task = Aws::MakeShared< std::packaged_task< GetComplianceDetailOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetComplianceDetail(request); } );
324 auto packagedFunction = [task]() { (*task)(); };
325 m_executor->Submit(packagedFunction);
326 return task->get_future();
327 }
328
GetComplianceDetailAsync(const GetComplianceDetailRequest & request,const GetComplianceDetailResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const329 void FMSClient::GetComplianceDetailAsync(const GetComplianceDetailRequest& request, const GetComplianceDetailResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
330 {
331 m_executor->Submit( [this, request, handler, context](){ this->GetComplianceDetailAsyncHelper( request, handler, context ); } );
332 }
333
GetComplianceDetailAsyncHelper(const GetComplianceDetailRequest & request,const GetComplianceDetailResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const334 void FMSClient::GetComplianceDetailAsyncHelper(const GetComplianceDetailRequest& request, const GetComplianceDetailResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
335 {
336 handler(this, request, GetComplianceDetail(request), context);
337 }
338
GetNotificationChannel(const GetNotificationChannelRequest & request) const339 GetNotificationChannelOutcome FMSClient::GetNotificationChannel(const GetNotificationChannelRequest& request) const
340 {
341 Aws::Http::URI uri = m_uri;
342 return GetNotificationChannelOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
343 }
344
GetNotificationChannelCallable(const GetNotificationChannelRequest & request) const345 GetNotificationChannelOutcomeCallable FMSClient::GetNotificationChannelCallable(const GetNotificationChannelRequest& request) const
346 {
347 auto task = Aws::MakeShared< std::packaged_task< GetNotificationChannelOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetNotificationChannel(request); } );
348 auto packagedFunction = [task]() { (*task)(); };
349 m_executor->Submit(packagedFunction);
350 return task->get_future();
351 }
352
GetNotificationChannelAsync(const GetNotificationChannelRequest & request,const GetNotificationChannelResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const353 void FMSClient::GetNotificationChannelAsync(const GetNotificationChannelRequest& request, const GetNotificationChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
354 {
355 m_executor->Submit( [this, request, handler, context](){ this->GetNotificationChannelAsyncHelper( request, handler, context ); } );
356 }
357
GetNotificationChannelAsyncHelper(const GetNotificationChannelRequest & request,const GetNotificationChannelResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const358 void FMSClient::GetNotificationChannelAsyncHelper(const GetNotificationChannelRequest& request, const GetNotificationChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
359 {
360 handler(this, request, GetNotificationChannel(request), context);
361 }
362
GetPolicy(const GetPolicyRequest & request) const363 GetPolicyOutcome FMSClient::GetPolicy(const GetPolicyRequest& request) const
364 {
365 Aws::Http::URI uri = m_uri;
366 return GetPolicyOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
367 }
368
GetPolicyCallable(const GetPolicyRequest & request) const369 GetPolicyOutcomeCallable FMSClient::GetPolicyCallable(const GetPolicyRequest& request) const
370 {
371 auto task = Aws::MakeShared< std::packaged_task< GetPolicyOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetPolicy(request); } );
372 auto packagedFunction = [task]() { (*task)(); };
373 m_executor->Submit(packagedFunction);
374 return task->get_future();
375 }
376
GetPolicyAsync(const GetPolicyRequest & request,const GetPolicyResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const377 void FMSClient::GetPolicyAsync(const GetPolicyRequest& request, const GetPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
378 {
379 m_executor->Submit( [this, request, handler, context](){ this->GetPolicyAsyncHelper( request, handler, context ); } );
380 }
381
GetPolicyAsyncHelper(const GetPolicyRequest & request,const GetPolicyResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const382 void FMSClient::GetPolicyAsyncHelper(const GetPolicyRequest& request, const GetPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
383 {
384 handler(this, request, GetPolicy(request), context);
385 }
386
GetProtectionStatus(const GetProtectionStatusRequest & request) const387 GetProtectionStatusOutcome FMSClient::GetProtectionStatus(const GetProtectionStatusRequest& request) const
388 {
389 Aws::Http::URI uri = m_uri;
390 return GetProtectionStatusOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
391 }
392
GetProtectionStatusCallable(const GetProtectionStatusRequest & request) const393 GetProtectionStatusOutcomeCallable FMSClient::GetProtectionStatusCallable(const GetProtectionStatusRequest& request) const
394 {
395 auto task = Aws::MakeShared< std::packaged_task< GetProtectionStatusOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetProtectionStatus(request); } );
396 auto packagedFunction = [task]() { (*task)(); };
397 m_executor->Submit(packagedFunction);
398 return task->get_future();
399 }
400
GetProtectionStatusAsync(const GetProtectionStatusRequest & request,const GetProtectionStatusResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const401 void FMSClient::GetProtectionStatusAsync(const GetProtectionStatusRequest& request, const GetProtectionStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
402 {
403 m_executor->Submit( [this, request, handler, context](){ this->GetProtectionStatusAsyncHelper( request, handler, context ); } );
404 }
405
GetProtectionStatusAsyncHelper(const GetProtectionStatusRequest & request,const GetProtectionStatusResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const406 void FMSClient::GetProtectionStatusAsyncHelper(const GetProtectionStatusRequest& request, const GetProtectionStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
407 {
408 handler(this, request, GetProtectionStatus(request), context);
409 }
410
GetProtocolsList(const GetProtocolsListRequest & request) const411 GetProtocolsListOutcome FMSClient::GetProtocolsList(const GetProtocolsListRequest& request) const
412 {
413 Aws::Http::URI uri = m_uri;
414 return GetProtocolsListOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
415 }
416
GetProtocolsListCallable(const GetProtocolsListRequest & request) const417 GetProtocolsListOutcomeCallable FMSClient::GetProtocolsListCallable(const GetProtocolsListRequest& request) const
418 {
419 auto task = Aws::MakeShared< std::packaged_task< GetProtocolsListOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetProtocolsList(request); } );
420 auto packagedFunction = [task]() { (*task)(); };
421 m_executor->Submit(packagedFunction);
422 return task->get_future();
423 }
424
GetProtocolsListAsync(const GetProtocolsListRequest & request,const GetProtocolsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const425 void FMSClient::GetProtocolsListAsync(const GetProtocolsListRequest& request, const GetProtocolsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
426 {
427 m_executor->Submit( [this, request, handler, context](){ this->GetProtocolsListAsyncHelper( request, handler, context ); } );
428 }
429
GetProtocolsListAsyncHelper(const GetProtocolsListRequest & request,const GetProtocolsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const430 void FMSClient::GetProtocolsListAsyncHelper(const GetProtocolsListRequest& request, const GetProtocolsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
431 {
432 handler(this, request, GetProtocolsList(request), context);
433 }
434
GetViolationDetails(const GetViolationDetailsRequest & request) const435 GetViolationDetailsOutcome FMSClient::GetViolationDetails(const GetViolationDetailsRequest& request) const
436 {
437 Aws::Http::URI uri = m_uri;
438 return GetViolationDetailsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
439 }
440
GetViolationDetailsCallable(const GetViolationDetailsRequest & request) const441 GetViolationDetailsOutcomeCallable FMSClient::GetViolationDetailsCallable(const GetViolationDetailsRequest& request) const
442 {
443 auto task = Aws::MakeShared< std::packaged_task< GetViolationDetailsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetViolationDetails(request); } );
444 auto packagedFunction = [task]() { (*task)(); };
445 m_executor->Submit(packagedFunction);
446 return task->get_future();
447 }
448
GetViolationDetailsAsync(const GetViolationDetailsRequest & request,const GetViolationDetailsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const449 void FMSClient::GetViolationDetailsAsync(const GetViolationDetailsRequest& request, const GetViolationDetailsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
450 {
451 m_executor->Submit( [this, request, handler, context](){ this->GetViolationDetailsAsyncHelper( request, handler, context ); } );
452 }
453
GetViolationDetailsAsyncHelper(const GetViolationDetailsRequest & request,const GetViolationDetailsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const454 void FMSClient::GetViolationDetailsAsyncHelper(const GetViolationDetailsRequest& request, const GetViolationDetailsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
455 {
456 handler(this, request, GetViolationDetails(request), context);
457 }
458
ListAppsLists(const ListAppsListsRequest & request) const459 ListAppsListsOutcome FMSClient::ListAppsLists(const ListAppsListsRequest& request) const
460 {
461 Aws::Http::URI uri = m_uri;
462 return ListAppsListsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
463 }
464
ListAppsListsCallable(const ListAppsListsRequest & request) const465 ListAppsListsOutcomeCallable FMSClient::ListAppsListsCallable(const ListAppsListsRequest& request) const
466 {
467 auto task = Aws::MakeShared< std::packaged_task< ListAppsListsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListAppsLists(request); } );
468 auto packagedFunction = [task]() { (*task)(); };
469 m_executor->Submit(packagedFunction);
470 return task->get_future();
471 }
472
ListAppsListsAsync(const ListAppsListsRequest & request,const ListAppsListsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const473 void FMSClient::ListAppsListsAsync(const ListAppsListsRequest& request, const ListAppsListsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
474 {
475 m_executor->Submit( [this, request, handler, context](){ this->ListAppsListsAsyncHelper( request, handler, context ); } );
476 }
477
ListAppsListsAsyncHelper(const ListAppsListsRequest & request,const ListAppsListsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const478 void FMSClient::ListAppsListsAsyncHelper(const ListAppsListsRequest& request, const ListAppsListsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
479 {
480 handler(this, request, ListAppsLists(request), context);
481 }
482
ListComplianceStatus(const ListComplianceStatusRequest & request) const483 ListComplianceStatusOutcome FMSClient::ListComplianceStatus(const ListComplianceStatusRequest& request) const
484 {
485 Aws::Http::URI uri = m_uri;
486 return ListComplianceStatusOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
487 }
488
ListComplianceStatusCallable(const ListComplianceStatusRequest & request) const489 ListComplianceStatusOutcomeCallable FMSClient::ListComplianceStatusCallable(const ListComplianceStatusRequest& request) const
490 {
491 auto task = Aws::MakeShared< std::packaged_task< ListComplianceStatusOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListComplianceStatus(request); } );
492 auto packagedFunction = [task]() { (*task)(); };
493 m_executor->Submit(packagedFunction);
494 return task->get_future();
495 }
496
ListComplianceStatusAsync(const ListComplianceStatusRequest & request,const ListComplianceStatusResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const497 void FMSClient::ListComplianceStatusAsync(const ListComplianceStatusRequest& request, const ListComplianceStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
498 {
499 m_executor->Submit( [this, request, handler, context](){ this->ListComplianceStatusAsyncHelper( request, handler, context ); } );
500 }
501
ListComplianceStatusAsyncHelper(const ListComplianceStatusRequest & request,const ListComplianceStatusResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const502 void FMSClient::ListComplianceStatusAsyncHelper(const ListComplianceStatusRequest& request, const ListComplianceStatusResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
503 {
504 handler(this, request, ListComplianceStatus(request), context);
505 }
506
ListMemberAccounts(const ListMemberAccountsRequest & request) const507 ListMemberAccountsOutcome FMSClient::ListMemberAccounts(const ListMemberAccountsRequest& request) const
508 {
509 Aws::Http::URI uri = m_uri;
510 return ListMemberAccountsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
511 }
512
ListMemberAccountsCallable(const ListMemberAccountsRequest & request) const513 ListMemberAccountsOutcomeCallable FMSClient::ListMemberAccountsCallable(const ListMemberAccountsRequest& request) const
514 {
515 auto task = Aws::MakeShared< std::packaged_task< ListMemberAccountsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListMemberAccounts(request); } );
516 auto packagedFunction = [task]() { (*task)(); };
517 m_executor->Submit(packagedFunction);
518 return task->get_future();
519 }
520
ListMemberAccountsAsync(const ListMemberAccountsRequest & request,const ListMemberAccountsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const521 void FMSClient::ListMemberAccountsAsync(const ListMemberAccountsRequest& request, const ListMemberAccountsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
522 {
523 m_executor->Submit( [this, request, handler, context](){ this->ListMemberAccountsAsyncHelper( request, handler, context ); } );
524 }
525
ListMemberAccountsAsyncHelper(const ListMemberAccountsRequest & request,const ListMemberAccountsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const526 void FMSClient::ListMemberAccountsAsyncHelper(const ListMemberAccountsRequest& request, const ListMemberAccountsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
527 {
528 handler(this, request, ListMemberAccounts(request), context);
529 }
530
ListPolicies(const ListPoliciesRequest & request) const531 ListPoliciesOutcome FMSClient::ListPolicies(const ListPoliciesRequest& request) const
532 {
533 Aws::Http::URI uri = m_uri;
534 return ListPoliciesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
535 }
536
ListPoliciesCallable(const ListPoliciesRequest & request) const537 ListPoliciesOutcomeCallable FMSClient::ListPoliciesCallable(const ListPoliciesRequest& request) const
538 {
539 auto task = Aws::MakeShared< std::packaged_task< ListPoliciesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListPolicies(request); } );
540 auto packagedFunction = [task]() { (*task)(); };
541 m_executor->Submit(packagedFunction);
542 return task->get_future();
543 }
544
ListPoliciesAsync(const ListPoliciesRequest & request,const ListPoliciesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const545 void FMSClient::ListPoliciesAsync(const ListPoliciesRequest& request, const ListPoliciesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
546 {
547 m_executor->Submit( [this, request, handler, context](){ this->ListPoliciesAsyncHelper( request, handler, context ); } );
548 }
549
ListPoliciesAsyncHelper(const ListPoliciesRequest & request,const ListPoliciesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const550 void FMSClient::ListPoliciesAsyncHelper(const ListPoliciesRequest& request, const ListPoliciesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
551 {
552 handler(this, request, ListPolicies(request), context);
553 }
554
ListProtocolsLists(const ListProtocolsListsRequest & request) const555 ListProtocolsListsOutcome FMSClient::ListProtocolsLists(const ListProtocolsListsRequest& request) const
556 {
557 Aws::Http::URI uri = m_uri;
558 return ListProtocolsListsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
559 }
560
ListProtocolsListsCallable(const ListProtocolsListsRequest & request) const561 ListProtocolsListsOutcomeCallable FMSClient::ListProtocolsListsCallable(const ListProtocolsListsRequest& request) const
562 {
563 auto task = Aws::MakeShared< std::packaged_task< ListProtocolsListsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListProtocolsLists(request); } );
564 auto packagedFunction = [task]() { (*task)(); };
565 m_executor->Submit(packagedFunction);
566 return task->get_future();
567 }
568
ListProtocolsListsAsync(const ListProtocolsListsRequest & request,const ListProtocolsListsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const569 void FMSClient::ListProtocolsListsAsync(const ListProtocolsListsRequest& request, const ListProtocolsListsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
570 {
571 m_executor->Submit( [this, request, handler, context](){ this->ListProtocolsListsAsyncHelper( request, handler, context ); } );
572 }
573
ListProtocolsListsAsyncHelper(const ListProtocolsListsRequest & request,const ListProtocolsListsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const574 void FMSClient::ListProtocolsListsAsyncHelper(const ListProtocolsListsRequest& request, const ListProtocolsListsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
575 {
576 handler(this, request, ListProtocolsLists(request), context);
577 }
578
ListTagsForResource(const ListTagsForResourceRequest & request) const579 ListTagsForResourceOutcome FMSClient::ListTagsForResource(const ListTagsForResourceRequest& request) const
580 {
581 Aws::Http::URI uri = m_uri;
582 return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
583 }
584
ListTagsForResourceCallable(const ListTagsForResourceRequest & request) const585 ListTagsForResourceOutcomeCallable FMSClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const
586 {
587 auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } );
588 auto packagedFunction = [task]() { (*task)(); };
589 m_executor->Submit(packagedFunction);
590 return task->get_future();
591 }
592
ListTagsForResourceAsync(const ListTagsForResourceRequest & request,const ListTagsForResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const593 void FMSClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
594 {
595 m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } );
596 }
597
ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest & request,const ListTagsForResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const598 void FMSClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
599 {
600 handler(this, request, ListTagsForResource(request), context);
601 }
602
PutAppsList(const PutAppsListRequest & request) const603 PutAppsListOutcome FMSClient::PutAppsList(const PutAppsListRequest& request) const
604 {
605 Aws::Http::URI uri = m_uri;
606 return PutAppsListOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
607 }
608
PutAppsListCallable(const PutAppsListRequest & request) const609 PutAppsListOutcomeCallable FMSClient::PutAppsListCallable(const PutAppsListRequest& request) const
610 {
611 auto task = Aws::MakeShared< std::packaged_task< PutAppsListOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->PutAppsList(request); } );
612 auto packagedFunction = [task]() { (*task)(); };
613 m_executor->Submit(packagedFunction);
614 return task->get_future();
615 }
616
PutAppsListAsync(const PutAppsListRequest & request,const PutAppsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const617 void FMSClient::PutAppsListAsync(const PutAppsListRequest& request, const PutAppsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
618 {
619 m_executor->Submit( [this, request, handler, context](){ this->PutAppsListAsyncHelper( request, handler, context ); } );
620 }
621
PutAppsListAsyncHelper(const PutAppsListRequest & request,const PutAppsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const622 void FMSClient::PutAppsListAsyncHelper(const PutAppsListRequest& request, const PutAppsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
623 {
624 handler(this, request, PutAppsList(request), context);
625 }
626
PutNotificationChannel(const PutNotificationChannelRequest & request) const627 PutNotificationChannelOutcome FMSClient::PutNotificationChannel(const PutNotificationChannelRequest& request) const
628 {
629 Aws::Http::URI uri = m_uri;
630 return PutNotificationChannelOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
631 }
632
PutNotificationChannelCallable(const PutNotificationChannelRequest & request) const633 PutNotificationChannelOutcomeCallable FMSClient::PutNotificationChannelCallable(const PutNotificationChannelRequest& request) const
634 {
635 auto task = Aws::MakeShared< std::packaged_task< PutNotificationChannelOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->PutNotificationChannel(request); } );
636 auto packagedFunction = [task]() { (*task)(); };
637 m_executor->Submit(packagedFunction);
638 return task->get_future();
639 }
640
PutNotificationChannelAsync(const PutNotificationChannelRequest & request,const PutNotificationChannelResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const641 void FMSClient::PutNotificationChannelAsync(const PutNotificationChannelRequest& request, const PutNotificationChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
642 {
643 m_executor->Submit( [this, request, handler, context](){ this->PutNotificationChannelAsyncHelper( request, handler, context ); } );
644 }
645
PutNotificationChannelAsyncHelper(const PutNotificationChannelRequest & request,const PutNotificationChannelResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const646 void FMSClient::PutNotificationChannelAsyncHelper(const PutNotificationChannelRequest& request, const PutNotificationChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
647 {
648 handler(this, request, PutNotificationChannel(request), context);
649 }
650
PutPolicy(const PutPolicyRequest & request) const651 PutPolicyOutcome FMSClient::PutPolicy(const PutPolicyRequest& request) const
652 {
653 Aws::Http::URI uri = m_uri;
654 return PutPolicyOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
655 }
656
PutPolicyCallable(const PutPolicyRequest & request) const657 PutPolicyOutcomeCallable FMSClient::PutPolicyCallable(const PutPolicyRequest& request) const
658 {
659 auto task = Aws::MakeShared< std::packaged_task< PutPolicyOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->PutPolicy(request); } );
660 auto packagedFunction = [task]() { (*task)(); };
661 m_executor->Submit(packagedFunction);
662 return task->get_future();
663 }
664
PutPolicyAsync(const PutPolicyRequest & request,const PutPolicyResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const665 void FMSClient::PutPolicyAsync(const PutPolicyRequest& request, const PutPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
666 {
667 m_executor->Submit( [this, request, handler, context](){ this->PutPolicyAsyncHelper( request, handler, context ); } );
668 }
669
PutPolicyAsyncHelper(const PutPolicyRequest & request,const PutPolicyResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const670 void FMSClient::PutPolicyAsyncHelper(const PutPolicyRequest& request, const PutPolicyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
671 {
672 handler(this, request, PutPolicy(request), context);
673 }
674
PutProtocolsList(const PutProtocolsListRequest & request) const675 PutProtocolsListOutcome FMSClient::PutProtocolsList(const PutProtocolsListRequest& request) const
676 {
677 Aws::Http::URI uri = m_uri;
678 return PutProtocolsListOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
679 }
680
PutProtocolsListCallable(const PutProtocolsListRequest & request) const681 PutProtocolsListOutcomeCallable FMSClient::PutProtocolsListCallable(const PutProtocolsListRequest& request) const
682 {
683 auto task = Aws::MakeShared< std::packaged_task< PutProtocolsListOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->PutProtocolsList(request); } );
684 auto packagedFunction = [task]() { (*task)(); };
685 m_executor->Submit(packagedFunction);
686 return task->get_future();
687 }
688
PutProtocolsListAsync(const PutProtocolsListRequest & request,const PutProtocolsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const689 void FMSClient::PutProtocolsListAsync(const PutProtocolsListRequest& request, const PutProtocolsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
690 {
691 m_executor->Submit( [this, request, handler, context](){ this->PutProtocolsListAsyncHelper( request, handler, context ); } );
692 }
693
PutProtocolsListAsyncHelper(const PutProtocolsListRequest & request,const PutProtocolsListResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const694 void FMSClient::PutProtocolsListAsyncHelper(const PutProtocolsListRequest& request, const PutProtocolsListResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
695 {
696 handler(this, request, PutProtocolsList(request), context);
697 }
698
TagResource(const TagResourceRequest & request) const699 TagResourceOutcome FMSClient::TagResource(const TagResourceRequest& request) const
700 {
701 Aws::Http::URI uri = m_uri;
702 return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
703 }
704
TagResourceCallable(const TagResourceRequest & request) const705 TagResourceOutcomeCallable FMSClient::TagResourceCallable(const TagResourceRequest& request) const
706 {
707 auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } );
708 auto packagedFunction = [task]() { (*task)(); };
709 m_executor->Submit(packagedFunction);
710 return task->get_future();
711 }
712
TagResourceAsync(const TagResourceRequest & request,const TagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const713 void FMSClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
714 {
715 m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } );
716 }
717
TagResourceAsyncHelper(const TagResourceRequest & request,const TagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const718 void FMSClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
719 {
720 handler(this, request, TagResource(request), context);
721 }
722
UntagResource(const UntagResourceRequest & request) const723 UntagResourceOutcome FMSClient::UntagResource(const UntagResourceRequest& request) const
724 {
725 Aws::Http::URI uri = m_uri;
726 return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
727 }
728
UntagResourceCallable(const UntagResourceRequest & request) const729 UntagResourceOutcomeCallable FMSClient::UntagResourceCallable(const UntagResourceRequest& request) const
730 {
731 auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } );
732 auto packagedFunction = [task]() { (*task)(); };
733 m_executor->Submit(packagedFunction);
734 return task->get_future();
735 }
736
UntagResourceAsync(const UntagResourceRequest & request,const UntagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const737 void FMSClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
738 {
739 m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } );
740 }
741
UntagResourceAsyncHelper(const UntagResourceRequest & request,const UntagResourceResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const742 void FMSClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
743 {
744 handler(this, request, UntagResource(request), context);
745 }
746
747