AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SageMakerRuntimeClient.h
1
6#pragma once
7#include <aws/sagemaker-runtime/SageMakerRuntime_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/sagemaker-runtime/SageMakerRuntimeServiceClientModel.h>
13
14namespace Aws
15{
16namespace SageMakerRuntime
17{
21 class AWS_SAGEMAKERRUNTIME_API SageMakerRuntimeClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<SageMakerRuntimeClient>
22 {
23 public:
25 static const char* GetServiceName();
26 static const char* GetAllocationTag();
27
30
36 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> endpointProvider = nullptr);
37
43 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> endpointProvider = nullptr,
45
50 SageMakerRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
51 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> endpointProvider = nullptr,
53
54
55 /* Legacy constructors due deprecation */
61
67 const Aws::Client::ClientConfiguration& clientConfiguration);
68
73 SageMakerRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
74 const Aws::Client::ClientConfiguration& clientConfiguration);
75
76 /* End of legacy constructors due deprecation */
78
104
108 template<typename InvokeEndpointRequestT = Model::InvokeEndpointRequest>
109 Model::InvokeEndpointOutcomeCallable InvokeEndpointCallable(const InvokeEndpointRequestT& request) const
110 {
111 return SubmitCallable(&SageMakerRuntimeClient::InvokeEndpoint, request);
112 }
113
117 template<typename InvokeEndpointRequestT = Model::InvokeEndpointRequest>
118 void InvokeEndpointAsync(const InvokeEndpointRequestT& request, const InvokeEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
119 {
120 return SubmitAsync(&SageMakerRuntimeClient::InvokeEndpoint, request, handler, context);
121 }
122
143
147 template<typename InvokeEndpointAsyncRequestT = Model::InvokeEndpointAsyncRequest>
148 Model::InvokeEndpointAsyncOutcomeCallable InvokeEndpointAsyncCallable(const InvokeEndpointAsyncRequestT& request) const
149 {
150 return SubmitCallable(&SageMakerRuntimeClient::InvokeEndpointAsync, request);
151 }
152
156 template<typename InvokeEndpointAsyncRequestT = Model::InvokeEndpointAsyncRequest>
157 void InvokeEndpointAsyncAsync(const InvokeEndpointAsyncRequestT& request, const InvokeEndpointAsyncResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
158 {
159 return SubmitAsync(&SageMakerRuntimeClient::InvokeEndpointAsync, request, handler, context);
160 }
161
194
198 template<typename InvokeEndpointWithResponseStreamRequestT = Model::InvokeEndpointWithResponseStreamRequest>
200 {
201 return SubmitCallable(&SageMakerRuntimeClient::InvokeEndpointWithResponseStream, request);
202 }
203
207 template<typename InvokeEndpointWithResponseStreamRequestT = Model::InvokeEndpointWithResponseStreamRequest>
208 void InvokeEndpointWithResponseStreamAsync(InvokeEndpointWithResponseStreamRequestT& request, const InvokeEndpointWithResponseStreamResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
209 {
210 return SubmitAsync(&SageMakerRuntimeClient::InvokeEndpointWithResponseStream, request, handler, context);
211 }
212
213
214 void OverrideEndpoint(const Aws::String& endpoint);
215 std::shared_ptr<SageMakerRuntimeEndpointProviderBase>& accessEndpointProvider();
216 private:
218 void init(const SageMakerRuntimeClientConfiguration& clientConfiguration);
219
220 SageMakerRuntimeClientConfiguration m_clientConfiguration;
221 std::shared_ptr<SageMakerRuntimeEndpointProviderBase> m_endpointProvider;
222 };
223
224} // namespace SageMakerRuntime
225} // namespace Aws
SageMakerRuntimeClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< SageMakerRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration &clientConfiguration=Aws::SageMakerRuntime::SageMakerRuntimeClientConfiguration())
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
void OverrideEndpoint(const Aws::String &endpoint)
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
Model::InvokeEndpointOutcomeCallable InvokeEndpointCallable(const InvokeEndpointRequestT &request) const
virtual Model::InvokeEndpointAsyncOutcome InvokeEndpointAsync(const Model::InvokeEndpointAsyncRequest &request) const
std::shared_ptr< SageMakerRuntimeEndpointProviderBase > & accessEndpointProvider()
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