AWS SDK for C++
1.9.1
AWS SDK for C++
|
#include <AWSProfileConfigLoader.h>
Public Member Functions | |
EC2InstanceProfileConfigLoader (const std::shared_ptr< Aws::Internal::EC2MetadataClient > &=nullptr) | |
virtual | ~EC2InstanceProfileConfigLoader ()=default |
![]() | |
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::DateTime & | LastLoadTime () const |
Protected Member Functions | |
virtual bool | LoadInternal () override |
![]() | |
virtual bool | PersistInternal (const Aws::Map< Aws::String, Aws::Config::Profile > &) |
Additional Inherited Members | |
![]() | |
using | ProfilesContainer = Aws::Map< Aws::String, Aws::Config::Profile > |
![]() | |
ProfilesContainer | m_profiles |
Aws::Utils::DateTime | m_lastLoadTime |
Loads configuration from the EC2 Metadata Service
Definition at line 159 of file AWSProfileConfigLoader.h.
Aws::Config::EC2InstanceProfileConfigLoader::EC2InstanceProfileConfigLoader | ( | const std::shared_ptr< Aws::Internal::EC2MetadataClient > & | = nullptr | ) |
If client is nullptr, the default EC2MetadataClient will be created.
|
virtualdefault |
|
overrideprotectedvirtual |
Subclasses override this method to implement fetching the profiles.
Implements Aws::Config::AWSProfileConfigLoader.