AWS SDK for C++
0.12.9
AWS SDK for C++
|
#include <AWSClient.h>
Public Member Functions | |
AWSClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller) | |
virtual | ~AWSClient () |
Aws::String | GeneratePresignedUrl (Aws::Http::URI &uri, Aws::Http::HttpMethod method, long long expirationInSeconds=0) |
void | DisableRequestProcessing () |
void | EnableRequestProcessing () |
Protected Member Functions | |
HttpResponseOutcome | AttemptExhaustively (const Aws::String &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod httpMethod) const |
HttpResponseOutcome | AttemptExhaustively (const Aws::String &uri, Http::HttpMethod httpMethod) const |
HttpResponseOutcome | AttemptOneRequest (const Aws::String &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod httpMethod) const |
HttpResponseOutcome | AttemptOneRequest (const Aws::String &uri, Http::HttpMethod httpMethod) const |
StreamOutcome | MakeRequestWithUnparsedResponse (const Aws::String &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method=Http::HttpMethod::HTTP_POST) const |
virtual AWSError< CoreErrors > | BuildAWSError (const std::shared_ptr< Aws::Http::HttpResponse > &response) const =0 |
virtual void | BuildHttpRequest (const Aws::AmazonWebServiceRequest &request, const std::shared_ptr< Aws::Http::HttpRequest > &httpRequest) const |
const std::shared_ptr< AWSErrorMarshaller > & | GetErrorMarshaller () const |
Abstract AWS Client. Contains most of the functionality necessary to build an http request, get it signed, and send it accross the wire.
Definition at line 84 of file AWSClient.h.
Aws::Client::AWSClient::AWSClient | ( | const Aws::Client::ClientConfiguration & | configuration, |
const std::shared_ptr< Aws::Client::AWSAuthSigner > & | signer, | ||
const std::shared_ptr< AWSErrorMarshaller > & | errorMarshaller | ||
) |
configuration will be used for http client settings, retry strategy, throttles, and signing information. supplied signer will be used for all requests. errorMarshaller tells the client how to convert error payloads into AWSError objects.
|
virtual |
|
protected |
Calls AttemptOnRequest until it either, succeeds, runs out of retries from the retry strategy, or encounters and error that is not retryable.
|
protected |
Calls AttemptOnRequest until it either, succeeds, runs out of retries from the retry strategy, or encounters and error that is not retryable. This method is for payloadless requests e.g. GET, DELETE, HEAD
|
protected |
Constructs and Http Request from the uri and AmazonWebServiceRequest object. Signs the request, sends it accross the wire then reports the http response.
|
protected |
Constructs and Http Request from the uri and AmazonWebServiceRequest object. Signs the request, sends it accross the wire then reports the http response. This method is for payloadless requests e.g. GET, DELETE, HEAD
|
protectedpure virtual |
Abstract. Subclassing clients should override this to tell the client how to marshall error payloads
Implemented in Aws::Client::AWSXMLClient, and Aws::Client::AWSJsonClient.
|
protectedvirtual |
Transforms the AmazonWebServicesResult object into an HttpRequest.
void Aws::Client::AWSClient::DisableRequestProcessing | ( | ) |
Stop all requests immediately. In flight requests will likely fail.
void Aws::Client::AWSClient::EnableRequestProcessing | ( | ) |
Enable/ReEnable requests.
Aws::String Aws::Client::AWSClient::GeneratePresignedUrl | ( | Aws::Http::URI & | uri, |
Aws::Http::HttpMethod | method, | ||
long long | expirationInSeconds = 0 |
||
) |
Generates a signed Uri using the injected signer. for the supplied uri and http method. expirationInSecodns defaults to 0 which is the default 7 days.
|
inlineprotected |
Gets the underlying ErrorMarshaller for subclasses to use.
Definition at line 166 of file AWSClient.h.
|
protected |
This is used for structureless response payloads (file streams, binary data etc...). It calls AttemptExhaustively, but upon return transfers ownership of the underlying stream for the http response to the caller.