@Override
    public DeregisterClusterResult deregisterCluster(DeregisterClusterRequest request) {
        request = beforeClientExecution(request);
        return executeDeregisterCluster(request);
    }
<p>
Deregisters a connected cluster to remove it from the Amazon EKS control plane.
</p>
<p>
A connected cluster is a Kubernetes cluster that you've connected to your control plane using the <a
href="https://docs.aws.amazon.com/eks/latest/userguide/eks-connector.html">Amazon EKS Connector</a>.
</p>

@param deregisterClusterRequest
@return Result of the DeregisterCluster operation returned by the service.
@throws ResourceInUseException
        The specified resource is in use.
@throws ResourceNotFoundException
        The specified resource could not be found. You can view your available clusters with
        <code>ListClusters</code>. You can view your available managed node groups with
        <code>ListNodegroups</code>. Amazon EKS clusters and node groups are Amazon Web Services Region specific.
@throws ClientException
        These errors are usually caused by a client action. Actions can include using an action or resource on
        behalf of an <a
        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html">IAM
        principal</a> that doesn't have permissions to use the action or resource or specifying an identifier
        that is not valid.
@throws ServerException
        These errors are usually caused by a server-side issue.
@throws ServiceUnavailableException
        The service is unavailable. Back off and retry the operation.
@throws AccessDeniedException
        You don't have permissions to perform the requested operation. The <a
        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html">IAM
        principal</a> making the request must have at least one IAM permissions policy attached that grants the
        required permissions. For more information, see <a
        href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management</a> in the <i>IAM
        User Guide</i>.
@sample AmazonEKS.DeregisterCluster
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeregisterCluster" target="_top">AWS API
     Documentation</a>
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/AmazonEKSClient.java