AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
smithy::client::AwsSmithyClientBase Class Referenceabstract

#include <AwsSmithyClientBase.h>

Inheritance diagram for smithy::client::AwsSmithyClientBase:
[legend]

Public Types

using HttpRequest = Aws::Http::HttpRequest
 
using HttpResponse = Aws::Http::HttpResponse
 
using CoreErrors = Aws::Client::CoreErrors
 
using AWSCoreError = Aws::Client::AWSError<CoreErrors>
 
using ClientError = AWSCoreError
 
using SigningError = AWSCoreError
 
using SigningOutcome = Aws::Utils::FutureOutcome<std::shared_ptr<Aws::Http::HttpRequest>, SigningError>
 
using SigningEventOutcome = Aws::Utils::Outcome<Aws::Utils::Event::Message, SigningError>
 
using EndpointUpdateCallback = std::function<void(Aws::Endpoint::AWSEndpoint&)>
 
using AuthResolvedCallback = std::function<void(std::shared_ptr<AwsSmithyClientAsyncRequestContext>)>
 
using HttpResponseOutcome = Aws::Utils::Outcome<std::shared_ptr<Aws::Http::HttpResponse>, AWSCoreError>
 
using ResponseHandlerFunc = std::function<void(HttpResponseOutcome&&)>
 
using SelectAuthSchemeOptionOutcome = Aws::Utils::Outcome<AuthSchemeOption, AWSCoreError>
 
using ResolveEndpointOutcome = Aws::Utils::Outcome<Aws::Endpoint::AWSEndpoint, AWSCoreError>
 
using StreamOutcome = Aws::Utils::Outcome<Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>, AWSCoreError >
 
using IdentityOutcome = Aws::Utils::Outcome<std::shared_ptr<smithy::AwsIdentity>, AWSCoreError>
 
using GetContextEndpointParametersOutcome = Aws::Utils::Outcome<Aws::Vector<Aws::Endpoint::EndpointParameter>, AWSCoreError>
 

Public Member Functions

 AwsSmithyClientBase (Aws::UniquePtr< Aws::Client::ClientConfiguration > &&clientConfig, Aws::String serviceName, Aws::String serviceUserAgentName, std::shared_ptr< Aws::Http::HttpClient > httpClient, std::shared_ptr< Aws::Client::AWSErrorMarshaller > errorMarshaller)
 
 AwsSmithyClientBase (const AwsSmithyClientBase &other, Aws::UniquePtr< Aws::Client::ClientConfiguration > &&clientConfig, std::shared_ptr< Aws::Http::HttpClient > httpClient, std::shared_ptr< Aws::Client::AWSErrorMarshaller > errorMarshaller)
 
 AwsSmithyClientBase (AwsSmithyClientBase &&other, Aws::UniquePtr< Aws::Client::ClientConfiguration > &&clientConfig)
 
 AwsSmithyClientBase (AwsSmithyClientBase &target)=delete
 
AwsSmithyClientBase & operator= (AwsSmithyClientBase &target)=delete
 
 AwsSmithyClientBase (AwsSmithyClientBase &&target)=delete
 
AwsSmithyClientBase & operator= (AwsSmithyClientBase &&target)=delete
 
virtual ~AwsSmithyClientBase ()=default
 
void MakeRequestAsync (Aws::AmazonWebServiceRequest const *const request, const char *requestName, Aws::Http::HttpMethod method, EndpointUpdateCallback &&endpointCallback, ResponseHandlerFunc &&responseHandler, AuthResolvedCallback &&authCallback, std::shared_ptr< Aws::Utils::Threading::Executor > pExecutor=nullptr) const
 
HttpResponseOutcome MakeRequestSync (Aws::AmazonWebServiceRequest const *const request, const char *requestName, Aws::Http::HttpMethod method, EndpointUpdateCallback &&endpointCallback, AuthResolvedCallback &&authCallback) const
 
StreamOutcome MakeRequestWithUnparsedResponse (Aws::AmazonWebServiceRequest const *const request, const char *requestName, Aws::Http::HttpMethod method, EndpointUpdateCallback &&endpointCallback) const
 
void AppendToUserAgent (const Aws::String &valueToAppend)
 
virtual void DisableRequestProcessing ()
 
virtual void EnableRequestProcessing ()
 
virtual const char * GetServiceClientName () const
 
virtual const std::shared_ptr< Aws::Http::HttpClient > & GetHttpClient ()
 
const std::shared_ptr< Aws::Http::HttpClient > & GetHttpClient () const
 

Protected Member Functions

const std::shared_ptr< Aws::Client::AWSErrorMarshaller > & GetErrorMarshaller () const
 
void baseInit ()
 
void baseCopyInit ()
 
