AWS SDK for C++  1.9.16
AWS SDK for C++
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Aws::Config::AWSProfileConfigLoader Class Referenceabstract

#include <AWSProfileConfigLoader.h>

+ Inheritance diagram for Aws::Config::AWSProfileConfigLoader:

Public Types

using ProfilesContainer = Aws::Map< Aws::String, Aws::Config::Profile >
 

Public Member Functions

virtual ~AWSProfileConfigLoader ()=default
 
bool Load ()
 
bool PersistProfiles (const Aws::Map< Aws::String, Aws::Config::Profile > &profiles)
 
const Aws::Map< Aws::String, Aws::Config::Profile > & GetProfiles () const
 
const Aws::Utils::DateTimeLastLoadTime () const
 

Protected Member Functions

virtual bool LoadInternal ()=0
 
virtual bool PersistInternal (const Aws::Map< Aws::String, Aws::Config::Profile > &)
 

Protected Attributes

ProfilesContainer m_profiles
 
Aws::Utils::DateTime m_lastLoadTime
 

Detailed Description

Loads Configuration such as .aws/config, .aws/credentials or ec2 metadata service.

Definition at line 77 of file AWSProfileConfigLoader.h.

Member Typedef Documentation

◆ ProfilesContainer

Definition at line 102 of file AWSProfileConfigLoader.h.

Constructor & Destructor Documentation

◆ ~AWSProfileConfigLoader()

virtual Aws::Config::AWSProfileConfigLoader::~AWSProfileConfigLoader ( )
virtualdefault

Member Function Documentation

◆ GetProfiles()

const Aws::Map<Aws::String, Aws::Config::Profile>& Aws::Config::AWSProfileConfigLoader::GetProfiles ( ) const
inline

Gets all profiles from the configuration file.

Definition at line 95 of file AWSProfileConfigLoader.h.

◆ LastLoadTime()

const Aws::Utils::DateTime& Aws::Config::AWSProfileConfigLoader::LastLoadTime ( ) const
inline

the timestamp from the last time the profile information was loaded from file.

Definition at line 100 of file AWSProfileConfigLoader.h.

◆ Load()

bool Aws::Config::AWSProfileConfigLoader::Load ( )

Load the configuration

◆ LoadInternal()

virtual bool Aws::Config::AWSProfileConfigLoader::LoadInternal ( )
protectedpure virtual

Subclasses override this method to implement fetching the profiles.

Implemented in Aws::Config::EC2InstanceProfileConfigLoader, and Aws::Config::AWSConfigFileProfileConfigLoader.

◆ PersistInternal()

virtual bool Aws::Config::AWSProfileConfigLoader::PersistInternal ( const Aws::Map< Aws::String, Aws::Config::Profile > &  )
inlineprotectedvirtual

Subclasses override this method to implement persisting the profiles. Default returns false.

Reimplemented in Aws::Config::AWSConfigFileProfileConfigLoader.

Definition at line 113 of file AWSProfileConfigLoader.h.

◆ PersistProfiles()

bool Aws::Config::AWSProfileConfigLoader::PersistProfiles ( const Aws::Map< Aws::String, Aws::Config::Profile > &  profiles)

Over writes the entire config source with the newly configured profile data.

Member Data Documentation

◆ m_lastLoadTime

Aws::Utils::DateTime Aws::Config::AWSProfileConfigLoader::m_lastLoadTime
protected

Definition at line 116 of file AWSProfileConfigLoader.h.

◆ m_profiles

ProfilesContainer Aws::Config::AWSProfileConfigLoader::m_profiles
protected

Definition at line 115 of file AWSProfileConfigLoader.h.


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