Repository navigation
Expand file tree
/
Copy pathDynamoDBStreamsClientConfiguration.cpp
More file actions
49 lines (41 loc) · 1.93 KB
/
Copy pathDynamoDBStreamsClientConfiguration.cpp
File metadata and controls
49 lines (41 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dynamodbstreams/DynamoDBStreamsClientConfiguration.h>
namespace Aws {
namespace DynamoDBStreams {
void DynamoDBStreamsClientConfiguration::LoadDynamoDBStreamsSpecificConfig(const Aws::String& inputProfileName) {
const Aws::String retryProfileName = this->profileName;
this->configFactories.retryStrategyCreateFn = [retryProfileName]() -> std::shared_ptr<Client::RetryStrategy> {
Client::InitRetryStrategyOptions options;
options.maxAttempts = 4;
options.transientBackoffBaseSec = 0.025;
options.profileName = retryProfileName;
return Client::InitRetryStrategy(options);
};
#if defined(_MSC_VER)
(&reinterpret_cast<const int&>(inputProfileName));
#else
(void)(inputProfileName);
#endif
}
DynamoDBStreamsClientConfiguration::DynamoDBStreamsClientConfiguration(const Aws::Client::ClientConfigurationInitValues& configuration)
: BaseClientConfigClass(configuration) {
LoadDynamoDBStreamsSpecificConfig(this->profileName);
}
DynamoDBStreamsClientConfiguration::DynamoDBStreamsClientConfiguration(const char* inputProfileName, bool shouldDisableIMDS)
: BaseClientConfigClass(inputProfileName, shouldDisableIMDS) {
LoadDynamoDBStreamsSpecificConfig(Aws::String(inputProfileName));
}
DynamoDBStreamsClientConfiguration::DynamoDBStreamsClientConfiguration(bool useSmartDefaults, const char* defaultMode,
bool shouldDisableIMDS)
: BaseClientConfigClass(useSmartDefaults, defaultMode, shouldDisableIMDS) {
LoadDynamoDBStreamsSpecificConfig(this->profileName);
}
DynamoDBStreamsClientConfiguration::DynamoDBStreamsClientConfiguration(const Aws::Client::ClientConfiguration& config)
: BaseClientConfigClass(config) {
LoadDynamoDBStreamsSpecificConfig(this->profileName);
}
} // namespace DynamoDBStreams
} // namespace Aws