Java com.amazonaws.util EC2MetadataUtils fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.util EC2MetadataUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.util EC2MetadataUtils.

The text is from its open source code.

Method

StringgetAmiId()
Get the AMI ID used to launch the instance.
StringgetAvailabilityZone()
Get the Availability Zone in which the instance launched.
StringgetData(String path)
StringgetData(String path, int tries)
StringgetEC2InstanceRegion()
Returns the current region of this running EC2 instance; or null if it is unable to do so.
StringgetInstanceId()
Get the ID of this instance.
InstanceInfogetInstanceInfo()
The instance info is only guaranteed to be a JSON document per http://docs .aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html

This method is only a best attempt to capture the instance info as a typed object.

StringgetInstanceType()
Get the type of the instance.
StringgetLocalHostName()
Get the local hostname of the instance.
ListgetNetworkInterfaces()
Get the list of network interfaces on the instance.
StringgetPrivateIpAddress()
Get the private IP address of the instance.
StringgetUserData()
Get the metadata sent to the instance