AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CodeGuruSecurityClient.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/codeguru-security/CodeGuruSecurityServiceClientModel.h>
13
14namespace Aws
15{
16namespace CodeGuruSecurity
17{
30 class AWS_CODEGURUSECURITY_API CodeGuruSecurityClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CodeGuruSecurityClient>
31 {
32 public:
34 static const char* GetServiceName();
35 static const char* GetAllocationTag();
36
39
45 std::shared_ptr<CodeGuruSecurityEndpointProviderBase> endpointProvider = nullptr);
46
52 std::shared_ptr<CodeGuruSecurityEndpointProviderBase> endpointProvider = nullptr,
54
59 CodeGuruSecurityClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
60 std::shared_ptr<CodeGuruSecurityEndpointProviderBase> endpointProvider = nullptr,
62
63
64 /* Legacy constructors due deprecation */
70
76 const Aws::Client::ClientConfiguration& clientConfiguration);
77
82 CodeGuruSecurityClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
83 const Aws::Client::ClientConfiguration& clientConfiguration);
84
85 /* End of legacy constructors due deprecation */
87
95
99 template<typename BatchGetFindingsRequestT = Model::BatchGetFindingsRequest>
100 Model::BatchGetFindingsOutcomeCallable BatchGetFindingsCallable(const BatchGetFindingsRequestT& request) const
101 {
102 return SubmitCallable(&CodeGuruSecurityClient::BatchGetFindings, request);
103 }
104
108 template<typename BatchGetFindingsRequestT = Model::BatchGetFindingsRequest>
109 void BatchGetFindingsAsync(const BatchGetFindingsRequestT& request, const BatchGetFindingsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
110 {
111 return SubmitAsync(&CodeGuruSecurityClient::BatchGetFindings, request, handler, context);
112 }
113
121
125 template<typename CreateScanRequestT = Model::CreateScanRequest>
126 Model::CreateScanOutcomeCallable CreateScanCallable(const CreateScanRequestT& request) const
127 {
128 return SubmitCallable(&CodeGuruSecurityClient::CreateScan, request);
129 }
130
134 template<typename CreateScanRequestT = Model::CreateScanRequest>
135 void CreateScanAsync(const CreateScanRequestT& request, const CreateScanResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
136 {
137 return SubmitAsync(&CodeGuruSecurityClient::CreateScan, request, handler, context);
138 }
139
149
153 template<typename CreateUploadUrlRequestT = Model::CreateUploadUrlRequest>
154 Model::CreateUploadUrlOutcomeCallable CreateUploadUrlCallable(const CreateUploadUrlRequestT& request) const
155 {
156 return SubmitCallable(&CodeGuruSecurityClient::CreateUploadUrl, request);
157 }
158
162 template<typename CreateUploadUrlRequestT = Model::CreateUploadUrlRequest>
163 void CreateUploadUrlAsync(const CreateUploadUrlRequestT& request, const CreateUploadUrlResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
164 {
165 return SubmitAsync(&CodeGuruSecurityClient::CreateUploadUrl, request, handler, context);
166 }
167
175
179 template<typename GetAccountConfigurationRequestT = Model::GetAccountConfigurationRequest>
180 Model::GetAccountConfigurationOutcomeCallable GetAccountConfigurationCallable(const GetAccountConfigurationRequestT& request = {}) const
181 {
182 return SubmitCallable(&CodeGuruSecurityClient::GetAccountConfiguration, request);
183 }
184
188 template<typename GetAccountConfigurationRequestT = Model::GetAccountConfigurationRequest>
189 void GetAccountConfigurationAsync(const GetAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GetAccountConfigurationRequestT& request = {}) const
190 {
191 return SubmitAsync(&CodeGuruSecurityClient::GetAccountConfiguration, request, handler, context);
192 }
193
201
205 template<typename GetFindingsRequestT = Model::GetFindingsRequest>
206 Model::GetFindingsOutcomeCallable GetFindingsCallable(const GetFindingsRequestT& request) const
207 {
208 return SubmitCallable(&CodeGuruSecurityClient::GetFindings, request);
209 }
210
214 template<typename GetFindingsRequestT = Model::GetFindingsRequest>
215 void GetFindingsAsync(const GetFindingsRequestT& request, const GetFindingsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
216 {
217 return SubmitAsync(&CodeGuruSecurityClient::GetFindings, request, handler, context);
218 }
219
229
233 template<typename GetMetricsSummaryRequestT = Model::GetMetricsSummaryRequest>
234 Model::GetMetricsSummaryOutcomeCallable GetMetricsSummaryCallable(const GetMetricsSummaryRequestT& request) const
235 {
236 return SubmitCallable(&CodeGuruSecurityClient::GetMetricsSummary, request);
237 }
238
242 template<typename GetMetricsSummaryRequestT = Model::GetMetricsSummaryRequest>
243 void GetMetricsSummaryAsync(const GetMetricsSummaryRequestT& request, const GetMetricsSummaryResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
244 {
245 return SubmitAsync(&CodeGuruSecurityClient::GetMetricsSummary, request, handler, context);
246 }
247
255
259 template<typename GetScanRequestT = Model::GetScanRequest>
260 Model::GetScanOutcomeCallable GetScanCallable(const GetScanRequestT& request) const
261 {
262 return SubmitCallable(&CodeGuruSecurityClient::GetScan, request);
263 }
264
268 template<typename GetScanRequestT = Model::GetScanRequest>
269 void GetScanAsync(const GetScanRequestT& request, const GetScanResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
270 {
271 return SubmitAsync(&CodeGuruSecurityClient::GetScan, request, handler, context);
272 }
273
281
285 template<typename ListFindingsMetricsRequestT = Model::ListFindingsMetricsRequest>
286 Model::ListFindingsMetricsOutcomeCallable ListFindingsMetricsCallable(const ListFindingsMetricsRequestT& request) const
287 {
288 return SubmitCallable(&CodeGuruSecurityClient::ListFindingsMetrics, request);
289 }
290
294 template<typename ListFindingsMetricsRequestT = Model::ListFindingsMetricsRequest>
295 void ListFindingsMetricsAsync(const ListFindingsMetricsRequestT& request, const ListFindingsMetricsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
296 {
297 return SubmitAsync(&CodeGuruSecurityClient::ListFindingsMetrics, request, handler, context);
298 }
299
307
311 template<typename ListScansRequestT = Model::ListScansRequest>
312 Model::ListScansOutcomeCallable ListScansCallable(const ListScansRequestT& request = {}) const
313 {
314 return SubmitCallable(&CodeGuruSecurityClient::ListScans, request);
315 }
316
320 template<typename ListScansRequestT = Model::ListScansRequest>
321 void ListScansAsync(const ListScansResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListScansRequestT& request = {}) const
322 {
323 return SubmitAsync(&CodeGuruSecurityClient::ListScans, request, handler, context);
324 }
325
333
337 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
338 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const
339 {
340 return SubmitCallable(&CodeGuruSecurityClient::ListTagsForResource, request);
341 }
342
346 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
347 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
348 {
349 return SubmitAsync(&CodeGuruSecurityClient::ListTagsForResource, request, handler, context);
350 }
351
359
363 template<typename TagResourceRequestT = Model::TagResourceRequest>
364 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const
365 {
366 return SubmitCallable(&CodeGuruSecurityClient::TagResource, request);
367 }
368
372 template<typename TagResourceRequestT = Model::TagResourceRequest>
373 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
374 {
375 return SubmitAsync(&CodeGuruSecurityClient::TagResource, request, handler, context);
376 }
377
385
389 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
390 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const
391 {
392 return SubmitCallable(&CodeGuruSecurityClient::UntagResource, request);
393 }
394
398 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
399 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
400 {
401 return SubmitAsync(&CodeGuruSecurityClient::UntagResource, request, handler, context);
402 }
403
411
415 template<typename UpdateAccountConfigurationRequestT = Model::UpdateAccountConfigurationRequest>
416 Model::UpdateAccountConfigurationOutcomeCallable UpdateAccountConfigurationCallable(const UpdateAccountConfigurationRequestT& request) const
417 {
418 return SubmitCallable(&CodeGuruSecurityClient::UpdateAccountConfiguration, request);
419 }
420
424 template<typename UpdateAccountConfigurationRequestT = Model::UpdateAccountConfigurationRequest>
425 void UpdateAccountConfigurationAsync(const UpdateAccountConfigurationRequestT& request, const UpdateAccountConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
426 {
427 return SubmitAsync(&CodeGuruSecurityClient::UpdateAccountConfiguration, request, handler, context);
428 }
429
430
431 void OverrideEndpoint(const Aws::String& endpoint);
432 std::shared_ptr<CodeGuruSecurityEndpointProviderBase>& accessEndpointProvider();
433 private:
435 void init(const CodeGuruSecurityClientConfiguration& clientConfiguration);
436
437 CodeGuruSecurityClientConfiguration m_clientConfiguration;
438 std::shared_ptr<CodeGuruSecurityEndpointProviderBase> m_endpointProvider;
439 };
440
441} // namespace CodeGuruSecurity
442} // namespace Aws
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
Model::GetMetricsSummaryOutcomeCallable GetMetricsSummaryCallable(const GetMetricsSummaryRequestT &request) const
void TagResourceAsync(const TagResourceRequestT &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
CodeGuruSecurityClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::ListFindingsMetricsOutcome ListFindingsMetrics(const Model::ListFindingsMetricsRequest &request) const
virtual Model::ListScansOutcome ListScans(const Model::ListScansRequest &request={}) const
Model::BatchGetFindingsOutcomeCallable BatchGetFindingsCallable(const BatchGetFindingsRequestT &request) const
void ListScansAsync(const ListScansResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListScansRequestT &request={}) const
CodeGuruSecurityClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< CodeGuruSecurityEndpointProviderBase > endpointProvider=nullptr, const Aws::CodeGuruSecurity::CodeGuruSecurityClientConfiguration &clientConfiguration=Aws::CodeGuruSecurity::CodeGuruSecurityClientConfiguration())
CodeGuruSecurityClientConfiguration ClientConfigurationType
void ListFindingsMetricsAsync(const ListFindingsMetricsRequestT &request, const ListFindingsMetricsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListFindingsMetricsOutcomeCallable ListFindingsMetricsCallable(const ListFindingsMetricsRequestT &request) const
Model::CreateScanOutcomeCallable CreateScanCallable(const CreateScanRequestT &request) const
void ListTagsForResourceAsync(const ListTagsForResourceRequestT &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetScanOutcomeCallable GetScanCallable(const GetScanRequestT &request) const
Model::ListScansOutcomeCallable ListScansCallable(const ListScansRequestT &request={}) const
virtual Model::CreateScanOutcome CreateScan(const Model::CreateScanRequest &request) const
Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT &request) const
void GetFindingsAsync(const GetFindingsRequestT &request, const GetFindingsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::CreateUploadUrlOutcomeCallable CreateUploadUrlCallable(const CreateUploadUrlRequestT &request) const
CodeGuruSecurityClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< CodeGuruSecurityEndpointProviderBase > endpointProvider=nullptr, const Aws::CodeGuruSecurity::CodeGuruSecurityClientConfiguration &clientConfiguration=Aws::CodeGuruSecurity::CodeGuruSecurityClientConfiguration())
std::shared_ptr< CodeGuruSecurityEndpointProviderBase > & accessEndpointProvider()
void CreateUploadUrlAsync(const CreateUploadUrlRequestT &request, const CreateUploadUrlResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
CodeGuruSecurityClient(const Aws::CodeGuruSecurity::CodeGuruSecurityClientConfiguration &clientConfiguration=Aws::CodeGuruSecurity::CodeGuruSecurityClientConfiguration(), std::shared_ptr< CodeGuruSecurityEndpointProviderBase > endpointProvider=nullptr)
virtual Model::GetFindingsOutcome GetFindings(const Model::GetFindingsRequest &request) const
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
virtual Model::UpdateAccountConfigurationOutcome UpdateAccountConfiguration(const Model::UpdateAccountConfigurationRequest &request) const
void OverrideEndpoint(const Aws::String &endpoint)
Model::GetAccountConfigurationOutcomeCallable GetAccountConfigurationCallable(const GetAccountConfigurationRequestT &request={}) const
Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT &request) const
CodeGuruSecurityEndpointProvider EndpointProviderType
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
Model::GetFindingsOutcomeCallable GetFindingsCallable(const GetFindingsRequestT &request) const
virtual Model::BatchGetFindingsOutcome BatchGetFindings(const Model::BatchGetFindingsRequest &request) const
virtual Model::GetScanOutcome GetScan(const Model::GetScanRequest &request) const
void GetScanAsync(const GetScanRequestT &request, const GetScanResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetMetricsSummaryAsync(const GetMetricsSummaryRequestT &request, const GetMetricsSummaryResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void BatchGetFindingsAsync(const BatchGetFindingsRequestT &request, const BatchGetFindingsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::CreateUploadUrlOutcome CreateUploadUrl(const Model::CreateUploadUrlRequest &request) const
virtual Model::GetAccountConfigurationOutcome GetAccountConfiguration(const Model::GetAccountConfigurationRequest &request={}) const
Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT &request) const
void UntagResourceAsync(const UntagResourceRequestT &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
CodeGuruSecurityClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::UpdateAccountConfigurationOutcomeCallable UpdateAccountConfigurationCallable(const UpdateAccountConfigurationRequestT &request) const
void CreateScanAsync(const CreateScanRequestT &request, const CreateScanResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void UpdateAccountConfigurationAsync(const UpdateAccountConfigurationRequestT &request, const UpdateAccountConfigurationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void GetAccountConfigurationAsync(const GetAccountConfigurationResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GetAccountConfigurationRequestT &request={}) const
CodeGuruSecurityClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
virtual Model::GetMetricsSummaryOutcome GetMetricsSummary(const Model::GetMetricsSummaryRequest &request) const
std::future< ListScansOutcome > ListScansOutcomeCallable
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
std::future< GetScanOutcome > GetScanOutcomeCallable
std::future< GetAccountConfigurationOutcome > GetAccountConfigurationOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
std::future< BatchGetFindingsOutcome > BatchGetFindingsOutcomeCallable
std::future< GetMetricsSummaryOutcome > GetMetricsSummaryOutcomeCallable
std::future< CreateScanOutcome > CreateScanOutcomeCallable
std::future< UpdateAccountConfigurationOutcome > UpdateAccountConfigurationOutcomeCallable
std::future< GetFindingsOutcome > GetFindingsOutcomeCallable
std::future< CreateUploadUrlOutcome > CreateUploadUrlOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
std::future< ListFindingsMetricsOutcome > ListFindingsMetricsOutcomeCallable
std::function< void(const CodeGuruSecurityClient *, const Model::CreateUploadUrlRequest &, const Model::CreateUploadUrlOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateUploadUrlResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::UpdateAccountConfigurationRequest &, const Model::UpdateAccountConfigurationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateAccountConfigurationResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::CreateScanRequest &, const Model::CreateScanOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateScanResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::BatchGetFindingsRequest &, const Model::BatchGetFindingsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > BatchGetFindingsResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::GetAccountConfigurationRequest &, const Model::GetAccountConfigurationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetAccountConfigurationResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::ListScansRequest &, const Model::ListScansOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListScansResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::GetScanRequest &, const Model::GetScanOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetScanResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::GetFindingsRequest &, const Model::GetFindingsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetFindingsResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::ListFindingsMetricsRequest &, const Model::ListFindingsMetricsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListFindingsMetricsResponseReceivedHandler
std::function< void(const CodeGuruSecurityClient *, const Model::GetMetricsSummaryRequest &, const Model::GetMetricsSummaryOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetMetricsSummaryResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String