AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
Aws::Client Namespace Reference

Namespaces

namespace  CoreErrorsMapper
 

Classes

 
 
 
 
 
 
class  AWSClient
 
class  AWSError
 
 
 
 
 
class  AWSXMLClient
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 This retry strategy is almost identical to DefaultRetryStrategy, except it accepts a vector of error or exception names that you want to retry anyway (bypass the retryable definition of the error instance itself) if the retry attempts is less than maxRetries. More...
 
 
 

Typedefs

 
 
 
 

Enumerations

enum class  ErrorPayloadType { NOT_SET , XML , JSON }
 
 
 
 
 
enum class  CompressionAlgorithm { NONE , GZIP }
 

Functions

template<typename ClientT , typename RequestT , typename HandlerT , typename HandlerContextT , typename OperationFuncT , typename ExecutorT >
void AWS_CORE_LOCAL MakeAsyncOperation (OperationFuncT &&operationFunc, const ClientT *clientThis, const RequestT &request, const HandlerT &handler, const HandlerContextT &context, ExecutorT *pExecutor)
 
template<typename ClientT , typename RequestT , typename HandlerT , typename HandlerContextT , typename OperationFuncT , typename ExecutorT >
void AWS_CORE_LOCAL MakeAsyncStreamingOperation (OperationFuncT &&operationFunc, const ClientT *clientThis, RequestT &request, const HandlerT &handler, const HandlerContextT &context, ExecutorT *pExecutor)
 
template<typename ClientT , typename HandlerT , typename HandlerContextT , typename OperationFuncT , typename ExecutorT >
void AWS_CORE_LOCAL MakeAsyncOperation (OperationFuncT &&operationFunc, const ClientT *clientThis, const HandlerT &handler, const HandlerContextT &context, ExecutorT *pExecutor)
 
template<typename ClientT , typename RequestT , typename OperationFuncT , typename ExecutorT >
auto AWS_CORE_LOCAL MakeCallableOperation (const char *ALLOCATION_TAG, OperationFuncT &&operationFunc, const ClientT *clientThis, const RequestT &request, ExecutorT *pExecutor) -> std::future< decltype((clientThis-> *operationFunc)(request))>
 
template<typename ClientT , typename RequestT , typename OperationFuncT , typename ExecutorT >
auto AWS_CORE_LOCAL MakeCallableStreamingOperation (const char *ALLOCATION_TAG, OperationFuncT &&operationFunc, const ClientT *clientThis, RequestT &request, ExecutorT *pExecutor) -> std::future< decltype((clientThis-> *operationFunc)(request))>
 
template<typename ClientT , typename OperationFuncT , typename ExecutorT >
auto AWS_CORE_LOCAL MakeCallableOperation (const char *ALLOCATION_TAG, OperationFuncT &&operationFunc, const ClientT *clientThis, ExecutorT *pExecutor) -> std::future< decltype((clientThis-> *operationFunc)())>
 
AWS_CORE_API Aws::String GetAuthorizationHeader (const Aws::Http::HttpRequest &httpRequest)
 
template<typename T >
 
std::shared_ptr< RetryStrategyInitRetryStrategy (Aws::String retryMode="")
 
AWS_CORE_API Aws::String ComputeUserAgentString (ClientConfiguration const *const pConfig=nullptr)
 
AWS_CORE_API Aws::String FilterUserAgentToken (char const *const token)
 
AWS_CORE_API Aws::OStreamoperator<< (Aws::OStream &oStream, CoreErrors code)
 
 

Variables

static const int NO_RETRY_INCREMENT = 1
 

Typedef Documentation

◆ HttpResponseOutcome

Definition at line 71 of file AWSClient.h.

◆ JsonOutcome

Definition at line 25 of file AWSJsonClient.h.

◆ StreamOutcome

Definition at line 72 of file AWSClient.h.

◆ XmlOutcome

Definition at line 25 of file AWSXmlClient.h.

Enumeration Type Documentation

◆ CompressionAlgorithm

Enumerator
NONE 
GZIP 

Definition at line 20 of file RequestCompression.h.

◆ CoreErrors

