code: @Override
      public DeregisterContainerInstanceResult deregisterContainerInstance(DeregisterContainerInstanceRequest request) {
          request = beforeClientExecution(request);
          return executeDeregisterContainerInstance(request);
      }
docs: <p>
  Deregisters an Amazon ECS container instance from the specified cluster. This instance is no longer available to
  run tasks.
  </p>
  <p>
  If you intend to use the container instance for some other purpose after deregistration, you should stop all of
  the tasks running on the container instance before deregistration. That prevents any orphaned tasks from
  consuming resources.
  </p>
  <p>
  Deregistering a container instance removes the instance from a cluster, but it does not terminate the EC2
  instance. If you are finished using the instance, be sure to terminate it in the Amazon EC2 console to stop
  billing.
  </p>
  <note>
  <p>
  If you terminate a running container instance, Amazon ECS automatically deregisters the instance from your
  cluster (stopped container instances or instances with disconnected agents are not automatically deregistered
  when terminated).
  </p>
  </note>
  
  @param deregisterContainerInstanceRequest
  @return Result of the DeregisterContainerInstance 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.DeregisterContainerInstance
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterContainerInstance"
  target="_top">AWS API Documentation</a>