return toDescribeImagesResponse(engine.describeImages(request));
}
public DescribeInstanceAttributeResponse describeInstanceAttribute(DescribeInstanceAttribute describeInstanceAttribute) {
EC2DescribeInstances request = new EC2DescribeInstances();
DescribeInstanceAttributeType diat = describeInstanceAttribute.getDescribeInstanceAttribute();
DescribeInstanceAttributesGroup diag = diat.getDescribeInstanceAttributesGroup();
EmptyElementType instanceType = diag.getInstanceType();
// -> toEC2DescribeInstances
if (null != instanceType) {
request.addInstanceId(diat.getInstanceId());
return toDescribeInstanceAttributeResponse(engine.describeInstances(request));
}
throw new EC2ServiceException(ClientError.Unsupported, "Unsupported - only instanceType supported");
}