AWS SDK for C++  1.9.1
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::Config::EC2InstanceProfileConfigLoader Class Reference

#include <AWSProfileConfigLoader.h>

+ Inheritance diagram for Aws::Config::EC2InstanceProfileConfigLoader:

Public Member Functions

 EC2InstanceProfileConfigLoader (const std::shared_ptr< Aws::Internal::EC2MetadataClient > &=nullptr)
 
virtual ~EC2InstanceProfileConfigLoader ()=default
 
- Public Member Functions inherited from Aws::Config::AWSProfileConfigLoader
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 () override
 
- Protected Member Functions inherited from Aws::Config::AWSProfileConfigLoader
virtual bool PersistInternal (const Aws::Map< Aws::String, Aws::Config::Profile > &)
 

Additional Inherited Members

- Public Types inherited from Aws::Config::AWSProfileConfigLoader
using ProfilesContainer = Aws::Map< Aws::String, Aws::Config::Profile >
 
- Protected Attributes inherited from Aws::Config::AWSProfileConfigLoader
ProfilesContainer m_profiles
 
Aws::Utils::DateTime m_lastLoadTime
 

Detailed Description

Loads configuration from the EC2 Metadata Service

Definition at line 159 of file AWSProfileConfigLoader.h.

Constructor & Destructor Documentation

◆ EC2InstanceProfileConfigLoader()

Aws::Config::EC2InstanceProfileConfigLoader::EC2InstanceProfileConfigLoader ( const std::shared_ptr< Aws::Internal::EC2MetadataClient > &  = nullptr)

If client is nullptr, the default EC2MetadataClient will be created.

◆ ~EC2InstanceProfileConfigLoader()

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

Member Function Documentation

◆ LoadInternal()

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

Subclasses override this method to implement fetching the profiles.

Implements Aws::Config::AWSProfileConfigLoader.


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