AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ElasticInferenceClient.h
1
6#pragma once
7#include <aws/elastic-inference/ElasticInference_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/elastic-inference/ElasticInferenceServiceClientModel.h>
13
14namespace Aws
15{
16namespace ElasticInference
17{
22 class AWS_ELASTICINFERENCE_API ElasticInferenceClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<ElasticInferenceClient>
23 {
24 public:
26 static const char* GetServiceName();
27 static const char* GetAllocationTag();
28
31
37 std::shared_ptr<ElasticInferenceEndpointProviderBase> endpointProvider = nullptr);
38
44 std::shared_ptr<ElasticInferenceEndpointProviderBase> endpointProvider = nullptr,
46
51 ElasticInferenceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
52 std::shared_ptr<ElasticInferenceEndpointProviderBase> endpointProvider = nullptr,
54
55
56 /* Legacy constructors due deprecation */
62
68 const Aws::Client::ClientConfiguration& clientConfiguration);
69
74 ElasticInferenceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
75 const Aws::Client::ClientConfiguration& clientConfiguration);
76
77 /* End of legacy constructors due deprecation */
79
88
92 template<typename DescribeAcceleratorOfferingsRequestT = Model::DescribeAcceleratorOfferingsRequest>
93 Model::DescribeAcceleratorOfferingsOutcomeCallable DescribeAcceleratorOfferingsCallable(const DescribeAcceleratorOfferingsRequestT& request) const
94 {
95 return SubmitCallable(&ElasticInferenceClient::DescribeAcceleratorOfferings, request);
96 }
97
101 template<typename DescribeAcceleratorOfferingsRequestT = Model::DescribeAcceleratorOfferingsRequest>
102 void DescribeAcceleratorOfferingsAsync(const DescribeAcceleratorOfferingsRequestT& request, const DescribeAcceleratorOfferingsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
103 {
104 return SubmitAsync(&ElasticInferenceClient::DescribeAcceleratorOfferings, request, handler, context);
105 }
106
115
119 template<typename DescribeAcceleratorTypesRequestT = Model::DescribeAcceleratorTypesRequest>
120 Model::DescribeAcceleratorTypesOutcomeCallable DescribeAcceleratorTypesCallable(const DescribeAcceleratorTypesRequestT& request = {}) const
121 {
122 return SubmitCallable(&ElasticInferenceClient::DescribeAcceleratorTypes, request);
123 }
124
128 template<typename DescribeAcceleratorTypesRequestT = Model::DescribeAcceleratorTypesRequest>
129 void DescribeAcceleratorTypesAsync(const DescribeAcceleratorTypesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const DescribeAcceleratorTypesRequestT& request = {}) const
130 {
131 return SubmitAsync(&ElasticInferenceClient::DescribeAcceleratorTypes, request, handler, context);
132 }
133
142
146 template<typename DescribeAcceleratorsRequestT = Model::DescribeAcceleratorsRequest>
147 Model::DescribeAcceleratorsOutcomeCallable DescribeAcceleratorsCallable(const DescribeAcceleratorsRequestT& request = {}) const
148 {
149 return SubmitCallable(&ElasticInferenceClient::DescribeAccelerators, request);
150 }
151
155 template<typename DescribeAcceleratorsRequestT = Model::DescribeAcceleratorsRequest>
156 void DescribeAcceleratorsAsync(const DescribeAcceleratorsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const DescribeAcceleratorsRequestT& request = {}) const
157 {
158 return SubmitAsync(&ElasticInferenceClient::DescribeAccelerators, request, handler, context);
159 }
160
169
173 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
174 Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const
175 {
176 return SubmitCallable(&ElasticInferenceClient::ListTagsForResource, request);
177 }
178
182 template<typename ListTagsForResourceRequestT = Model::ListTagsForResourceRequest>
183 void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
184 {
185 return SubmitAsync(&ElasticInferenceClient::ListTagsForResource, request, handler, context);
186 }
187
196
200 template<typename TagResourceRequestT = Model::TagResourceRequest>
201 Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const
202 {
203 return SubmitCallable(&ElasticInferenceClient::TagResource, request);
204 }
205
209 template<typename TagResourceRequestT = Model::TagResourceRequest>
210 void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
211 {
212 return SubmitAsync(&ElasticInferenceClient::TagResource, request, handler, context);
213 }
214
223
227 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
228 Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const
229 {
230 return SubmitCallable(&ElasticInferenceClient::UntagResource, request);
231 }
232
236 template<typename UntagResourceRequestT = Model::UntagResourceRequest>
237 void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
238 {
239 return SubmitAsync(&ElasticInferenceClient::UntagResource, request, handler, context);
240 }
241
242
243 void OverrideEndpoint(const Aws::String& endpoint);
244 std::shared_ptr<ElasticInferenceEndpointProviderBase>& accessEndpointProvider();
245 private:
247 void init(const ElasticInferenceClientConfiguration& clientConfiguration);
248
249 ElasticInferenceClientConfiguration m_clientConfiguration;
250 std::shared_ptr<ElasticInferenceEndpointProviderBase> m_endpointProvider;
251 };
252
253} // namespace ElasticInference
254} // namespace Aws
ElasticInferenceClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
ElasticInferenceClient(const Aws::ElasticInference::ElasticInferenceClientConfiguration &clientConfiguration=Aws::ElasticInference::ElasticInferenceClientConfiguration(), std::shared_ptr< ElasticInferenceEndpointProviderBase > endpointProvider=nullptr)
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest &request) const
void UntagResourceAsync(const UntagResourceRequestT &request, const UntagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::DescribeAcceleratorTypesOutcome DescribeAcceleratorTypes(const Model::DescribeAcceleratorTypesRequest &request={}) const
ElasticInferenceClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
void DescribeAcceleratorTypesAsync(const DescribeAcceleratorTypesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeAcceleratorTypesRequestT &request={}) const
ElasticInferenceClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT &request) const
virtual Model::DescribeAcceleratorOfferingsOutcome DescribeAcceleratorOfferings(const Model::DescribeAcceleratorOfferingsRequest &request) const
void OverrideEndpoint(const Aws::String &endpoint)
ElasticInferenceClientConfiguration ClientConfigurationType
void ListTagsForResourceAsync(const ListTagsForResourceRequestT &request, const ListTagsForResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void TagResourceAsync(const TagResourceRequestT &request, const TagResourceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void DescribeAcceleratorsAsync(const DescribeAcceleratorsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeAcceleratorsRequestT &request={}) const
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest &request) const
Model::DescribeAcceleratorTypesOutcomeCallable DescribeAcceleratorTypesCallable(const DescribeAcceleratorTypesRequestT &request={}) const
void DescribeAcceleratorOfferingsAsync(const DescribeAcceleratorOfferingsRequestT &request, const DescribeAcceleratorOfferingsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::shared_ptr< ElasticInferenceEndpointProviderBase > & accessEndpointProvider()
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest &request) const
virtual Model::DescribeAcceleratorsOutcome DescribeAccelerators(const Model::DescribeAcceleratorsRequest &request={}) const
Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT &request) const
ElasticInferenceClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< ElasticInferenceEndpointProviderBase > endpointProvider=nullptr, const Aws::ElasticInference::ElasticInferenceClientConfiguration &clientConfiguration=Aws::ElasticInference::ElasticInferenceClientConfiguration())
ElasticInferenceEndpointProvider EndpointProviderType
ElasticInferenceClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< ElasticInferenceEndpointProviderBase > endpointProvider=nullptr, const Aws::ElasticInference::ElasticInferenceClientConfiguration &clientConfiguration=Aws::ElasticInference::ElasticInferenceClientConfiguration())
Model::DescribeAcceleratorsOutcomeCallable DescribeAcceleratorsCallable(const DescribeAcceleratorsRequestT &request={}) const
Model::DescribeAcceleratorOfferingsOutcomeCallable DescribeAcceleratorOfferingsCallable(const DescribeAcceleratorOfferingsRequestT &request) const
Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT &request) const
std::future< ListTagsForResourceOutcome > ListTagsForResourceOutcomeCallable
std::future< TagResourceOutcome > TagResourceOutcomeCallable
std::future< DescribeAcceleratorTypesOutcome > DescribeAcceleratorTypesOutcomeCallable
std::future< DescribeAcceleratorOfferingsOutcome > DescribeAcceleratorOfferingsOutcomeCallable
std::future< DescribeAcceleratorsOutcome > DescribeAcceleratorsOutcomeCallable
std::future< UntagResourceOutcome > UntagResourceOutcomeCallable
std::function< void(const ElasticInferenceClient *, const Model::ListTagsForResourceRequest &, const Model::ListTagsForResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListTagsForResourceResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::DescribeAcceleratorTypesRequest &, const Model::DescribeAcceleratorTypesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeAcceleratorTypesResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::TagResourceRequest &, const Model::TagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > TagResourceResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::DescribeAcceleratorsRequest &, const Model::DescribeAcceleratorsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeAcceleratorsResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::DescribeAcceleratorOfferingsRequest &, const Model::DescribeAcceleratorOfferingsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeAcceleratorOfferingsResponseReceivedHandler
std::function< void(const ElasticInferenceClient *, const Model::UntagResourceRequest &, const Model::UntagResourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UntagResourceResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String