AWS SDK for C++  0.14.3
AWS SDK for C++
Public Attributes | List of all members
Aws::SDKOptions Struct Reference

#include <Aws.h>

Public Attributes

LoggingOptions loggingOptions
 
MemoryManagementOptions memoryManagementOptions
 
HttpOptions httpOptions
 
CryptoOptions cryptoOptions
 

Detailed Description

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);

Definition at line 176 of file Aws.h.

Member Data Documentation

CryptoOptions Aws::SDKOptions::cryptoOptions

SDK wide options for crypto

Definition at line 193 of file Aws.h.

HttpOptions Aws::SDKOptions::httpOptions

SDK wide options for http

Definition at line 189 of file Aws.h.

LoggingOptions Aws::SDKOptions::loggingOptions

SDK wide options for logging

Definition at line 181 of file Aws.h.

MemoryManagementOptions Aws::SDKOptions::memoryManagementOptions

SDK wide options for memory management

Definition at line 185 of file Aws.h.


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