AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Aws::Config::AWSConfigFileProfileConfigLoader Class Reference

#include <AWSConfigFileProfileConfigLoader.h>

Inheritance diagram for Aws::Config::AWSConfigFileProfileConfigLoader:
[legend]

Public Member Functions

 AWSConfigFileProfileConfigLoader (const Aws::String &fileName, bool useProfilePrefix=false)
 
 
const Aws::StringGetFileName () const
 
void SetFileName (const Aws::String &fileName)
 

Public Member Functions inherited from Aws::Config::AWSProfileConfigLoader

virtual ~AWSProfileConfigLoader ()=default
 
bool Load ()
 
 
 
 
 
 
 

Protected Member Functions

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

Additional Inherited Members

Public Types inherited from Aws::Config::AWSProfileConfigLoader

 

Protected Attributes inherited from Aws::Config::AWSProfileConfigLoader

 
 

Detailed Description

Reads configuration from a config file (e.g. $HOME/.aws/config or $HOME/.aws/credentials

Definition at line 19 of file AWSConfigFileProfileConfigLoader.h.

Constructor & Destructor Documentation

◆ AWSConfigFileProfileConfigLoader()

Aws::Config::AWSConfigFileProfileConfigLoader::AWSConfigFileProfileConfigLoader ( const Aws::String fileName,
bool  useProfilePrefix = false 
)

fileName - file to load config from useProfilePrefix - whether or not the profiles are prefixed with "profile", credentials file is not while the config file is. Defaults to off.

◆ ~AWSConfigFileProfileConfigLoader()

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

Member Function Documentation

◆ GetFileName()

const Aws::String & Aws::Config::AWSConfigFileProfileConfigLoader::GetFileName ( ) const
inline

File path being used for the config loader.

Definition at line 34 of file AWSConfigFileProfileConfigLoader.h.

◆ LoadInternal()

virtual bool Aws::Config::AWSConfigFileProfileConfigLoader::LoadInternal ( )
overrideprotectedvirtual

Subclasses override this method to implement fetching the profiles.

Implements Aws::Config::AWSProfileConfigLoader.

◆ PersistInternal()

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

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

Reimplemented from Aws::Config::AWSProfileConfigLoader.

◆ SetFileName()

void Aws::Config::AWSConfigFileProfileConfigLoader::SetFileName ( const Aws::String fileName)
inline

Give loader the ability to change the file path to load config from. This can avoid creating new loader object if the file changed.

Definition at line 40 of file AWSConfigFileProfileConfigLoader.h.


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