deleteBroker method
Deletes a broker. Note: This API is asynchronous.
May throw NotFoundException. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException.
Parameter brokerId
:
The unique ID that Amazon MQ generates for the broker.
Implementation
Future<DeleteBrokerResponse> deleteBroker({
required String brokerId,
}) async {
ArgumentError.checkNotNull(brokerId, 'brokerId');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/brokers/${Uri.encodeComponent(brokerId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteBrokerResponse.fromJson(response);
}