Example usage for Java com.amazonaws.util EC2MetadataUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String | getAmiId() Get the AMI ID used to launch the instance. |
String | getAvailabilityZone() Get the Availability Zone in which the instance launched. |
String | getData(String path) |
String | getData(String path, int tries) |
String | getEC2InstanceRegion() Returns the current region of this running EC2 instance; or null if it is unable to do so. |
String | getInstanceId() Get the ID of this instance. |
InstanceInfo | getInstanceInfo() 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. |
String | getInstanceType() Get the type of the instance. |
String | getLocalHostName() Get the local hostname of the instance. |
List | getNetworkInterfaces() Get the list of network interfaces on the instance. |
String | getPrivateIpAddress() Get the private IP address of the instance. |
String | getUserData() Get the metadata sent to the instance |