AWS SDK for C++
0.14.3
AWS SDK for C++
|
#include <Aws.h>
Public Attributes | |
LoggingOptions | loggingOptions |
MemoryManagementOptions | memoryManagementOptions |
HttpOptions | httpOptions |
CryptoOptions | cryptoOptions |
You may notice that instead of taking pointers directly to your factories, we take a closure. This is because if you have installed custom memory management, the allocation for your factories needs to happen after the memory system has been initialized and shutdown needs to happen prior to the memory management being shutdown.
Common Recipes:
Just use defaults:
SDKOptions options; Aws::InitAPI(options); ..... Aws::ShutdownAPI(options);
Turn logging on using the default logger:
SDKOptions options; options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Info; Aws::InitAPI(options); ..... Aws::ShutdownAPI(options);
Install custom memory manager:
MyMemoryManager memoryManager;
SDKOptions options; options.memoryManagementOptions.memoryManager = Aws::InitAPI(options); ..... Aws::ShutdownAPI(options);
Override default http client factory
SDKOptions options; options.httpOptions.httpClientFactory_create_fn = [](){ return Aws::MakeShared<MyCustomHttpClientFactory>("ALLOC_TAG", arg1); }; Aws::InitAPI(options); ..... Aws::ShutdownAPI(options);
CryptoOptions Aws::SDKOptions::cryptoOptions |
HttpOptions Aws::SDKOptions::httpOptions |
LoggingOptions Aws::SDKOptions::loggingOptions |
MemoryManagementOptions Aws::SDKOptions::memoryManagementOptions |