getClusterPolicy method

Future<GetClusterPolicyResponse> getClusterPolicy({
  1. required String clusterArn,
})

Get the MSK cluster policy specified by the Amazon Resource Name (ARN) in the request.

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

Parameter clusterArn : The Amazon Resource Name (ARN) of the cluster.

Implementation

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