AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SageMakerGatewayRuntimeClient.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-gateway-runtime/SageMakerGatewayRuntimePaginationBase.h>
12#include <aws/sagemaker-gateway-runtime/SageMakerGatewayRuntimeServiceClientModel.h>
13#include <aws/sagemaker-gateway-runtime/SageMakerGatewayRuntimeWaiter.h>
14#include <aws/sagemaker-gateway-runtime/SageMakerGatewayRuntime_EXPORTS.h>
15
16namespace Aws {
17namespace SageMakerGatewayRuntime {
32class AWS_SAGEMAKERGATEWAYRUNTIME_API SageMakerGatewayRuntimeClient
34 public Aws::Client::ClientWithAsyncTemplateMethods<SageMakerGatewayRuntimeClient>,
35 public SageMakerGatewayRuntimePaginationBase<SageMakerGatewayRuntimeClient>,
36 public SageMakerGatewayRuntimeWaiter<SageMakerGatewayRuntimeClient> {
37 public:
39 static const char* GetServiceName();
40 static const char* GetAllocationTag();
41
42 typedef SageMakerGatewayRuntimeClientConfiguration ClientConfigurationType;
44
49 SageMakerGatewayRuntimeClient(const Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration& clientConfiguration =
50 Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration(),
51 std::shared_ptr<SageMakerGatewayRuntimeEndpointProviderBase> endpointProvider = nullptr);
52
58 std::shared_ptr<SageMakerGatewayRuntimeEndpointProviderBase> endpointProvider = nullptr,
59 const Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration& clientConfiguration =
60 Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration());
61
66 SageMakerGatewayRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
67 std::shared_ptr<SageMakerGatewayRuntimeEndpointProviderBase> endpointProvider = nullptr,
68 const Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration& clientConfiguration =
69 Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration());
70
71 /* Legacy constructors due deprecation */
77
83
88 SageMakerGatewayRuntimeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
89 const Aws::Client::ClientConfiguration& clientConfiguration);
90
91 /* End of legacy constructors due deprecation */
93
136 const Model::InvokeGlobalInferenceGatewayRequest& request) const;
137
142 template <typename InvokeGlobalInferenceGatewayRequestT = Model::InvokeGlobalInferenceGatewayRequest>
144 const InvokeGlobalInferenceGatewayRequestT& request) const {
145 return SubmitCallable(&SageMakerGatewayRuntimeClient::InvokeGlobalInferenceGateway, request);
146 }
147
152 template <typename InvokeGlobalInferenceGatewayRequestT = Model::InvokeGlobalInferenceGatewayRequest>
153 void InvokeGlobalInferenceGatewayAsync(const InvokeGlobalInferenceGatewayRequestT& request,
155 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
156 return SubmitAsync(&SageMakerGatewayRuntimeClient::InvokeGlobalInferenceGateway, request, handler, context);
157 }
158
213
218 template <typename InvokeGlobalInferenceGatewayWithResponseStreamRequestT = Model::InvokeGlobalInferenceGatewayWithResponseStreamRequest>
220 InvokeGlobalInferenceGatewayWithResponseStreamRequestT& request) const {
221 return SubmitCallable(&SageMakerGatewayRuntimeClient::InvokeGlobalInferenceGatewayWithResponseStream, request);
222 }
223
228 template <typename InvokeGlobalInferenceGatewayWithResponseStreamRequestT = Model::InvokeGlobalInferenceGatewayWithResponseStreamRequest>
230 InvokeGlobalInferenceGatewayWithResponseStreamRequestT& request,
232 const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const {
233 return SubmitAsync(&SageMakerGatewayRuntimeClient::InvokeGlobalInferenceGatewayWithResponseStream, request, handler, context);
234 }
235
236 virtual void OverrideEndpoint(const Aws::String& endpoint);
237 virtual std::shared_ptr<SageMakerGatewayRuntimeEndpointProviderBase>& accessEndpointProvider();
238
239 private:
241 void init(const SageMakerGatewayRuntimeClientConfiguration& clientConfiguration);
242
244
245 InvokeOperationOutcome InvokeServiceOperation(const AmazonWebServiceRequest& request,
246 const std::function<void(Aws::Endpoint::ResolveEndpointOutcome&)>& resolveUri,
247 Aws::Http::HttpMethod httpMethod) const;
248
249 SageMakerGatewayRuntimeClientConfiguration m_clientConfiguration;
250 std::shared_ptr<SageMakerGatewayRuntimeEndpointProviderBase> m_endpointProvider;
251};
252
253} // namespace SageMakerGatewayRuntime
254} // namespace Aws
virtual std::shared_ptr< SageMakerGatewayRuntimeEndpointProviderBase > & accessEndpointProvider()
SageMakerGatewayRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< SageMakerGatewayRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration &clientConfiguration=Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration())
SageMakerGatewayRuntimeClient(const Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration &clientConfiguration=Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration(), std::shared_ptr< SageMakerGatewayRuntimeEndpointProviderBase > endpointProvider=nullptr)
virtual Model::InvokeGlobalInferenceGatewayWithResponseStreamOutcome InvokeGlobalInferenceGatewayWithResponseStream(Model::InvokeGlobalInferenceGatewayWithResponseStreamRequest &request) const
virtual Model::InvokeGlobalInferenceGatewayOutcome InvokeGlobalInferenceGateway(const Model::InvokeGlobalInferenceGatewayRequest &request) const
SageMakerGatewayRuntimeClient(const Aws::Client::ClientConfiguration &clientConfiguration)
Model::InvokeGlobalInferenceGatewayWithResponseStreamOutcomeCallable InvokeGlobalInferenceGatewayWithResponseStreamCallable(InvokeGlobalInferenceGatewayWithResponseStreamRequestT &request) const
void InvokeGlobalInferenceGatewayWithResponseStreamAsync(InvokeGlobalInferenceGatewayWithResponseStreamRequestT &request, const InvokeGlobalInferenceGatewayWithResponseStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual void OverrideEndpoint(const Aws::String &endpoint)
Model::InvokeGlobalInferenceGatewayOutcomeCallable InvokeGlobalInferenceGatewayCallable(const InvokeGlobalInferenceGatewayRequestT &request) const
SageMakerGatewayRuntimeClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
void InvokeGlobalInferenceGatewayAsync(const InvokeGlobalInferenceGatewayRequestT &request, const InvokeGlobalInferenceGatewayResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
SageMakerGatewayRuntimeClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< SageMakerGatewayRuntimeEndpointProviderBase > endpointProvider=nullptr, const Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration &clientConfiguration=Aws::SageMakerGatewayRuntime::SageMakerGatewayRuntimeClientConfiguration())
SageMakerGatewayRuntimeClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
std::future< InvokeGlobalInferenceGatewayWithResponseStreamOutcome > InvokeGlobalInferenceGatewayWithResponseStreamOutcomeCallable
std::future< InvokeGlobalInferenceGatewayOutcome > InvokeGlobalInferenceGatewayOutcomeCallable
std::function< void(const SageMakerGatewayRuntimeClient *, const Model::InvokeGlobalInferenceGatewayWithResponseStreamRequest &, const Model::InvokeGlobalInferenceGatewayWithResponseStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeGlobalInferenceGatewayWithResponseStreamResponseReceivedHandler
std::function< void(const SageMakerGatewayRuntimeClient *, const Model::InvokeGlobalInferenceGatewayRequest &, Model::InvokeGlobalInferenceGatewayOutcome, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &)> InvokeGlobalInferenceGatewayResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String