AWS SDK for C++  1.9.158
AWS SDK for C++
ElasticInferenceClient.h
Go to the documentation of this file.
1 
6 #pragma once
22 #include <future>
23 #include <functional>
24 
25 namespace Aws
26 {
27 
28 namespace Http
29 {
30  class HttpClient;
31  class HttpClientFactory;
32 } // namespace Http
33 
34 namespace Utils
35 {
36  template< typename R, typename E> class Outcome;
37 namespace Threading
38 {
39  class Executor;
40 } // namespace Threading
41 } // namespace Utils
42 
43 namespace Auth
44 {
45  class AWSCredentials;
46  class AWSCredentialsProvider;
47 } // namespace Auth
48 
49 namespace Client
50 {
51  class RetryStrategy;
52 } // namespace Client
53 
54 namespace ElasticInference
55 {
56 
57 namespace Model
58 {
63  class TagResourceRequest;
65 
72 
73  typedef std::future<DescribeAcceleratorOfferingsOutcome> DescribeAcceleratorOfferingsOutcomeCallable;
74  typedef std::future<DescribeAcceleratorTypesOutcome> DescribeAcceleratorTypesOutcomeCallable;
75  typedef std::future<DescribeAcceleratorsOutcome> DescribeAcceleratorsOutcomeCallable;
76  typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
77  typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
78  typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
79 } // namespace Model
80 
82 
83  typedef std::function<void(const ElasticInferenceClient*, const Model::DescribeAcceleratorOfferingsRequest&, const Model::DescribeAcceleratorOfferingsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeAcceleratorOfferingsResponseReceivedHandler;
84  typedef std::function<void(const ElasticInferenceClient*, const Model::DescribeAcceleratorTypesRequest&, const Model::DescribeAcceleratorTypesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeAcceleratorTypesResponseReceivedHandler;
85  typedef std::function<void(const ElasticInferenceClient*, const Model::DescribeAcceleratorsRequest&, const Model::DescribeAcceleratorsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeAcceleratorsResponseReceivedHandler;
86  typedef std::function<void(const ElasticInferenceClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
87  typedef std::function<void(const ElasticInferenceClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
88  typedef std::function<void(const ElasticInferenceClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
89 
94  {
95  public:
97 
103 
109 
114  ElasticInferenceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
116 
118 
119 
127 
137 
146  virtual void DescribeAcceleratorOfferingsAsync(const Model::DescribeAcceleratorOfferingsRequest& request, const DescribeAcceleratorOfferingsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
147 
156 
167 
177  virtual void DescribeAcceleratorTypesAsync(const Model::DescribeAcceleratorTypesRequest& request, const DescribeAcceleratorTypesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
178 
186 
196 
205  virtual void DescribeAcceleratorsAsync(const Model::DescribeAcceleratorsRequest& request, const DescribeAcceleratorsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
206 
214 
224 
233  virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
234 
242 
252 
261  virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
262 
270 
280 
289  virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
290 
291 
292  void OverrideEndpoint(const Aws::String& endpoint);
293  private:
294  void init(const Aws::Client::ClientConfiguration& clientConfiguration);
295  void DescribeAcceleratorOfferingsAsyncHelper(const Model::DescribeAcceleratorOfferingsRequest& request, const DescribeAcceleratorOfferingsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
296  void DescribeAcceleratorTypesAsyncHelper(const Model::DescribeAcceleratorTypesRequest& request, const DescribeAcceleratorTypesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
297  void DescribeAcceleratorsAsyncHelper(const Model::DescribeAcceleratorsRequest& request, const DescribeAcceleratorsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
298  void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
299  void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
300  void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
301 
302  Aws::String m_uri;
303  Aws::String m_configScheme;
304  std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
305  };
306 
307 } // namespace ElasticInference
308 } // namespace Aws
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::ElasticInference::DescribeAcceleratorTypesResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::DescribeAcceleratorTypesRequest &, const Model::DescribeAcceleratorTypesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeAcceleratorTypesResponseReceivedHandler
Definition: ElasticInferenceClient.h:84
Aws::ElasticInference::Model::ListTagsForResourceOutcome
Aws::Utils::Outcome< ListTagsForResourceResult, ElasticInferenceError > ListTagsForResourceOutcome
Definition: ElasticInferenceClient.h:69
Aws::ElasticInference::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:22
AWSError.h
Aws::ElasticInference::ElasticInferenceClient::UntagResourceAsync
virtual void UntagResourceAsync(const Model::UntagResourceRequest &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::ElasticInference::ElasticInferenceClient::UntagResource
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
Aws::ElasticInference::Model::UntagResourceOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
Definition: ElasticInferenceClient.h:78
Aws::ElasticInference::ElasticInferenceClient
Definition: ElasticInferenceClient.h:94
Aws::ElasticInference::ElasticInferenceClient::ElasticInferenceClient
ElasticInferenceClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::ElasticInference::Model::DescribeAcceleratorOfferingsOutcomeCallable
std::future< DescribeAcceleratorOfferingsOutcome > DescribeAcceleratorOfferingsOutcomeCallable
Definition: ElasticInferenceClient.h:73
Aws::ElasticInference::Model::TagResourceOutcome
Aws::Utils::Outcome< TagResourceResult, ElasticInferenceError > TagResourceOutcome
Definition: ElasticInferenceClient.h:70
Aws::ElasticInference::ElasticInferenceClient::ListTagsForResource
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
DescribeAcceleratorsResult.h
Aws::ElasticInference::ElasticInferenceClient::BASECLASS
Aws::Client::AWSJsonClient BASECLASS
Definition: ElasticInferenceClient.h:96
Aws::ElasticInference::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:27
Aws::ElasticInference::Model::TagResourceOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
Definition: ElasticInferenceClient.h:77
Aws::ElasticInference::Model::UntagResourceOutcome
Aws::Utils::Outcome< UntagResourceResult, ElasticInferenceError > UntagResourceOutcome
Definition: ElasticInferenceClient.h:71
Aws::ElasticInference::ListTagsForResourceResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
Definition: ElasticInferenceClient.h:86
Aws::ElasticInference::ElasticInferenceClient::OverrideEndpoint
void OverrideEndpoint(const Aws::String &endpoint)
AsyncCallerContext.h
Aws::ElasticInference::ElasticInferenceClient::UntagResourceCallable
virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest &request) const
ListTagsForResourceResult.h
DescribeAcceleratorOfferingsResult.h
Aws::ElasticInference::ElasticInferenceClient::TagResourceCallable
virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest &request) const
Aws::ElasticInference::Model::DescribeAcceleratorsRequest
Definition: DescribeAcceleratorsRequest.h:24
Aws::ElasticInference::Model::DescribeAcceleratorTypesRequest
Definition: DescribeAcceleratorTypesRequest.h:20
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorsCallable
virtual Model::DescribeAcceleratorsOutcomeCallable DescribeAcceleratorsCallable(const Model::DescribeAcceleratorsRequest &request) const
Aws::ElasticInference::Model::DescribeAcceleratorsOutcomeCallable
std::future< DescribeAcceleratorsOutcome > DescribeAcceleratorsOutcomeCallable
Definition: ElasticInferenceClient.h:75
Aws::Client::ClientConfiguration
Definition: ClientConfiguration.h:53
Aws::ElasticInference::UntagResourceResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
Definition: ElasticInferenceClient.h:88
Aws::ElasticInference::ElasticInferenceClient::TagResource
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
Aws::ElasticInference::Model::DescribeAcceleratorsOutcome
Aws::Utils::Outcome< DescribeAcceleratorsResult, ElasticInferenceError > DescribeAcceleratorsOutcome
Definition: ElasticInferenceClient.h:68
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorTypesAsync
virtual void DescribeAcceleratorTypesAsync(const Model::DescribeAcceleratorTypesRequest &request, const DescribeAcceleratorTypesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::Auth::AWSCredentials
Definition: AWSCredentials.h:19
Aws::ElasticInference::ElasticInferenceClient::~ElasticInferenceClient
virtual ~ElasticInferenceClient()
Aws::ElasticInference::Model::DescribeAcceleratorTypesOutcomeCallable
std::future< DescribeAcceleratorTypesOutcome > DescribeAcceleratorTypesOutcomeCallable
Definition: ElasticInferenceClient.h:74
Aws::ElasticInference::TagResourceResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
Definition: ElasticInferenceClient.h:87
AWSString.h
Aws::ElasticInference::ElasticInferenceClient::ListTagsForResourceAsync
virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorOfferingsCallable
virtual Model::DescribeAcceleratorOfferingsOutcomeCallable DescribeAcceleratorOfferingsCallable(const Model::DescribeAcceleratorOfferingsRequest &request) const
Aws::Client::AWSJsonClient
Definition: AWSClient.h:338
Aws::ElasticInference::Model::DescribeAcceleratorOfferingsRequest
Definition: DescribeAcceleratorOfferingsRequest.h:24
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorTypesCallable
virtual Model::DescribeAcceleratorTypesOutcomeCallable DescribeAcceleratorTypesCallable(const Model::DescribeAcceleratorTypesRequest &request) const
Aws::ElasticInference::Model::DescribeAcceleratorOfferingsOutcome
Aws::Utils::Outcome< DescribeAcceleratorOfferingsResult, ElasticInferenceError > DescribeAcceleratorOfferingsOutcome
Definition: ElasticInferenceClient.h:64
Aws::ElasticInference::ElasticInferenceClient::ElasticInferenceClient
ElasticInferenceClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::ElasticInference::Model::ListTagsForResourceOutcomeCallable
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
Definition: ElasticInferenceClient.h:76
Aws::ElasticInference::Model::DescribeAcceleratorTypesOutcome
Aws::Utils::Outcome< DescribeAcceleratorTypesResult, ElasticInferenceError > DescribeAcceleratorTypesOutcome
Definition: ElasticInferenceClient.h:67
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorOfferings
virtual Model::DescribeAcceleratorOfferingsOutcome DescribeAcceleratorOfferings(const Model::DescribeAcceleratorOfferingsRequest &request) const
ElasticInference_EXPORTS.h
Aws::ElasticInference::ElasticInferenceClient::ListTagsForResourceCallable
virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest &request) const
ClientConfiguration.h
Aws::ElasticInference::Model::TagResourceRequest
Definition: TagResourceRequest.h:23
Aws::ElasticInference::ElasticInferenceClient::TagResourceAsync
virtual void TagResourceAsync(const Model::TagResourceRequest &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
AWS_ELASTICINFERENCE_API
#define AWS_ELASTICINFERENCE_API
Definition: ElasticInference_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
HttpTypes.h
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorTypes
virtual Model::DescribeAcceleratorTypesOutcome DescribeAcceleratorTypes(const Model::DescribeAcceleratorTypesRequest &request) const
Aws::Utils::Outcome
Definition: Outcome.h:26
Aws::ElasticInference::ElasticInferenceClient::ElasticInferenceClient
ElasticInferenceClient(const Aws::Client::ClientConfiguration &clientConfiguration=Aws::Client::ClientConfiguration())
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticInference::DescribeAcceleratorsResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::DescribeAcceleratorsRequest &, const Model::DescribeAcceleratorsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeAcceleratorsResponseReceivedHandler
Definition: ElasticInferenceClient.h:85
AWSClient.h
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorsAsync
virtual void DescribeAcceleratorsAsync(const Model::DescribeAcceleratorsRequest &request, const DescribeAcceleratorsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
UntagResourceResult.h
TagResourceResult.h
ElasticInferenceErrors.h
Aws::ElasticInference::ElasticInferenceClient::DescribeAccelerators
virtual Model::DescribeAcceleratorsOutcome DescribeAccelerators(const Model::DescribeAcceleratorsRequest &request) const
Aws::ElasticInference::DescribeAcceleratorOfferingsResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::DescribeAcceleratorOfferingsRequest &, const Model::DescribeAcceleratorOfferingsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeAcceleratorOfferingsResponseReceivedHandler
Definition: ElasticInferenceClient.h:81
DescribeAcceleratorTypesResult.h
JsonSerializer.h
Aws::ElasticInference::ElasticInferenceClient::DescribeAcceleratorOfferingsAsync
virtual void DescribeAcceleratorOfferingsAsync(const Model::DescribeAcceleratorOfferingsRequest &request, const DescribeAcceleratorOfferingsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const