describeCluster method

Future<DescribeClusterResponse> describeCluster({
  1. required String name,
})

Returns descriptive information about an Amazon EKS cluster.

The API server endpoint and certificate authority data returned by this operation are required for kubelet and kubectl to communicate with your Kubernetes API server. For more information, see Create a kubeconfig for Amazon EKS.

May throw ResourceNotFoundException. May throw ClientException. May throw ServerException. May throw ServiceUnavailableException.

Parameter name : The name of the cluster to describe.

Implementation

Future<DescribeClusterResponse> describeCluster({
  required String name,
}) async {
  ArgumentError.checkNotNull(name, 'name');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/clusters/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeClusterResponse.fromJson(response);
}