strong
Enumerator
INCOMPLETE_SIGNATURE 
INTERNAL_FAILURE 
INVALID_ACTION 
INVALID_CLIENT_TOKEN_ID 
INVALID_PARAMETER_COMBINATION 
INVALID_QUERY_PARAMETER 
INVALID_PARAMETER_VALUE 
MISSING_ACTION 
MISSING_AUTHENTICATION_TOKEN 
MISSING_PARAMETER 
OPT_IN_REQUIRED 
REQUEST_EXPIRED 
SERVICE_UNAVAILABLE 
THROTTLING 
VALIDATION 
ACCESS_DENIED 
RESOURCE_NOT_FOUND 
UNRECOGNIZED_CLIENT 
MALFORMED_QUERY_STRING 
SLOW_DOWN 
REQUEST_TIME_TOO_SKEWED 
INVALID_SIGNATURE 
SIGNATURE_DOES_NOT_MATCH 
INVALID_ACCESS_KEY_ID 
REQUEST_TIMEOUT 
NOT_INITIALIZED 
MEMORY_ALLOCATION 
NETWORK_CONNECTION 
UNKNOWN 
CLIENT_SIGNING_FAILURE 
USER_CANCELLED 
ENDPOINT_RESOLUTION_FAILURE 
SERVICE_EXTENSION_START_RANGE 
OK 

Definition at line 21 of file CoreErrors.h.

◆ ErrorPayloadType

strong
Enumerator
NOT_SET 
XML 
JSON 

Definition at line 23 of file AWSError.h.

◆ FollowRedirectsPolicy

Sets the behaviors of the underlying HTTP clients handling response with 30x status code. By default, HTTP clients will always redirect the 30x response automatically, except when specifying aws-global as the client region, then SDK will handle 30x response and redirect the request manually.

Enumerator
DEFAULT 
ALWAYS 
NEVER 

Definition at line 43 of file ClientConfiguration.h.

◆ RetryableType

strong
Enumerator
NOT_RETRYABLE 
RETRYABLE 
RETRYABLE_THROTTLING 

Definition at line 30 of file AWSError.h.

◆ UseRequestCompression

This setting is an enumeration, not a boolean, to allow for future expansion.

Enumerator
DISABLE 
ENABLE 

Definition at line 53 of file ClientConfiguration.h.

Function Documentation

◆ ComputeUserAgentString()

AWS_CORE_API Aws::String Aws::Client::ComputeUserAgentString ( ClientConfiguration const *const  pConfig = nullptr)

A helper function to compute a user agent

Returns
Aws::String with a user-agent

◆ FilterUserAgentToken()

AWS_CORE_API Aws::String Aws::Client::FilterUserAgentToken ( char const *const  token)

◆ GetAuthorizationHeader()

AWS_CORE_API Aws::String Aws::Client::GetAuthorizationHeader ( const Aws::Http::HttpRequest httpRequest)

◆ GetCompressionAlgorithmId()

Aws::String AWS_CORE_API Aws::Client::GetCompressionAlgorithmId ( const CompressionAlgorithm algorithm)

Converts a compression Algorithms enum to String to be used as content-type header value when compressing a request.

Parameters
algorithm
Returns
string with HTTP content type algorithm id

◆ InitRetryStrategy()

std::shared_ptr< RetryStrategy > Aws::Client::InitRetryStrategy ( Aws::String  retryMode = "")

A helper function to initialize a retry strategy. Default is DefaultRetryStrategy (i.e. exponential backoff)

◆ MakeAsyncOperation() [1/2]

template<typename ClientT , typename HandlerT , typename HandlerContextT , typename OperationFuncT , typename ExecutorT >
void AWS_CORE_LOCAL Aws::Client::MakeAsyncOperation ( OperationFuncT &&  operationFunc,
const ClientT *  clientThis,
const HandlerT &  handler,
const HandlerContextT &  context,
ExecutorT *  pExecutor 
)
inline

A template function to create an Async Operation function body for AWS Operation without a request on input.

Definition at line 86 of file AWSAsyncOperationTemplate.h.

