#include <client_configuration_provider.h>
|
void | PopulateUserAgent (Aws::String &user_agent, const std::string &ros_version_override="") |
|
Generic provider that uses a ParameterReader to create the client configuration.
Definition at line 27 of file client_configuration_provider.h.
Aws::Client::ClientConfigurationProvider::ClientConfigurationProvider |
( |
std::shared_ptr< ParameterReaderInterface > |
reader | ) |
|
Aws::Client::ClientConfigurationProvider::~ClientConfigurationProvider |
( |
| ) |
|
|
default |
ClientConfiguration Aws::Client::ClientConfigurationProvider::GetClientConfiguration |
( |
const std::string & |
ros_version_override = "" | ) |
|
Creates a client configuration with data read by the given parameter reader.
- Parameters
-
Give priority to region parameter from the parameter reader if exists, otherwise use the AWS SDK/CLI config file (defaults to ~/.aws/config). The latter is needed because unlike credentials, region does not get loaded automatically from the profile by the SDK (it simply defaults to us-east-1).
Definition at line 105 of file client_configuration_provider.cpp.
void Aws::Client::ClientConfigurationProvider::PopulateUserAgent |
( |
Aws::String & |
user_agent, |
|
|
const std::string & |
ros_version_override = "" |
|
) |
| |
|
private |
Populates the user agent parameter with ROS distro & version information.
- Note
- if the user_agent provided is empty, OS & compiler information would be added as well. Otherwise, only ROS distro & version information would be added.
- Parameters
-
user_agent | |
ros_version_override | optional - some ROS distributions export ROS_VERSION_MAJOR, ROS_VERSION_MINOR, ROS_VERSION_PATCH from their common.h. These would be more accurate and specific than relying on CMAKE_ROS_VERSION, but need to be passed in from upstream. |
Definition at line 93 of file client_configuration_provider.cpp.
The documentation for this class was generated from the following files: