Using the Query API

From Amazon Elastic Compute Cloud: 2007-08-29