AWS SDK for C++  0.14.3
AWS SDK for C++
Public Member Functions | List of all members
Aws::Internal::EC2MetadataClient Class Reference

#include <EC2MetadataClient.h>

Public Member Functions

 EC2MetadataClient (const char *endpoint="http://169.254.169.254")
 
virtual ~EC2MetadataClient ()
 
virtual Aws::String GetDefaultCredentials () const
 
virtual Aws::String GetCurrentRegion () const
 
virtual Aws::String GetResource (const char *resource) const
 

Detailed Description

Simple client for accessing the Amazon EC2 Instance Metadata Service.

Definition at line 36 of file EC2MetadataClient.h.

Constructor & Destructor Documentation

Aws::Internal::EC2MetadataClient::EC2MetadataClient ( const char *  endpoint = "http://169.254.169.254")

Builds an instance using "http://169.254.169.254" as the endpoint if not specified otherwise, and the default http stack if httpClientFactory is not specified.

virtual Aws::Internal::EC2MetadataClient::~EC2MetadataClient ( )
virtual

Member Function Documentation

virtual Aws::String Aws::Internal::EC2MetadataClient::GetCurrentRegion ( ) const
virtual

connects to the Amazon EC2 Instance metadata Service to retrieve the region the current EC2 instance is running in.

virtual Aws::String Aws::Internal::EC2MetadataClient::GetDefaultCredentials ( ) const
virtual

Connects to the Amazon EC2 Instance Metadata Service to retrieve the default credential information (if any).

virtual Aws::String Aws::Internal::EC2MetadataClient::GetResource ( const char *  resource) const
virtual

Connects to the metadata service to read the specified resource and returns the text contents.


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