AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SageMakerRuntimeClient.h
1
6#pragma once
7#include <aws/core/client/AWSClient.h>
8#include <aws/core/client/AWSClientAsyncCRTP.h>
9#include <aws/core/client/ClientConfiguration.h>
10#include <aws/core/utils/json/JsonSerializer.h>
11#include <aws/sagemaker-runtime/SageMakerRuntimePaginationBase.h>
12#include <aws/sagemaker-runtime/SageMakerRuntimeServiceClientModel.h>
13#include <aws/sagemaker-runtime/SageMakerRuntimeWaiter.h>
14#include <aws/sagemaker-runtime/SageMakerRuntime_EXPORTS.h>
15
16namespace Aws {
17namespace SageMakerRuntime {
21class AWS_SAGEMAKERRUNTIME_API SageMakerRuntimeClient : public Aws::Client::AWSJsonClient,
22 public Aws::Client::ClientWithAsyncTemplateMethods<SageMakerRuntimeClient>,
23 public SageMakerRuntimePaginationBase<SageMakerRuntimeClient>,
24 public SageMakerRuntimeWaiter<SageMakerRuntimeClient> {
25 public:
27 static const char* GetServiceName();
28 static const char* GetAllocationTag();
29
32
39 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> endpointProvider = nullptr);
40
46 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> endpointProvider = nullptr,
49
54 SageMakerRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
55 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> endpointProvider = nullptr,
58
59 /* Legacy constructors due deprecation */
65
71
76 SageMakerRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
77 const Aws::Client::ClientConfiguration& clientConfiguration);
78
79 /* End of legacy constructors due deprecation */
81
107
111 template <typename InvokeEndpointRequestT = Model::InvokeEndpointRequest>
112 Model::InvokeEndpointOutcomeCallable InvokeEndpointCallable(const InvokeEndpointRequestT& request) const {
113 return SubmitCallable(&SageMakerRuntimeClient::InvokeEndpoint, request);
114 }
115
120 template <typename InvokeEndpointRequestT = Model::InvokeEndpointRequest>
121 void InvokeEndpointAsync(const InvokeEndpointRequestT& request, const InvokeEndpointResponseReceivedHandler& handler,
122 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
123 return SubmitAsync(&SageMakerRuntimeClient::InvokeEndpoint, request, handler, context);
124 }
125
146
151 template <typename InvokeEndpointAsyncRequestT = Model::InvokeEndpointAsyncRequest>
152 Model::InvokeEndpointAsyncOutcomeCallable InvokeEndpointAsyncCallable(const InvokeEndpointAsyncRequestT& request) const {
153 return SubmitCallable(&SageMakerRuntimeClient::InvokeEndpointAsync, request);
154 }
155
160 template <typename InvokeEndpointAsyncRequestT = Model::InvokeEndpointAsyncRequest>
161 void InvokeEndpointAsyncAsync(const InvokeEndpointAsyncRequestT& request, const InvokeEndpointAsyncResponseReceivedHandler& handler,
162 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
163 return SubmitAsync(&SageMakerRuntimeClient::InvokeEndpointAsync, request, handler, context);
164 }
165
199
204 template <typename InvokeEndpointWithResponseStreamRequestT = Model::InvokeEndpointWithResponseStreamRequest>
206 InvokeEndpointWithResponseStreamRequestT& request) const {
207 return SubmitCallable(&SageMakerRuntimeClient::InvokeEndpointWithResponseStream, request);
208 }
209
214 template <typename InvokeEndpointWithResponseStreamRequestT = Model::InvokeEndpointWithResponseStreamRequest>
215 void InvokeEndpointWithResponseStreamAsync(InvokeEndpointWithResponseStreamRequestT& request,
217 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
218 return SubmitAsync(&SageMakerRuntimeClient::InvokeEndpointWithResponseStream, request, handler, context);
219 }
220
221 virtual void OverrideEndpoint(const Aws::String& endpoint);
222 virtual std::shared_ptr<SageMakerRuntimeEndpointProviderBase>& accessEndpointProvider();
223
224 private:
226 void init(const SageMakerRuntimeClientConfiguration& clientConfiguration);
227
229
230 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request,
231 const std::function<void(Aws::Endpoint::ResolveEndpointOutcome&)>& resolveUri,
232 Aws::Http::HttpMethod httpMethod) const;
233
234 SageMakerRuntimeClientConfiguration m_clientConfiguration;
235 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> m_endpointProvider;
236};
237
238} // namespace SageMakerRuntime
239} // namespace Aws
SageMakerRuntimeClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< SageMakerRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration &clientConfiguration=Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration())
virtual std::shared_ptr< SageMakerRuntimeEndpointProviderBase > & accessEndpointProvider()
Model::InvokeEndpointAsyncOutcomeCallable InvokeEndpointAsyncCallable(const InvokeEndpointAsyncRequestT &request) const
SageMakerRuntimeClientConfiguration ClientConfigurationType
virtual Model::InvokeEndpointWithResponseStreamOutcome InvokeEndpointWithResponseStream(Model::InvokeEndpointWithResponseStreamRequest &request) const
SageMakerRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
SageMakerRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< SageMakerRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration &clientConfiguration=Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration())
SageMakerRuntimeClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::InvokeEndpointWithResponseStreamOutcomeCallable InvokeEndpointWithResponseStreamCallable(InvokeEndpointWithResponseStreamRequestT &request) const
void InvokeEndpointAsync(const InvokeEndpointRequestT &request, const InvokeEndpointResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void InvokeEndpointAsyncAsync(const InvokeEndpointAsyncRequestT &request, const InvokeEndpointAsyncResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
SageMakerRuntimeClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
void InvokeEndpointWithResponseStreamAsync(InvokeEndpointWithResponseStreamRequestT &request, const InvokeEndpointWithResponseStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::InvokeEndpointOutcome InvokeEndpoint(const Model::InvokeEndpointRequest &request) const
virtual void OverrideEndpoint(const Aws::String &endpoint)
Model::InvokeEndpointOutcomeCallable InvokeEndpointCallable(const InvokeEndpointRequestT &request) const
virtual Model::InvokeEndpointAsyncOutcome InvokeEndpointAsync(const Model::InvokeEndpointAsyncRequest &request) const
SageMakerRuntimeClient(const Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration &clientConfiguration=Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration(), std::shared_ptr< SageMakerRuntimeEndpointProviderBase > endpointProvider=nullptr)
SageMakerRuntimeEndpointProvider EndpointProviderType
std::future< InvokeEndpointWithResponseStreamOutcome > InvokeEndpointWithResponseStreamOutcomeCallable
std::future< InvokeEndpointOutcome > InvokeEndpointOutcomeCallable
std::future< InvokeEndpointAsyncOutcome > InvokeEndpointAsyncOutcomeCallable
std::function< void(const SageMakerRuntimeClient *, const Model::InvokeEndpointAsyncRequest &, const Model::InvokeEndpointAsyncOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeEndpointAsyncResponseReceivedHandler
std::function< void(const SageMakerRuntimeClient *, const Model::InvokeEndpointWithResponseStreamRequest &, const Model::InvokeEndpointWithResponseStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeEndpointWithResponseStreamResponseReceivedHandler
std::function< void(const SageMakerRuntimeClient *, const Model::InvokeEndpointRequest &, Model::InvokeEndpointOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeEndpointResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String