void baseCopyAssign (const AwsSmithyClientBase &other, std::shared_ptr< Aws::Http::HttpClient > httpClient, std::shared_ptr< Aws::Client::AWSErrorMarshaller > errorMarshaller)
 
void baseMoveAssign (AwsSmithyClientBase &&other)
 
std::shared_ptr< Aws::Http::HttpRequest > BuildHttpRequest (const std::shared_ptr< AwsSmithyClientAsyncRequestContext > &pRequestCtx, const Aws::Http::URI &uri, Aws::Http::HttpMethod method) const
 
virtual std::shared_ptr< Aws::Http::HttpRequest > AttemptOneRequestAsync (std::shared_ptr< AwsSmithyClientAsyncRequestContext > pRequestCtx) const
 
virtual Aws::Http::HttpClient::AttemptOutcome HandleAsyncReply (std::shared_ptr< AwsSmithyClientAsyncRequestContext > pRequestCtx, std::shared_ptr< Aws::Http::HttpResponse > httpResponse) const
 
virtual ResolveEndpointOutcome ResolveEndpoint (const Aws::Endpoint::EndpointParameters &endpointParameters, EndpointUpdateCallback &&epCallback) const =0
 
virtual SelectAuthSchemeOptionOutcome SelectAuthSchemeOption (const AwsSmithyClientAsyncRequestContext &ctx) const =0
 
virtual SigningOutcome SignHttpRequest (std::shared_ptr< HttpRequest > httpRequest, const AwsSmithyClientAsyncRequestContext &ctx) const =0
 
bool AdjustClockSkew (HttpResponseOutcome &outcome, const AwsSmithyClientAsyncRequestContext &ctx) const
 
void RecordClockSkew (const Aws::Http::HttpResponse &response, const AwsSmithyClientAsyncRequestContext &ctx) const
 
virtual IdentityOutcome ResolveIdentity (const AwsSmithyClientAsyncRequestContext &ctx) const =0
 
virtual GetContextEndpointParametersOutcome GetContextEndpointParameters (const AwsSmithyClientAsyncRequestContext &ctx) const =0
 
AwsSmithyClientBase::ResolveEndpointOutcome ResolveEndpointFromRequest (Aws::AmazonWebServiceRequest const *const request, const char *requestName, EndpointUpdateCallback &&endpointCallback) const
 

Protected Attributes

const Aws::UniquePtr< Aws::Client::ClientConfiguration > m_clientConfig
 
Aws::String m_serviceName
 
Aws::String m_serviceUserAgentName
 
std::shared_ptr< Aws::Http::HttpClient > m_httpClient
 
std::shared_ptr< Aws::Client::AWSErrorMarshaller > m_errorMarshaller
 
Aws::Vector< std::shared_ptr< smithy::interceptor::Interceptor > > m_interceptors {}
 
std::shared_ptr< smithy::client::UserAgentInterceptor > m_userAgentInterceptor
 
std::shared_ptr< Aws::Internal::ClientSkew > m_clientSkew
 

Friends

template<typename OutcomeT , typename ClientT , typename RequestT , typename HandlerT >
class SmithyBidirectionalEventStreamingTask
 
template<typename OutcomeT , typename ClientT , typename RequestT , typename EncoderStreamT , typename HandlerT >
class SmithyBidirectionalStreamingWriteDataTask
 

Detailed Description

Definition at line 81 of file AwsSmithyClientBase.h.

Member Typedef Documentation

◆ AuthResolvedCallback

Definition at line 93 of file AwsSmithyClientBase.h.

◆ AWSCoreError

◆ ClientError

◆ CoreErrors

◆ EndpointUpdateCallback

◆ GetContextEndpointParametersOutcome

◆ HttpRequest

◆ HttpResponse

◆ HttpResponseOutcome

◆ IdentityOutcome

◆ ResolveEndpointOutcome

◆ ResponseHandlerFunc

◆ SelectAuthSchemeOptionOutcome

◆ SigningError

◆ SigningEventOutcome

◆ SigningOutcome

◆ StreamOutcome

Constructor & Destructor Documentation

◆ AwsSmithyClientBase() [1/5]

smithy::client::AwsSmithyClientBase::AwsSmithyClientBase ( Aws::UniquePtr< Aws::Client::ClientConfiguration > && clientConfig,
Aws::String serviceName,
Aws::String serviceUserAgentName,
std::shared_ptr< Aws::Http::HttpClient > httpClient,
std::shared_ptr< Aws::Client::AWSErrorMarshaller > errorMarshaller )
inline

Definition at line 103 of file AwsSmithyClientBase.h.

◆ AwsSmithyClientBase() [2/5]

