describeCluster method

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

Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.

May throw NotFoundException. May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException.

Parameter clusterArn :

The Amazon Resource Name (ARN) that uniquely identifies the cluster.

Implementation

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