rebootBroker method

Future<RebootBrokerResponse> rebootBroker({
  1. required List<String> brokerIds,
  2. required String clusterArn,
})

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);
}