*
* @see <a href="http://docs.amazonwebservices.com/AWSEC2/2010-11-15/APIReference/index.html?ApiReference-query-RegisterImage.html">RegisterImage</a>
*/
public RegisterImageResponse registerImage(RegisterImage registerImage) {
EC2RegisterImage request = new EC2RegisterImage();
RegisterImageType rit = registerImage.getRegisterImage();
// -> we redefine the architecture field to hold: "format:zonename:osTypeName",
// these are the bare minimum that we need to call the cloud registerTemplate call.
request.setLocation(rit.getImageLocation()); // -> should be a URL for us
request.setName(rit.getName());
request.setDescription(rit.getDescription());
request.setArchitecture(rit.getArchitecture());
return toRegisterImageResponse(engine.registerImage(request));
}