AWS SDK for Java
Developer Guide

Amazon EC2 Examples Using the AWS SDK for Java

This section provides examples of programming Amazon EC2 with the AWS SDK for Java 2.x.