@SdkInternalApi
    final DescribeStoreImageTasksResult executeDescribeStoreImageTasks(DescribeStoreImageTasksRequest describeStoreImageTasksRequest) {

        ExecutionContext executionContext = createExecutionContext(describeStoreImageTasksRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DescribeStoreImageTasksRequest> request = null;
        Response<DescribeStoreImageTasksResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DescribeStoreImageTasksRequestMarshaller().marshall(super.beforeMarshalling(describeStoreImageTasksRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeStoreImageTasks");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            StaxResponseHandler<DescribeStoreImageTasksResult> responseHandler = new StaxResponseHandler<DescribeStoreImageTasksResult>(
                    new DescribeStoreImageTasksResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Describes the progress of the AMI store tasks. You can describe the store tasks for specified AMIs. If you don't
specify the AMIs, you get a paginated list of store tasks from the last 31 days.
</p>
<p>
For each AMI task, the response indicates if the task is <code>InProgress</code>, <code>Completed</code>, or
<code>Failed</code>. For tasks <code>InProgress</code>, the response shows the estimated progress as a
percentage.
</p>
<p>
Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 days can be viewed.
</p>
<p>
To use this API, you must have the required permissions. For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions">Permissions
for storing and restoring AMIs using Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html">Store and restore an AMI using
Amazon S3</a> in the <i>Amazon EC2 User Guide</i>.
</p>

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