@Override
    public EnableImageDeprecationResult enableImageDeprecation(EnableImageDeprecationRequest request) {
        request = beforeClientExecution(request);
        return executeEnableImageDeprecation(request);
    }
<p>
Enables deprecation of the specified AMI at the specified date and time.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html">Deprecate an AMI</a> in the
<i>Amazon EC2 User Guide</i>.
</p>

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