◆ MakeAsyncOperation() [2/2]

template<typename ClientT , typename RequestT , typename HandlerT , typename HandlerContextT , typename OperationFuncT , typename ExecutorT >
void AWS_CORE_LOCAL Aws::Client::MakeAsyncOperation ( OperationFuncT &&  operationFunc,
const ClientT *  clientThis,
const RequestT &  request,
const HandlerT &  handler,
const HandlerContextT &  context,
ExecutorT *  pExecutor 
)
inline

A template function that is used to create an Async Operation function body for AWS Operations

Definition at line 28 of file AWSAsyncOperationTemplate.h.

◆ MakeAsyncStreamingOperation()

template<typename ClientT , typename RequestT , typename HandlerT , typename HandlerContextT , typename OperationFuncT , typename ExecutorT >
void AWS_CORE_LOCAL Aws::Client::MakeAsyncStreamingOperation ( OperationFuncT &&  operationFunc,
const ClientT *  clientThis,
RequestT &  request,
const HandlerT &  handler,
const HandlerContextT &  context,
ExecutorT *  pExecutor 
)
inline

A template function that is used to create an Async Operation function body for AWS Streaming Operations The only difference compared to a regular non-streaming Operation is that the request is passed by non-const reference, therefore virtual copy constructor is not needed. However, caller code must ensure the life time of the request object is maintained during the Async execution.

Definition at line 59 of file AWSAsyncOperationTemplate.h.

◆ MakeCallableOperation() [1/2]

template<typename ClientT , typename RequestT , typename OperationFuncT , typename ExecutorT >
auto AWS_CORE_LOCAL Aws::Client::MakeCallableOperation ( const char *  ALLOCATION_TAG,
OperationFuncT &&  operationFunc,
const ClientT *  clientThis,
const RequestT &  request,
ExecutorT *  pExecutor 
) -> std::future<decltype((clientThis->*operationFunc)(request))>
inline

A template function that is used to create a Callable Operation function body for AWS Operations

Definition at line 110 of file AWSAsyncOperationTemplate.h.

◆ MakeCallableOperation() [2/2]

template<typename ClientT , typename OperationFuncT , typename ExecutorT >
auto AWS_CORE_LOCAL Aws::Client::MakeCallableOperation ( const char *  ALLOCATION_TAG,
OperationFuncT &&  operationFunc,
const ClientT *  clientThis,
ExecutorT *  pExecutor 
) -> std::future<decltype((clientThis->*operationFunc)())>
inline

A template function that is used to create a Callable Operation function body for AWS Operation without a request on input.

Definition at line 169 of file AWSAsyncOperationTemplate.h.

◆ MakeCallableStreamingOperation()

template<typename ClientT , typename RequestT , typename OperationFuncT , typename ExecutorT >
auto AWS_CORE_LOCAL Aws::Client::MakeCallableStreamingOperation ( const char *  ALLOCATION_TAG,
OperationFuncT &&  operationFunc,
const ClientT *  clientThis,
RequestT &  request,
ExecutorT *  pExecutor 
) -> std::future<decltype((clientThis->*operationFunc)(request))>
inline

A template function that is used to create a Callable Operation function body for AWS Streaming Operations The only difference compared to a regular non-streaming Operation is that the request is passed by non-const reference, therefore virtual copy constructor is not needed. However, caller code must ensure the life time of the request object is maintained during the Async execution.

Definition at line 142 of file AWSAsyncOperationTemplate.h.

◆ operator<<() [1/2]

AWS_CORE_API Aws::OStream & Aws::Client::operator<< ( Aws::OStream oStream,
CoreErrors  code 
)

Overload ostream operator<< for CoreErrors enum class for a prettier output such as "128"

◆ operator<<() [2/2]

template<typename T >
Aws::OStream & Aws::Client::operator<< ( Aws::OStream s,
const AWSError< T > &  e 
)

Definition at line 264 of file AWSError.h.

Variable Documentation

◆ NO_RETRY_INCREMENT

const int Aws::Client::NO_RETRY_INCREMENT = 1
static

Definition at line 27 of file RetryStrategy.h.