AWS SDK for C++  1.8.20
AWS SDK for C++
Public Types | Public Member Functions | Protected Member Functions | List of all members
Aws::Client::AWSJsonClient Class Reference

#include <AWSClient.h>

+ Inheritance diagram for Aws::Client::AWSJsonClient:

Public Types

typedef AWSClient BASECLASS
 

Public Member Functions

 AWSJsonClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
 AWSJsonClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &signerProvider, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
virtual ~AWSJsonClient ()=default
 
- Public Member Functions inherited from Aws::Client::AWSClient
 AWSClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
 AWSClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &signerProvider, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
virtual ~AWSClient ()
 
Aws::String GeneratePresignedUrl (Aws::Http::URI &uri, Aws::Http::HttpMethod method, long long expirationInSeconds=0)
 
Aws::String GeneratePresignedUrl (Aws::Http::URI &uri, Aws::Http::HttpMethod method, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0)
 
Aws::String GeneratePresignedUrl (Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, long long expirationInSeconds=0) const
 
Aws::String GeneratePresignedUrl (Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0)
 
Aws::String GeneratePresignedUrl (Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, long long expirationInSeconds=0) const
 
Aws::String GeneratePresignedUrl (const Aws::AmazonWebServiceRequest &request, Aws::Http::URI &uri, Aws::Http::HttpMethod method, const Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0) const
 
Aws::String GeneratePresignedUrl (const Aws::AmazonWebServiceRequest &request, Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, const Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0) const
 
Aws::String GeneratePresignedUrl (const Aws::AmazonWebServiceRequest &request, Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0) const
 
void DisableRequestProcessing ()
 
void EnableRequestProcessing ()
 
virtual const char * GetServiceClientName () const
 

Protected Member Functions

virtual AWSError< CoreErrorsBuildAWSError (const std::shared_ptr< Aws::Http::HttpResponse > &response) const override
 
JsonOutcome MakeRequest (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr) const
 
JsonOutcome MakeRequest (const Aws::Http::URI &uri, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *requestName="", const char *signerRegionOverride=nullptr) const
 
JsonOutcome MakeEventStreamRequest (std::shared_ptr< Aws::Http::HttpRequest > &request) const
 
- Protected Member Functions inherited from Aws::Client::AWSClient
HttpResponseOutcome AttemptExhaustively (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod httpMethod, const char *signerName, const char *signerRegionOverride=nullptr) const
 
HttpResponseOutcome AttemptExhaustively (const Aws::Http::URI &uri, Http::HttpMethod httpMethod, const char *signerName, const char *requestName="", const char *signerRegionOverride=nullptr) const
 
HttpResponseOutcome AttemptOneRequest (const std::shared_ptr< Http::HttpRequest > &httpRequest, const Aws::AmazonWebServiceRequest &request, const char *signerName, const char *signerRegionOverride=nullptr) const
 
HttpResponseOutcome AttemptOneRequest (const std::shared_ptr< Http::HttpRequest > &httpRequest, const char *signerName, const char *requestName="", const char *signerRegionOverride=nullptr) const
 
StreamOutcome MakeRequestWithUnparsedResponse (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr) const
 
StreamOutcome MakeRequestWithUnparsedResponse (const Aws::Http::URI &uri, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *requestName="", const char *signerRegionOverride=nullptr) const
 
virtual void BuildHttpRequest (const Aws::AmazonWebServiceRequest &request, const std::shared_ptr< Aws::Http::HttpRequest > &httpRequest) const
 
const std::shared_ptr< AWSErrorMarshaller > & GetErrorMarshaller () const
 
Aws::Client::AWSAuthSignerGetSignerByName (const char *name) const
 
std::shared_ptr< Aws::Http::HttpRequestBuildAndSignHttpRequest (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method, const char *signerName) const
 
std::shared_ptr< Aws::Http::HttpResponseMakeHttpRequest (std::shared_ptr< Aws::Http::HttpRequest > &request) const
 

Additional Inherited Members

- Protected Attributes inherited from Aws::Client::AWSClient
Aws::String m_region
 

Detailed Description

AWSClient that handles marshalling json response bodies. You would inherit from this class to create a client that uses Json as its payload format.

Definition at line 302 of file AWSClient.h.

Member Typedef Documentation

◆ BASECLASS

Definition at line 305 of file AWSClient.h.

Constructor & Destructor Documentation

◆ AWSJsonClient() [1/2]

Aws::Client::AWSJsonClient::AWSJsonClient ( const Aws::Client::ClientConfiguration configuration,
const std::shared_ptr< Aws::Client::AWSAuthSigner > &  signer,
const std::shared_ptr< AWSErrorMarshaller > &  errorMarshaller 
)

Simply calls AWSClient constructor.

◆ AWSJsonClient() [2/2]

Aws::Client::AWSJsonClient::AWSJsonClient ( const Aws::Client::ClientConfiguration configuration,
const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &  signerProvider,
const std::shared_ptr< AWSErrorMarshaller > &  errorMarshaller 
)

Simply calls AWSClient constructor.

◆ ~AWSJsonClient()

virtual Aws::Client::AWSJsonClient::~AWSJsonClient ( )
virtualdefault

Member Function Documentation

◆ BuildAWSError()

virtual AWSError<CoreErrors> Aws::Client::AWSJsonClient::BuildAWSError ( const std::shared_ptr< Aws::Http::HttpResponse > &  response) const
overrideprotectedvirtual

Converts/Parses an http response into a meaningful AWSError object using the json message structure.

Implements Aws::Client::AWSClient.

◆ MakeEventStreamRequest()

JsonOutcome Aws::Client::AWSJsonClient::MakeEventStreamRequest ( std::shared_ptr< Aws::Http::HttpRequest > &  request) const
protected

◆ MakeRequest() [1/2]

JsonOutcome Aws::Client::AWSJsonClient::MakeRequest ( const Aws::Http::URI uri,
const Aws::AmazonWebServiceRequest request,
Http::HttpMethod  method = Http::HttpMethod::HTTP_POST,
const char *  signerName = Aws::Auth::SIGV4_SIGNER,
const char *  signerRegionOverride = nullptr 
) const
protected

Returns a Json document or an error from the request. Does some marshalling json and raw streams, then just calls AttemptExhaustively.

method defaults to POST

◆ MakeRequest() [2/2]

JsonOutcome Aws::Client::AWSJsonClient::MakeRequest ( const Aws::Http::URI uri,
Http::HttpMethod  method = Http::HttpMethod::HTTP_POST,
const char *  signerName = Aws::Auth::SIGV4_SIGNER,
const char *  requestName = "",
const char *  signerRegionOverride = nullptr 
) const
protected

Returns a Json document or an error from the request. Does some marshalling json and raw streams, then just calls AttemptExhaustively.

requestName is used for metrics and defaults to empty string, to avoid empty names in metrics provide a valid name.

method defaults to POST


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