getCompatibleKafkaVersions method

Future<GetCompatibleKafkaVersionsResponse> getCompatibleKafkaVersions({
  1. String? clusterArn,
})

Gets the Apache Kafka versions to which you can update the MSK cluster.

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

Parameter clusterArn :

The Amazon Resource Name (ARN) of the cluster check.

Implementation

Future<GetCompatibleKafkaVersionsResponse> getCompatibleKafkaVersions({
  String? clusterArn,
}) async {
  final $query = <String, List<String>>{
    if (clusterArn != null) 'clusterArn': [clusterArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/compatible-kafka-versions',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetCompatibleKafkaVersionsResponse.fromJson(response);
}