AWS SDK for C++

AWS SDK for C++ Version 1.11.732

Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
Aws::SDKOptions Struct Reference

#include <Aws.h>

Classes

struct  SDKVersion
 

Public Member Functions

 SDKOptions ()=default
 

Public Attributes

 
 
 
 
 
 
 

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 = &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 215 of file Aws.h.

Constructor & Destructor Documentation

◆ SDKOptions()

Aws::SDKOptions::SDKOptions ( )
default

Member Data Documentation

◆ cryptoOptions

CryptoOptions Aws::SDKOptions::cryptoOptions = {}

SDK wide options for crypto

Definition at line 236 of file Aws.h.

◆ httpOptions

HttpOptions Aws::SDKOptions::httpOptions = {}

SDK wide options for http

Definition at line 232 of file Aws.h.

◆ ioOptions

IoOptions Aws::SDKOptions::ioOptions = {}

SDK wide options for I/O: client bootstrap and TLS connection options

Definition at line 220 of file Aws.h.

◆ loggingOptions

LoggingOptions Aws::SDKOptions::loggingOptions = {}

SDK wide options for logging

Definition at line 224 of file Aws.h.

◆ memoryManagementOptions

MemoryManagementOptions Aws::SDKOptions::memoryManagementOptions = {}

SDK wide options for memory management

Definition at line 228 of file Aws.h.

◆ monitoringOptions

MonitoringOptions Aws::SDKOptions::monitoringOptions = {}

Options used to set up customized monitoring implementations Put your monitoring factory in a closure (a create factory function) and put all closures in a vector. Basic usage can be found in aws-cpp-sdk-core-tests/monitoring/MonitoringTest.cpp

Definition at line 243 of file Aws.h.

◆ sdkVersion

struct Aws::SDKOptions::SDKVersion Aws::SDKOptions::sdkVersion = {}

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