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/acm/ACMClient.h>
21 #include <aws/acm/ACMEndpoint.h>
22 #include <aws/acm/ACMErrorMarshaller.h>
23 #include <aws/acm/model/AddTagsToCertificateRequest.h>
24 #include <aws/acm/model/DeleteCertificateRequest.h>
25 #include <aws/acm/model/DescribeCertificateRequest.h>
26 #include <aws/acm/model/ExportCertificateRequest.h>
27 #include <aws/acm/model/GetCertificateRequest.h>
28 #include <aws/acm/model/ImportCertificateRequest.h>
29 #include <aws/acm/model/ListCertificatesRequest.h>
30 #include <aws/acm/model/ListTagsForCertificateRequest.h>
31 #include <aws/acm/model/PutAccountConfigurationRequest.h>
32 #include <aws/acm/model/RemoveTagsFromCertificateRequest.h>
33 #include <aws/acm/model/RenewCertificateRequest.h>
34 #include <aws/acm/model/RequestCertificateRequest.h>
35 #include <aws/acm/model/ResendValidationEmailRequest.h>
36 #include <aws/acm/model/UpdateCertificateOptionsRequest.h>
37
38 using namespace Aws;
39 using namespace Aws::Auth;
40 using namespace Aws::Client;
41 using namespace Aws::ACM;
42 using namespace Aws::ACM::Model;
43 using namespace Aws::Http;
44 using namespace Aws::Utils::Json;
45
46 static const char* SERVICE_NAME = "acm";
47 static const char* ALLOCATION_TAG = "ACMClient";
48
49
ACMClient(const Client::ClientConfiguration & clientConfiguration)50 ACMClient::ACMClient(const Client::ClientConfiguration& clientConfiguration) :
51 BASECLASS(clientConfiguration,
52 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
53 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
54 Aws::MakeShared<ACMErrorMarshaller>(ALLOCATION_TAG)),
55 m_executor(clientConfiguration.executor)
56 {
57 init(clientConfiguration);
58 }
59
ACMClient(const AWSCredentials & credentials,const Client::ClientConfiguration & clientConfiguration)60 ACMClient::ACMClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
61 BASECLASS(clientConfiguration,
62 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
63 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
64 Aws::MakeShared<ACMErrorMarshaller>(ALLOCATION_TAG)),
65 m_executor(clientConfiguration.executor)
66 {
67 init(clientConfiguration);
68 }
69
ACMClient(const std::shared_ptr<AWSCredentialsProvider> & credentialsProvider,const Client::ClientConfiguration & clientConfiguration)70 ACMClient::ACMClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
71 const Client::ClientConfiguration& clientConfiguration) :
72 BASECLASS(clientConfiguration,
73 Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
74 SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
75 Aws::MakeShared<ACMErrorMarshaller>(ALLOCATION_TAG)),
76 m_executor(clientConfiguration.executor)
77 {
78 init(clientConfiguration);
79 }
80
~ACMClient()81 ACMClient::~ACMClient()
82 {
83 }
84
init(const Client::ClientConfiguration & config)85 void ACMClient::init(const Client::ClientConfiguration& config)
86 {
87 SetServiceClientName("ACM");
88 m_configScheme = SchemeMapper::ToString(config.scheme);
89 if (config.endpointOverride.empty())
90 {
91 m_uri = m_configScheme + "://" + ACMEndpoint::ForRegion(config.region, config.useDualStack);
92 }
93 else
94 {
95 OverrideEndpoint(config.endpointOverride);
96 }
97 }
98
OverrideEndpoint(const Aws::String & endpoint)99 void ACMClient::OverrideEndpoint(const Aws::String& endpoint)
100 {
101 if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
102 {
103 m_uri = endpoint;
104 }
105 else
106 {
107 m_uri = m_configScheme + "://" + endpoint;
108 }
109 }
110
AddTagsToCertificate(const AddTagsToCertificateRequest & request) const111 AddTagsToCertificateOutcome ACMClient::AddTagsToCertificate(const AddTagsToCertificateRequest& request) const
112 {
113 Aws::Http::URI uri = m_uri;
114 return AddTagsToCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
115 }
116
AddTagsToCertificateCallable(const AddTagsToCertificateRequest & request) const117 AddTagsToCertificateOutcomeCallable ACMClient::AddTagsToCertificateCallable(const AddTagsToCertificateRequest& request) const
118 {
119 auto task = Aws::MakeShared< std::packaged_task< AddTagsToCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AddTagsToCertificate(request); } );
120 auto packagedFunction = [task]() { (*task)(); };
121 m_executor->Submit(packagedFunction);
122 return task->get_future();
123 }
124
AddTagsToCertificateAsync(const AddTagsToCertificateRequest & request,const AddTagsToCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const125 void ACMClient::AddTagsToCertificateAsync(const AddTagsToCertificateRequest& request, const AddTagsToCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
126 {
127 m_executor->Submit( [this, request, handler, context](){ this->AddTagsToCertificateAsyncHelper( request, handler, context ); } );
128 }
129
AddTagsToCertificateAsyncHelper(const AddTagsToCertificateRequest & request,const AddTagsToCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const130 void ACMClient::AddTagsToCertificateAsyncHelper(const AddTagsToCertificateRequest& request, const AddTagsToCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
131 {
132 handler(this, request, AddTagsToCertificate(request), context);
133 }
134
DeleteCertificate(const DeleteCertificateRequest & request) const135 DeleteCertificateOutcome ACMClient::DeleteCertificate(const DeleteCertificateRequest& request) const
136 {
137 Aws::Http::URI uri = m_uri;
138 return DeleteCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
139 }
140
DeleteCertificateCallable(const DeleteCertificateRequest & request) const141 DeleteCertificateOutcomeCallable ACMClient::DeleteCertificateCallable(const DeleteCertificateRequest& request) const
142 {
143 auto task = Aws::MakeShared< std::packaged_task< DeleteCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteCertificate(request); } );
144 auto packagedFunction = [task]() { (*task)(); };
145 m_executor->Submit(packagedFunction);
146 return task->get_future();
147 }
148
DeleteCertificateAsync(const DeleteCertificateRequest & request,const DeleteCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const149 void ACMClient::DeleteCertificateAsync(const DeleteCertificateRequest& request, const DeleteCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
150 {
151 m_executor->Submit( [this, request, handler, context](){ this->DeleteCertificateAsyncHelper( request, handler, context ); } );
152 }
153
DeleteCertificateAsyncHelper(const DeleteCertificateRequest & request,const DeleteCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const154 void ACMClient::DeleteCertificateAsyncHelper(const DeleteCertificateRequest& request, const DeleteCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
155 {
156 handler(this, request, DeleteCertificate(request), context);
157 }
158
DescribeCertificate(const DescribeCertificateRequest & request) const159 DescribeCertificateOutcome ACMClient::DescribeCertificate(const DescribeCertificateRequest& request) const
160 {
161 Aws::Http::URI uri = m_uri;
162 return DescribeCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
163 }
164
DescribeCertificateCallable(const DescribeCertificateRequest & request) const165 DescribeCertificateOutcomeCallable ACMClient::DescribeCertificateCallable(const DescribeCertificateRequest& request) const
166 {
167 auto task = Aws::MakeShared< std::packaged_task< DescribeCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeCertificate(request); } );
168 auto packagedFunction = [task]() { (*task)(); };
169 m_executor->Submit(packagedFunction);
170 return task->get_future();
171 }
172
DescribeCertificateAsync(const DescribeCertificateRequest & request,const DescribeCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const173 void ACMClient::DescribeCertificateAsync(const DescribeCertificateRequest& request, const DescribeCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
174 {
175 m_executor->Submit( [this, request, handler, context](){ this->DescribeCertificateAsyncHelper( request, handler, context ); } );
176 }
177
DescribeCertificateAsyncHelper(const DescribeCertificateRequest & request,const DescribeCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const178 void ACMClient::DescribeCertificateAsyncHelper(const DescribeCertificateRequest& request, const DescribeCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
179 {
180 handler(this, request, DescribeCertificate(request), context);
181 }
182
ExportCertificate(const ExportCertificateRequest & request) const183 ExportCertificateOutcome ACMClient::ExportCertificate(const ExportCertificateRequest& request) const
184 {
185 Aws::Http::URI uri = m_uri;
186 return ExportCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
187 }
188
ExportCertificateCallable(const ExportCertificateRequest & request) const189 ExportCertificateOutcomeCallable ACMClient::ExportCertificateCallable(const ExportCertificateRequest& request) const
190 {
191 auto task = Aws::MakeShared< std::packaged_task< ExportCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ExportCertificate(request); } );
192 auto packagedFunction = [task]() { (*task)(); };
193 m_executor->Submit(packagedFunction);
194 return task->get_future();
195 }
196
ExportCertificateAsync(const ExportCertificateRequest & request,const ExportCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const197 void ACMClient::ExportCertificateAsync(const ExportCertificateRequest& request, const ExportCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
198 {
199 m_executor->Submit( [this, request, handler, context](){ this->ExportCertificateAsyncHelper( request, handler, context ); } );
200 }
201
ExportCertificateAsyncHelper(const ExportCertificateRequest & request,const ExportCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const202 void ACMClient::ExportCertificateAsyncHelper(const ExportCertificateRequest& request, const ExportCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
203 {
204 handler(this, request, ExportCertificate(request), context);
205 }
206
GetAccountConfiguration() const207 GetAccountConfigurationOutcome ACMClient::GetAccountConfiguration() const
208 {
209 Aws::StringStream ss;
210 ss << m_uri << "/";
211 return GetAccountConfigurationOutcome(MakeRequest(ss.str(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "GetAccountConfiguration"));
212 }
213
GetAccountConfigurationCallable() const214 GetAccountConfigurationOutcomeCallable ACMClient::GetAccountConfigurationCallable() const
215 {
216 auto task = Aws::MakeShared< std::packaged_task< GetAccountConfigurationOutcome() > >(ALLOCATION_TAG, [this](){ return this->GetAccountConfiguration(); } );
217 auto packagedFunction = [task]() { (*task)(); };
218 m_executor->Submit(packagedFunction);
219 return task->get_future();
220 }
221
GetAccountConfigurationAsync(const GetAccountConfigurationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const222 void ACMClient::GetAccountConfigurationAsync(const GetAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
223 {
224 m_executor->Submit( [this, handler, context](){ this->GetAccountConfigurationAsyncHelper( handler, context ); } );
225 }
226
GetAccountConfigurationAsyncHelper(const GetAccountConfigurationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const227 void ACMClient::GetAccountConfigurationAsyncHelper(const GetAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
228 {
229 handler(this, GetAccountConfiguration(), context);
230 }
231
GetCertificate(const GetCertificateRequest & request) const232 GetCertificateOutcome ACMClient::GetCertificate(const GetCertificateRequest& request) const
233 {
234 Aws::Http::URI uri = m_uri;
235 return GetCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
236 }
237
GetCertificateCallable(const GetCertificateRequest & request) const238 GetCertificateOutcomeCallable ACMClient::GetCertificateCallable(const GetCertificateRequest& request) const
239 {
240 auto task = Aws::MakeShared< std::packaged_task< GetCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetCertificate(request); } );
241 auto packagedFunction = [task]() { (*task)(); };
242 m_executor->Submit(packagedFunction);
243 return task->get_future();
244 }
245
GetCertificateAsync(const GetCertificateRequest & request,const GetCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const246 void ACMClient::GetCertificateAsync(const GetCertificateRequest& request, const GetCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
247 {
248 m_executor->Submit( [this, request, handler, context](){ this->GetCertificateAsyncHelper( request, handler, context ); } );
249 }
250
GetCertificateAsyncHelper(const GetCertificateRequest & request,const GetCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const251 void ACMClient::GetCertificateAsyncHelper(const GetCertificateRequest& request, const GetCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
252 {
253 handler(this, request, GetCertificate(request), context);
254 }
255
ImportCertificate(const ImportCertificateRequest & request) const256 ImportCertificateOutcome ACMClient::ImportCertificate(const ImportCertificateRequest& request) const
257 {
258 Aws::Http::URI uri = m_uri;
259 return ImportCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
260 }
261
ImportCertificateCallable(const ImportCertificateRequest & request) const262 ImportCertificateOutcomeCallable ACMClient::ImportCertificateCallable(const ImportCertificateRequest& request) const
263 {
264 auto task = Aws::MakeShared< std::packaged_task< ImportCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ImportCertificate(request); } );
265 auto packagedFunction = [task]() { (*task)(); };
266 m_executor->Submit(packagedFunction);
267 return task->get_future();
268 }
269
ImportCertificateAsync(const ImportCertificateRequest & request,const ImportCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const270 void ACMClient::ImportCertificateAsync(const ImportCertificateRequest& request, const ImportCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
271 {
272 m_executor->Submit( [this, request, handler, context](){ this->ImportCertificateAsyncHelper( request, handler, context ); } );
273 }
274
ImportCertificateAsyncHelper(const ImportCertificateRequest & request,const ImportCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const275 void ACMClient::ImportCertificateAsyncHelper(const ImportCertificateRequest& request, const ImportCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
276 {
277 handler(this, request, ImportCertificate(request), context);
278 }
279
ListCertificates(const ListCertificatesRequest & request) const280 ListCertificatesOutcome ACMClient::ListCertificates(const ListCertificatesRequest& request) const
281 {
282 Aws::Http::URI uri = m_uri;
283 return ListCertificatesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
284 }
285
ListCertificatesCallable(const ListCertificatesRequest & request) const286 ListCertificatesOutcomeCallable ACMClient::ListCertificatesCallable(const ListCertificatesRequest& request) const
287 {
288 auto task = Aws::MakeShared< std::packaged_task< ListCertificatesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListCertificates(request); } );
289 auto packagedFunction = [task]() { (*task)(); };
290 m_executor->Submit(packagedFunction);
291 return task->get_future();
292 }
293
ListCertificatesAsync(const ListCertificatesRequest & request,const ListCertificatesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const294 void ACMClient::ListCertificatesAsync(const ListCertificatesRequest& request, const ListCertificatesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
295 {
296 m_executor->Submit( [this, request, handler, context](){ this->ListCertificatesAsyncHelper( request, handler, context ); } );
297 }
298
ListCertificatesAsyncHelper(const ListCertificatesRequest & request,const ListCertificatesResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const299 void ACMClient::ListCertificatesAsyncHelper(const ListCertificatesRequest& request, const ListCertificatesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
300 {
301 handler(this, request, ListCertificates(request), context);
302 }
303
ListTagsForCertificate(const ListTagsForCertificateRequest & request) const304 ListTagsForCertificateOutcome ACMClient::ListTagsForCertificate(const ListTagsForCertificateRequest& request) const
305 {
306 Aws::Http::URI uri = m_uri;
307 return ListTagsForCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
308 }
309
ListTagsForCertificateCallable(const ListTagsForCertificateRequest & request) const310 ListTagsForCertificateOutcomeCallable ACMClient::ListTagsForCertificateCallable(const ListTagsForCertificateRequest& request) const
311 {
312 auto task = Aws::MakeShared< std::packaged_task< ListTagsForCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForCertificate(request); } );
313 auto packagedFunction = [task]() { (*task)(); };
314 m_executor->Submit(packagedFunction);
315 return task->get_future();
316 }
317
ListTagsForCertificateAsync(const ListTagsForCertificateRequest & request,const ListTagsForCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const318 void ACMClient::ListTagsForCertificateAsync(const ListTagsForCertificateRequest& request, const ListTagsForCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
319 {
320 m_executor->Submit( [this, request, handler, context](){ this->ListTagsForCertificateAsyncHelper( request, handler, context ); } );
321 }
322
ListTagsForCertificateAsyncHelper(const ListTagsForCertificateRequest & request,const ListTagsForCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const323 void ACMClient::ListTagsForCertificateAsyncHelper(const ListTagsForCertificateRequest& request, const ListTagsForCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
324 {
325 handler(this, request, ListTagsForCertificate(request), context);
326 }
327
PutAccountConfiguration(const PutAccountConfigurationRequest & request) const328 PutAccountConfigurationOutcome ACMClient::PutAccountConfiguration(const PutAccountConfigurationRequest& request) const
329 {
330 Aws::Http::URI uri = m_uri;
331 return PutAccountConfigurationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
332 }
333
PutAccountConfigurationCallable(const PutAccountConfigurationRequest & request) const334 PutAccountConfigurationOutcomeCallable ACMClient::PutAccountConfigurationCallable(const PutAccountConfigurationRequest& request) const
335 {
336 auto task = Aws::MakeShared< std::packaged_task< PutAccountConfigurationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->PutAccountConfiguration(request); } );
337 auto packagedFunction = [task]() { (*task)(); };
338 m_executor->Submit(packagedFunction);
339 return task->get_future();
340 }
341
PutAccountConfigurationAsync(const PutAccountConfigurationRequest & request,const PutAccountConfigurationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const342 void ACMClient::PutAccountConfigurationAsync(const PutAccountConfigurationRequest& request, const PutAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
343 {
344 m_executor->Submit( [this, request, handler, context](){ this->PutAccountConfigurationAsyncHelper( request, handler, context ); } );
345 }
346
PutAccountConfigurationAsyncHelper(const PutAccountConfigurationRequest & request,const PutAccountConfigurationResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const347 void ACMClient::PutAccountConfigurationAsyncHelper(const PutAccountConfigurationRequest& request, const PutAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
348 {
349 handler(this, request, PutAccountConfiguration(request), context);
350 }
351
RemoveTagsFromCertificate(const RemoveTagsFromCertificateRequest & request) const352 RemoveTagsFromCertificateOutcome ACMClient::RemoveTagsFromCertificate(const RemoveTagsFromCertificateRequest& request) const
353 {
354 Aws::Http::URI uri = m_uri;
355 return RemoveTagsFromCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
356 }
357
RemoveTagsFromCertificateCallable(const RemoveTagsFromCertificateRequest & request) const358 RemoveTagsFromCertificateOutcomeCallable ACMClient::RemoveTagsFromCertificateCallable(const RemoveTagsFromCertificateRequest& request) const
359 {
360 auto task = Aws::MakeShared< std::packaged_task< RemoveTagsFromCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->RemoveTagsFromCertificate(request); } );
361 auto packagedFunction = [task]() { (*task)(); };
362 m_executor->Submit(packagedFunction);
363 return task->get_future();
364 }
365
RemoveTagsFromCertificateAsync(const RemoveTagsFromCertificateRequest & request,const RemoveTagsFromCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const366 void ACMClient::RemoveTagsFromCertificateAsync(const RemoveTagsFromCertificateRequest& request, const RemoveTagsFromCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
367 {
368 m_executor->Submit( [this, request, handler, context](){ this->RemoveTagsFromCertificateAsyncHelper( request, handler, context ); } );
369 }
370
RemoveTagsFromCertificateAsyncHelper(const RemoveTagsFromCertificateRequest & request,const RemoveTagsFromCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const371 void ACMClient::RemoveTagsFromCertificateAsyncHelper(const RemoveTagsFromCertificateRequest& request, const RemoveTagsFromCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
372 {
373 handler(this, request, RemoveTagsFromCertificate(request), context);
374 }
375
RenewCertificate(const RenewCertificateRequest & request) const376 RenewCertificateOutcome ACMClient::RenewCertificate(const RenewCertificateRequest& request) const
377 {
378 Aws::Http::URI uri = m_uri;
379 return RenewCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
380 }
381
RenewCertificateCallable(const RenewCertificateRequest & request) const382 RenewCertificateOutcomeCallable ACMClient::RenewCertificateCallable(const RenewCertificateRequest& request) const
383 {
384 auto task = Aws::MakeShared< std::packaged_task< RenewCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->RenewCertificate(request); } );
385 auto packagedFunction = [task]() { (*task)(); };
386 m_executor->Submit(packagedFunction);
387 return task->get_future();
388 }
389
RenewCertificateAsync(const RenewCertificateRequest & request,const RenewCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const390 void ACMClient::RenewCertificateAsync(const RenewCertificateRequest& request, const RenewCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
391 {
392 m_executor->Submit( [this, request, handler, context](){ this->RenewCertificateAsyncHelper( request, handler, context ); } );
393 }
394
RenewCertificateAsyncHelper(const RenewCertificateRequest & request,const RenewCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const395 void ACMClient::RenewCertificateAsyncHelper(const RenewCertificateRequest& request, const RenewCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
396 {
397 handler(this, request, RenewCertificate(request), context);
398 }
399
RequestCertificate(const RequestCertificateRequest & request) const400 RequestCertificateOutcome ACMClient::RequestCertificate(const RequestCertificateRequest& request) const
401 {
402 Aws::Http::URI uri = m_uri;
403 return RequestCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
404 }
405
RequestCertificateCallable(const RequestCertificateRequest & request) const406 RequestCertificateOutcomeCallable ACMClient::RequestCertificateCallable(const RequestCertificateRequest& request) const
407 {
408 auto task = Aws::MakeShared< std::packaged_task< RequestCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->RequestCertificate(request); } );
409 auto packagedFunction = [task]() { (*task)(); };
410 m_executor->Submit(packagedFunction);
411 return task->get_future();
412 }
413
RequestCertificateAsync(const RequestCertificateRequest & request,const RequestCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const414 void ACMClient::RequestCertificateAsync(const RequestCertificateRequest& request, const RequestCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
415 {
416 m_executor->Submit( [this, request, handler, context](){ this->RequestCertificateAsyncHelper( request, handler, context ); } );
417 }
418
RequestCertificateAsyncHelper(const RequestCertificateRequest & request,const RequestCertificateResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const419 void ACMClient::RequestCertificateAsyncHelper(const RequestCertificateRequest& request, const RequestCertificateResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
420 {
421 handler(this, request, RequestCertificate(request), context);
422 }
423
ResendValidationEmail(const ResendValidationEmailRequest & request) const424 ResendValidationEmailOutcome ACMClient::ResendValidationEmail(const ResendValidationEmailRequest& request) const
425 {
426 Aws::Http::URI uri = m_uri;
427 return ResendValidationEmailOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
428 }
429
ResendValidationEmailCallable(const ResendValidationEmailRequest & request) const430 ResendValidationEmailOutcomeCallable ACMClient::ResendValidationEmailCallable(const ResendValidationEmailRequest& request) const
431 {
432 auto task = Aws::MakeShared< std::packaged_task< ResendValidationEmailOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ResendValidationEmail(request); } );
433 auto packagedFunction = [task]() { (*task)(); };
434 m_executor->Submit(packagedFunction);
435 return task->get_future();
436 }
437
ResendValidationEmailAsync(const ResendValidationEmailRequest & request,const ResendValidationEmailResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const438 void ACMClient::ResendValidationEmailAsync(const ResendValidationEmailRequest& request, const ResendValidationEmailResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
439 {
440 m_executor->Submit( [this, request, handler, context](){ this->ResendValidationEmailAsyncHelper( request, handler, context ); } );
441 }
442
ResendValidationEmailAsyncHelper(const ResendValidationEmailRequest & request,const ResendValidationEmailResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const443 void ACMClient::ResendValidationEmailAsyncHelper(const ResendValidationEmailRequest& request, const ResendValidationEmailResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
444 {
445 handler(this, request, ResendValidationEmail(request), context);
446 }
447
UpdateCertificateOptions(const UpdateCertificateOptionsRequest & request) const448 UpdateCertificateOptionsOutcome ACMClient::UpdateCertificateOptions(const UpdateCertificateOptionsRequest& request) const
449 {
450 Aws::Http::URI uri = m_uri;
451 return UpdateCertificateOptionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
452 }
453
UpdateCertificateOptionsCallable(const UpdateCertificateOptionsRequest & request) const454 UpdateCertificateOptionsOutcomeCallable ACMClient::UpdateCertificateOptionsCallable(const UpdateCertificateOptionsRequest& request) const
455 {
456 auto task = Aws::MakeShared< std::packaged_task< UpdateCertificateOptionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateCertificateOptions(request); } );
457 auto packagedFunction = [task]() { (*task)(); };
458 m_executor->Submit(packagedFunction);
459 return task->get_future();
460 }
461
UpdateCertificateOptionsAsync(const UpdateCertificateOptionsRequest & request,const UpdateCertificateOptionsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const462 void ACMClient::UpdateCertificateOptionsAsync(const UpdateCertificateOptionsRequest& request, const UpdateCertificateOptionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
463 {
464 m_executor->Submit( [this, request, handler, context](){ this->UpdateCertificateOptionsAsyncHelper( request, handler, context ); } );
465 }
466
UpdateCertificateOptionsAsyncHelper(const UpdateCertificateOptionsRequest & request,const UpdateCertificateOptionsResponseReceivedHandler & handler,const std::shared_ptr<const Aws::Client::AsyncCallerContext> & context) const467 void ACMClient::UpdateCertificateOptionsAsyncHelper(const UpdateCertificateOptionsRequest& request, const UpdateCertificateOptionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
468 {
469 handler(this, request, UpdateCertificateOptions(request), context);
470 }
471
472