smithy::client::AwsSmithyClientBase::AwsSmithyClientBase ( const AwsSmithyClientBase & other,
Aws::UniquePtr< Aws::Client::ClientConfiguration > && clientConfig,
std::shared_ptr< Aws::Http::HttpClient > httpClient,
std::shared_ptr< Aws::Client::AWSErrorMarshaller > errorMarshaller )
inline

Definition at line 125 of file AwsSmithyClientBase.h.

◆ AwsSmithyClientBase() [3/5]

smithy::client::AwsSmithyClientBase::AwsSmithyClientBase ( AwsSmithyClientBase && other,
Aws::UniquePtr< Aws::Client::ClientConfiguration > && clientConfig )
inline

Definition at line 138 of file AwsSmithyClientBase.h.

◆ AwsSmithyClientBase() [4/5]

smithy::client::AwsSmithyClientBase::AwsSmithyClientBase ( AwsSmithyClientBase & target)
delete

◆ AwsSmithyClientBase() [5/5]

smithy::client::AwsSmithyClientBase::AwsSmithyClientBase ( AwsSmithyClientBase && target)
delete

◆ ~AwsSmithyClientBase()

virtual smithy::client::AwsSmithyClientBase::~AwsSmithyClientBase ( )
virtualdefault

Member Function Documentation

◆ AdjustClockSkew()

bool smithy::client::AwsSmithyClientBase::AdjustClockSkew ( HttpResponseOutcome & outcome,
const AwsSmithyClientAsyncRequestContext & ctx ) const
protected

◆ AppendToUserAgent()

void smithy::client::AwsSmithyClientBase::AppendToUserAgent ( const Aws::String & valueToAppend)

◆ AttemptOneRequestAsync()

virtual std::shared_ptr< Aws::Http::HttpRequest > smithy::client::AwsSmithyClientBase::AttemptOneRequestAsync ( std::shared_ptr< AwsSmithyClientAsyncRequestContext > pRequestCtx) const
protectedvirtual

◆ baseCopyAssign()

void smithy::client::AwsSmithyClientBase::baseCopyAssign ( const AwsSmithyClientBase & other,
std::shared_ptr< Aws::Http::HttpClient > httpClient,
std::shared_ptr< Aws::Client::AWSErrorMarshaller > errorMarshaller )
protected

A helper utility to re-initialize on copy assignment

◆ baseCopyInit()

void smithy::client::AwsSmithyClientBase::baseCopyInit ( )
protected

Initialize client configuration on copy, if there is a factory use it, otherwise use the already present shared configuration.

◆ baseInit()

void smithy::client::AwsSmithyClientBase::baseInit ( )
protected

Initialize client configuration with their factory method, unless the user has explicitly set the configuration, and it is to be shallow copied between different clients, in which case, delete the factory method.

◆ baseMoveAssign()

void smithy::client::AwsSmithyClientBase::baseMoveAssign ( AwsSmithyClientBase && other)
protected

A helper utility to move assign base client

◆ BuildHttpRequest()

std::shared_ptr< Aws::Http::HttpRequest > smithy::client::AwsSmithyClientBase::BuildHttpRequest ( const std::shared_ptr< AwsSmithyClientAsyncRequestContext > & pRequestCtx,
const Aws::Http::URI & uri,
Aws::Http::HttpMethod method ) const
protected

Transforms the AmazonWebServicesResult object into an HttpRequest.

◆ DisableRequestProcessing()

virtual void smithy::client::AwsSmithyClientBase::DisableRequestProcessing ( )
virtual

◆ EnableRequestProcessing()

virtual void smithy::client::AwsSmithyClientBase::EnableRequestProcessing ( )
virtual

◆ GetContextEndpointParameters()

◆ GetErrorMarshaller()

const std::shared_ptr< Aws::Client::AWSErrorMarshaller > & smithy::client::AwsSmithyClientBase::GetErrorMarshaller ( ) const
inlineprotected

Definition at line 186 of file AwsSmithyClientBase.h.

◆ GetHttpClient() [1/2]

virtual const std::shared_ptr< Aws::Http::HttpClient > & smithy::client::AwsSmithyClientBase::GetHttpClient ( )
inlinevirtual

Definition at line 175 of file AwsSmithyClientBase.h.

◆ GetHttpClient() [2/2]

const std::shared_ptr< Aws::Http::HttpClient > & smithy::client::AwsSmithyClientBase::GetHttpClient ( ) const
inline

Definition at line 176 of file AwsSmithyClientBase.h.

◆ GetServiceClientName()

virtual const char * smithy::client::AwsSmithyClientBase::GetServiceClientName ( ) const
inlinevirtual

◆ HandleAsyncReply()

virtual Aws::Http::HttpClient::AttemptOutcome smithy::client::AwsSmithyClientBase::HandleAsyncReply ( std::shared_ptr< AwsSmithyClientAsyncRequestContext > pRequestCtx,
std::shared_ptr< Aws::Http::HttpResponse > httpResponse ) const
protectedvirtual

