#include <EC2MetadataClient.h>
Simple client for accessing the Amazon EC2 Instance Metadata Service.
Definition at line 36 of file EC2MetadataClient.h.
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 |
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: