@Override
    public DisableImageResult disableImage(DisableImageRequest request) {
        request = beforeClientExecution(request);
        return executeDisableImage(request);
    }
<p>
Sets the AMI state to <code>disabled</code> and removes all launch permissions from the AMI. A disabled AMI can't
be used for instance launches.
</p>
<p>
A disabled AMI can't be shared. If an AMI was public or previously shared, it is made private. If an AMI was
shared with an Amazon Web Services account, organization, or Organizational Unit, they lose access to the
disabled AMI.
</p>
<p>
A disabled AMI does not appear in <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html">DescribeImages</a> API
calls by default.
</p>
<p>
Only the AMI owner can disable an AMI.
</p>
<p>
You can re-enable a disabled AMI using <a
href="http://amazonaws.com/AWSEC2/latest/APIReference/API_EnableImage.html">EnableImage</a>.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disable-an-ami.html">Disable an AMI</a> in the
<i>Amazon EC2 User Guide</i>.
</p>

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