◆ MakeRequestAsync()

void smithy::client::AwsSmithyClientBase::MakeRequestAsync ( Aws::AmazonWebServiceRequest const *const request,
const char * requestName,
Aws::Http::HttpMethod method,
EndpointUpdateCallback && endpointCallback,
ResponseHandlerFunc && responseHandler,
AuthResolvedCallback && authCallback,
std::shared_ptr< Aws::Utils::Threading::Executor > pExecutor = nullptr ) const

◆ MakeRequestSync()

HttpResponseOutcome smithy::client::AwsSmithyClientBase::MakeRequestSync ( Aws::AmazonWebServiceRequest const *const request,
const char * requestName,
Aws::Http::HttpMethod method,
EndpointUpdateCallback && endpointCallback,
AuthResolvedCallback && authCallback ) const

◆ MakeRequestWithUnparsedResponse()

StreamOutcome smithy::client::AwsSmithyClientBase::MakeRequestWithUnparsedResponse ( Aws::AmazonWebServiceRequest const *const request,
const char * requestName,
Aws::Http::HttpMethod method,
EndpointUpdateCallback && endpointCallback ) const

◆ operator=() [1/2]

AwsSmithyClientBase & smithy::client::AwsSmithyClientBase::operator= ( AwsSmithyClientBase && target)
delete

◆ operator=() [2/2]

AwsSmithyClientBase & smithy::client::AwsSmithyClientBase::operator= ( AwsSmithyClientBase & target)
delete

◆ RecordClockSkew()

void smithy::client::AwsSmithyClientBase::RecordClockSkew ( const Aws::Http::HttpResponse & response,
const AwsSmithyClientAsyncRequestContext & ctx ) const
protected

◆ ResolveEndpoint()

◆ ResolveEndpointFromRequest()

AwsSmithyClientBase::ResolveEndpointOutcome smithy::client::AwsSmithyClientBase::ResolveEndpointFromRequest ( Aws::AmazonWebServiceRequest const *const request,
const char * requestName,
EndpointUpdateCallback && endpointCallback ) const
protected

◆ ResolveIdentity()

◆ SelectAuthSchemeOption()

◆ SignHttpRequest()

Friends And Related Symbol Documentation

◆ SmithyBidirectionalEventStreamingTask

template<typename OutcomeT , typename ClientT , typename RequestT , typename HandlerT >
friend class SmithyBidirectionalEventStreamingTask
friend

Definition at line 180 of file AwsSmithyClientBase.h.

◆ SmithyBidirectionalStreamingWriteDataTask

template<typename OutcomeT , typename ClientT , typename RequestT , typename EncoderStreamT , typename HandlerT >
friend class SmithyBidirectionalStreamingWriteDataTask
friend

Definition at line 183 of file AwsSmithyClientBase.h.

Member Data Documentation

◆ m_clientConfig

const Aws::UniquePtr<Aws::Client::ClientConfiguration> smithy::client::AwsSmithyClientBase::m_clientConfig
protected

Definition at line 242 of file AwsSmithyClientBase.h.

◆ m_clientSkew

std::shared_ptr<Aws::Internal::ClientSkew> smithy::client::AwsSmithyClientBase::m_clientSkew
mutableprotected

Definition at line 250 of file AwsSmithyClientBase.h.

◆ m_errorMarshaller

std::shared_ptr<Aws::Client::AWSErrorMarshaller> smithy::client::AwsSmithyClientBase::m_errorMarshaller
protected

Definition at line 247 of file AwsSmithyClientBase.h.

◆ m_httpClient

std::shared_ptr<Aws::Http::HttpClient> smithy::client::AwsSmithyClientBase::m_httpClient
protected

Definition at line 246 of file AwsSmithyClientBase.h.

◆ m_interceptors

Aws::Vector<std::shared_ptr<smithy::interceptor::Interceptor> > smithy::client::AwsSmithyClientBase::m_interceptors {}
protected

Definition at line 248 of file AwsSmithyClientBase.h.

◆ m_serviceName

Aws::String smithy::client::AwsSmithyClientBase::m_serviceName
protected

Definition at line 243 of file AwsSmithyClientBase.h.

◆ m_serviceUserAgentName

Aws::String smithy::client::AwsSmithyClientBase::m_serviceUserAgentName
protected

Definition at line 244 of file AwsSmithyClientBase.h.

◆ m_userAgentInterceptor

std::shared_ptr<smithy::client::UserAgentInterceptor> smithy::client::AwsSmithyClientBase::m_userAgentInterceptor
protected

Definition at line 249 of file AwsSmithyClientBase.h.


The documentation for this class was generated from the following file: