describeBroker method

Future<DescribeBrokerResponse> describeBroker({
  1. required String brokerId,
})

Returns information about the specified broker.

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

Parameter brokerId : The unique ID that Amazon MQ generates for the broker.

Implementation

Future<DescribeBrokerResponse> describeBroker({
  required String brokerId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/brokers/${Uri.encodeComponent(brokerId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeBrokerResponse.fromJson(response);
}