AWS SDK for C++
1.8.126
AWS SDK for C++
|
Go to the documentation of this file.
18 struct aws_array_list;
24 template<
typename R,
typename E>
52 class HttpClientFactory;
71 template<
typename ERROR_TYPE>
73 class AWSErrorMarshaller;
74 class AWSRestfulJsonErrorMarshaller;
76 struct ClientConfiguration;
94 const std::shared_ptr<Aws::Client::AWSAuthSigner>& signer,
95 const std::shared_ptr<AWSErrorMarshaller>& errorMarshaller);
103 const std::shared_ptr<Aws::Auth::AWSAuthSignerProvider>& signerProvider,
104 const std::shared_ptr<AWSErrorMarshaller>& errorMarshaller);
180 const char* signerName,
181 const char* signerRegionOverride =
nullptr,
182 const char* signerServiceNameOverride =
nullptr)
const;
193 const char* signerName,
194 const char* requestName =
"",
195 const char* signerRegionOverride =
nullptr,
196 const char* signerServiceNameOverride =
nullptr)
const;
204 const char* signerName,
205 const char* signerRegionOverride =
nullptr,
206 const char* signerServiceNameOverride =
nullptr)
const;
216 const char* signerName,
217 const char* requestName =
"",
218 const char* signerRegionOverride =
nullptr,
219 const char* signerServiceNameOverride =
nullptr)
const;
229 const char* signerRegionOverride =
nullptr,
230 const char* signerServiceNameOverride =
nullptr)
const;
242 const char* requestName =
"",
243 const char* signerRegionOverride =
nullptr,
244 const char* signerServiceNameOverride =
nullptr)
const;
255 const std::shared_ptr<Aws::Http::HttpRequest>& httpRequest)
const;
262 return m_errorMarshaller;
285 std::shared_ptr<Aws::Http::HttpResponse>
MakeHttpRequest(std::shared_ptr<Aws::Http::HttpRequest>& request)
const;
293 void AddHeadersToRequest(
const std::shared_ptr<Aws::Http::HttpRequest>& httpRequest,
const Http::HeaderValueCollection& headerValues)
const;
294 void AddContentBodyToRequest(
const std::shared_ptr<Aws::Http::HttpRequest>& httpRequest,
const std::shared_ptr<Aws::IOStream>& body,
295 bool needsContentMd5 =
false,
bool isChunked =
false)
const;
297 void InitializeGlobalStatics();
301 std::shared_ptr<Aws::Http::HttpClient> m_httpClient;
302 std::shared_ptr<Aws::Auth::AWSAuthSignerProvider> m_signerProvider;
303 std::shared_ptr<AWSErrorMarshaller> m_errorMarshaller;
304 std::shared_ptr<RetryStrategy> m_retryStrategy;
305 std::shared_ptr<Aws::Utils::RateLimits::RateLimiterInterface> m_writeRateLimiter;
306 std::shared_ptr<Aws::Utils::RateLimits::RateLimiterInterface> m_readRateLimiter;
308 bool m_customizedUserAgent;
309 std::shared_ptr<Aws::Utils::Crypto::Hash> m_hash;
310 long m_requestTimeoutMs;
311 bool m_enableClockSkewAdjustment;
331 const std::shared_ptr<Aws::Client::AWSAuthSigner>& signer,
332 const std::shared_ptr<AWSErrorMarshaller>& errorMarshaller);
338 const std::shared_ptr<Aws::Auth::AWSAuthSignerProvider>& signerProvider,
339 const std::shared_ptr<AWSErrorMarshaller>& errorMarshaller);
359 const char* signerRegionOverride =
nullptr,
360 const char* signerServiceNameOverride =
nullptr)
const;
374 const char* requestName =
"",
375 const char* signerRegionOverride =
nullptr,
376 const char* signerServiceNameOverride =
nullptr)
const;
394 const std::shared_ptr<Aws::Client::AWSAuthSigner>& signer,
395 const std::shared_ptr<AWSErrorMarshaller>& errorMarshaller);
398 const std::shared_ptr<Aws::Auth::AWSAuthSignerProvider>& signerProvider,
399 const std::shared_ptr<AWSErrorMarshaller>& errorMarshaller);
419 const char* signerRegionOverride =
nullptr,
420 const char* signerServiceNameOverride =
nullptr)
const;
435 const char* requestName =
"",
436 const char* signerRegionOverride =
nullptr,
437 const char* signerServiceNameOverride =
nullptr)
const;
446 const char* signerRegionOverride =
nullptr,
447 const char* signerServiceNameOverride =
nullptr)
const;
457 const char* requestName =
"",
458 const char* signerRegionOverride =
nullptr,
459 const char* signerServiceNameOverride =
nullptr)
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
AWSXMLClient(const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
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 char *signerServiceNameOverride=nullptr) const
Utils::Outcome< AmazonWebServiceResult< Utils::Xml::XmlDocument >, AWSError< CoreErrors > > XmlOutcome
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 char *signerServiceNameOverride=nullptr) 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::Map< Aws::String, Aws::String > HeaderValueCollection
AWS_CORE_API Aws::String GetAuthorizationHeader(const Aws::Http::HttpRequest &httpRequest)
XmlOutcome MakeRequestWithEventStream(const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *singerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
Aws::String GeneratePresignedUrl(Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, long long expirationInSeconds=0) const
void EnableRequestProcessing()
AWSJsonClient(const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &signerProvider, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
AWS_CORE_API const char SIGV4_SIGNER[]
virtual void SetServiceClientName(const Aws::String &name)
JsonOutcome MakeEventStreamRequest(std::shared_ptr< Aws::Http::HttpRequest > &request) const
AWSXMLClient(const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &signerProvider, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
virtual AWSError< CoreErrors > BuildAWSError(const std::shared_ptr< Aws::Http::HttpResponse > &response) const =0
HttpResponseOutcome AttemptExhaustively(const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod httpMethod, const char *signerName, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
HttpResponseOutcome AttemptExhaustively(const Aws::Http::URI &uri, Http::HttpMethod httpMethod, const char *signerName, const char *requestName="", const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
XmlOutcome MakeRequestWithEventStream(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 char *signerServiceNameOverride=nullptr) const
virtual ~AWSXMLClient()=default
std::shared_ptr< Aws::Http::HttpRequest > BuildAndSignHttpRequest(const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method, const char *signerName) 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 char *signerServiceNameOverride=nullptr) const
Aws::MultiMap< Aws::String, Aws::String > QueryStringParameterCollection
Utils::Outcome< AmazonWebServiceResult< Utils::Stream::ResponseStream >, AWSError< CoreErrors > > StreamOutcome
void DisableRequestProcessing()
virtual void BuildHttpRequest(const Aws::AmazonWebServiceRequest &request, const std::shared_ptr< Aws::Http::HttpRequest > &httpRequest) const
virtual AWSError< CoreErrors > BuildAWSError(const std::shared_ptr< Aws::Http::HttpResponse > &response) const override
Aws::Client::AWSAuthSigner * GetSignerByName(const char *name) const
virtual const char * GetServiceClientName() const
HttpResponseOutcome AttemptOneRequest(const std::shared_ptr< Http::HttpRequest > &httpRequest, const char *signerName, const char *requestName="", const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=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 char *signerServiceNameOverride=nullptr) const
Aws::String GeneratePresignedUrl(Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0)
Aws::String GeneratePresignedUrl(Aws::Http::URI &uri, Aws::Http::HttpMethod method, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0)
const std::shared_ptr< AWSErrorMarshaller > & GetErrorMarshaller() const
XmlOutcome 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 char *signerServiceNameOverride=nullptr) 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 Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0) const
HttpResponseOutcome AttemptOneRequest(const std::shared_ptr< Http::HttpRequest > &httpRequest, const Aws::AmazonWebServiceRequest &request, const char *signerName, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Utils::Outcome< AmazonWebServiceResult< Utils::Json::JsonValue >, AWSError< CoreErrors > > JsonOutcome
AWSClient(const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
XmlOutcome 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 char *signerServiceNameOverride=nullptr) const
Utils::Outcome< std::shared_ptr< Aws::Http::HttpResponse >, AWSError< CoreErrors > > HttpResponseOutcome
virtual ~AWSJsonClient()=default
AWSJsonClient(const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
virtual AWSError< CoreErrors > BuildAWSError(const std::shared_ptr< Aws::Http::HttpResponse > &response) const override
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 char *region, const char *serviceName, long long expirationInSeconds=0) const
std::shared_ptr< Aws::Http::HttpResponse > MakeHttpRequest(std::shared_ptr< Aws::Http::HttpRequest > &request) const
AWSClient(const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &signerProvider, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
AWS_CORE_API const char NULL_SIGNER[]