@Override
    public CreateImageResult createImage(CreateImageRequest request) {
        request = beforeClientExecution(request);
        return executeCreateImage(request);
    }
<p>
Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.
</p>
<p>
If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device
volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from
this new AMI, the instance automatically launches with those additional volumes.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Create an Amazon EBS-backed
Linux AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
</p>

@param createImageRequest
@return Result of the CreateImage operation returned by the service.
@sample AmazonEC2.CreateImage
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java