code: @Override
      public StopTaskResult stopTask(StopTaskRequest request) {
          request = beforeClientExecution(request);
          return executeStopTask(request);
      }
docs: <p>
  Stops a running task. Any tags associated with the task will be deleted.
  </p>
  <p>
  When <a>StopTask</a> is called on a task, the equivalent of <code>docker stop</code> is issued to the containers
  running in the task. This results in a <code>SIGTERM</code> value and a default 30-second timeout, after which
  the <code>SIGKILL</code> value is sent and the containers are forcibly stopped. If the container handles the
  <code>SIGTERM</code> value gracefully and exits within 30 seconds from receiving it, no <code>SIGKILL</code>
  value is sent.
  </p>
  <note>
  <p>
  The default 30-second timeout can be configured on the Amazon ECS container agent with the
  <code>ECS_CONTAINER_STOP_TIMEOUT</code> variable. For more information, see <a
  href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS Container
  Agent Configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
  </p>
  </note>
  
  @param stopTaskRequest
  @return Result of the StopTask operation returned by the service.
  @throws ServerException
  These errors are usually caused by a server issue.
  @throws ClientException
  These errors are usually caused by a client action, such as using an action or resource on behalf of a
  user that doesn't have permissions to use the action or resource, or specifying an identifier that is not
  valid.
  @throws InvalidParameterException
  The specified parameter is invalid. Review the available parameters for the API request.
  @throws ClusterNotFoundException
  The specified cluster could not be found. You can view your available clusters with <a>ListClusters</a>.
  Amazon ECS clusters are Region-specific.
  @sample AmazonECS.StopTask
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopTask" target="_top">AWS API
  Documentation</a>