rebootBroker method
Reboots brokers.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter brokerIds :
The list of broker IDs to be rebooted. The reboot-broker operation
supports rebooting one broker at a time.
Parameter clusterArn :
The Amazon Resource Name (ARN) of the cluster to be updated.
Implementation
Future<RebootBrokerResponse> rebootBroker({
required List<String> brokerIds,
required String clusterArn,
}) async {
final $payload = <String, dynamic>{
'brokerIds': brokerIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/v1/clusters/${Uri.encodeComponent(clusterArn)}/reboot-broker',
exceptionFnMap: _exceptionFns,
);
return RebootBrokerResponse.fromJson(response);
}