AWS SDK for C++  1.9.16
AWS SDK for C++
Public Member Functions | List of all members
Aws::Config::ConfigAndCredentialsCacheManager Class Reference

#include <AWSProfileConfigLoader.h>

Public Member Functions

 ConfigAndCredentialsCacheManager ()
 
void ReloadConfigFile ()
 
void ReloadCredentialsFile ()
 
bool HasConfigProfile (const Aws::String &profileName) const
 
Aws::Config::Profile GetConfigProfile (const Aws::String &profileName) const
 
Aws::Map< Aws::String, Aws::Config::ProfileGetConfigProfiles () const
 
Aws::String GetConfig (const Aws::String &profileName, const Aws::String &key) const
 
bool HasCredentialsProfile (const Aws::String &profileName) const
 
Aws::Config::Profile GetCredentialsProfile (const Aws::String &profileName) const
 
Aws::Map< Aws::String, Aws::Config::ProfileGetCredentialsProfiles () const
 
Aws::Auth::AWSCredentials GetCredentials (const Aws::String &profileName) const
 

Detailed Description

Stores the contents of config file and credentials file to avoid multiple file readings. At the same time provides the flexibility to reload from file.

Definition at line 179 of file AWSProfileConfigLoader.h.

Constructor & Destructor Documentation

◆ ConfigAndCredentialsCacheManager()

Aws::Config::ConfigAndCredentialsCacheManager::ConfigAndCredentialsCacheManager ( )

Member Function Documentation

◆ GetConfig()

Aws::String Aws::Config::ConfigAndCredentialsCacheManager::GetConfig ( const Aws::String profileName,
const Aws::String key 
) const

Returns cached config value with the specified profile name and key. Using copy instead of const reference to avoid reading bad contents due to thread contention.

◆ GetConfigProfile()

Aws::Config::Profile Aws::Config::ConfigAndCredentialsCacheManager::GetConfigProfile ( const Aws::String profileName) const

Returns cached config profile with the specified profile name. Using copy instead of const reference to avoid reading bad contents due to thread contention.

◆ GetConfigProfiles()

Aws::Map<Aws::String, Aws::Config::Profile> Aws::Config::ConfigAndCredentialsCacheManager::GetConfigProfiles ( ) const

Returns cached config profiles Using copy instead of const reference to avoid reading bad contents due to thread contention.

◆ GetCredentials()

Aws::Auth::AWSCredentials Aws::Config::ConfigAndCredentialsCacheManager::GetCredentials ( const Aws::String profileName) const

Returns cached credentials with the specified profile name. Using copy instead of const reference to avoid reading bad contents due to thread contention.

◆ GetCredentialsProfile()

Aws::Config::Profile Aws::Config::ConfigAndCredentialsCacheManager::GetCredentialsProfile ( const Aws::String profileName) const

Returns cached credentials profile with the specified profile name. Using copy instead of const reference to avoid reading bad contents due to thread contention.

◆ GetCredentialsProfiles()

Aws::Map<Aws::String, Aws::Config::Profile> Aws::Config::ConfigAndCredentialsCacheManager::GetCredentialsProfiles ( ) const

Returns cached credentials profiles. Using copy instead of const reference to avoid reading bad contents due to thread contention.

◆ HasConfigProfile()

bool Aws::Config::ConfigAndCredentialsCacheManager::HasConfigProfile ( const Aws::String profileName) const

◆ HasCredentialsProfile()

bool Aws::Config::ConfigAndCredentialsCacheManager::HasCredentialsProfile ( const Aws::String profileName) const

◆ ReloadConfigFile()

void Aws::Config::ConfigAndCredentialsCacheManager::ReloadConfigFile ( )

◆ ReloadCredentialsFile()

void Aws::Config::ConfigAndCredentialsCacheManager::ReloadCredentialsFile ( )

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