rebootBroker method
Reboots brokers.
May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
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 {
ArgumentError.checkNotNull(brokerIds, 'brokerIds');
ArgumentError.checkNotNull(clusterArn, 'clusterArn');
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);
}